[PATCH] ide-cs: Fix sparse warning

Larry Finger Larry.Finger at lwfinger.net
Sun Jul 13 13:46:36 EDT 2008


Sparse shows the following warning:

  CHECK   drivers/ide/legacy/ide-cs.c
drivers/ide/legacy/ide-cs.c:378:6: warning: symbol 'ide_release' was
not declared. Should it be static?

Signed-off-by: Larry Finger <Larry.Finger at lwfinger.net>
---

Dominik,

This is 2.6.27 material.

Larry

 ide-cs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: wireless-testing/drivers/ide/legacy/ide-cs.c
===================================================================
--- wireless-testing.orig/drivers/ide/legacy/ide-cs.c	2008-07-11 20:46:37.000000000 -0500
+++ wireless-testing/drivers/ide/legacy/ide-cs.c	2008-07-12 23:25:06.000000000 -0500
@@ -375,7 +375,7 @@
 
 ======================================================================*/
 
-void ide_release(struct pcmcia_device *link)
+static void ide_release(struct pcmcia_device *link)
 {
     ide_info_t *info = link->priv;
     ide_hwif_t *hwif = info->hwif;



More information about the linux-pcmcia mailing list