2014-07-20 05:18:04

by weiyj_lk

[permalink] [raw]
Subject: [PATCH -next] HSI: ssi_protocol: Fix sparse non static symbol warning

From: Wei Yongjun <[email protected]>

Fixes the following sparse warning:

drivers/hsi/clients/ssi_protocol.c:904:6: warning:
symbol 'ssip_port_event' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <[email protected]>
---
drivers/hsi/clients/ssi_protocol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c
index 737fa2e..e5c7a96 100644
--- a/drivers/hsi/clients/ssi_protocol.c
+++ b/drivers/hsi/clients/ssi_protocol.c
@@ -901,7 +901,7 @@ out:
ssip_free_data(msg);
}

-void ssip_port_event(struct hsi_client *cl, unsigned long event)
+static void ssip_port_event(struct hsi_client *cl, unsigned long event)
{
switch (event) {
case HSI_EVENT_START_RX:


2014-07-20 07:42:25

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH -next] HSI: ssi_protocol: Fix sparse non static symbol warning

Hi,

On Sun, Jul 20, 2014 at 01:17:20PM +0800, [email protected] wrote:
> Fixes the following sparse warning:
>
> drivers/hsi/clients/ssi_protocol.c:904:6: warning:
> symbol 'ssip_port_event' was not declared. Should it be static?
>
> Signed-off-by: Wei Yongjun <[email protected]>

Applied to linux-hsi.git:

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-hsi.git/commit/?h=for-next&id=0a0ea07d3dff0918484f01c576f098dd4911b1af

-- Sebastian


Attachments:
(No filename) (464.00 B)
signature.asc (819.00 B)
Digital signature
Download all attachments