From: Ana Rey Date: Thu, 13 Mar 2014 09:47:51 +0000 (+0100) Subject: staging: rts5139: make the local variable static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf883f9b068f58fdee7ca586d1716987c546f765;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: rts5139: make the local variable static Make the local variable (media_not_present and invalid_cmd_field) static Fix the following sparse warnings in rts51x_transport.c drivers/staging/rts5139/rts51x_transport.c:649:4: warning: symbol 'media_not_present' was not declared. Should it be static? drivers/staging/rts5139/rts51x_transport.c:651:4: warning: symbol 'invalid_cmd_field' was not declared. Should it be static? Signed-off-by: Ana Rey Acked-by: Paul E. McKenney Signed-off-by: Peter P Waskiewicz Jr --- diff --git a/drivers/staging/rts5139/rts51x_transport.c b/drivers/staging/rts5139/rts51x_transport.c index c172f4ae7c23..74588d249b32 100644 --- a/drivers/staging/rts5139/rts51x_transport.c +++ b/drivers/staging/rts5139/rts51x_transport.c @@ -646,9 +646,9 @@ int rts51x_get_epc_status(struct rts51x_chip *chip, u16 *status) chip->usb->intr_urb->actual_length); } -u8 media_not_present[] = { +static u8 media_not_present[] = { 0x70, 0, 0x02, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0x3A, 0, 0, 0, 0, 0 }; -u8 invalid_cmd_field[] = { +static u8 invalid_cmd_field[] = { 0x70, 0, 0x05, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0x24, 0, 0, 0, 0, 0 }; void rts51x_invoke_transport(struct scsi_cmnd *srb, struct rts51x_chip *chip)