[PATCH 3/3] drivers: pcmcia: Include appropriate header file in cardbus.c

Rashika Kheria rashika.kheria at gmail.com
Thu Dec 19 03:36:05 EST 2013

Include appropriate header file cs_internal.h in cardbus.c because
functions cb_alloc() and cb_free() have their prototype declarations in

This eliminates the following warnings in cardbus.c:
drivers/pcmcia/cardbus.c:67:11: warning: no previous prototype for ‘cb_alloc’ [-Wmissing-prototypes]
drivers/pcmcia/cardbus.c:105:6: warning: no previous prototype for ‘cb_free’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria at gmail.com>
Reviewed-by: Josh Triplett <josh at joshtriplett.org>
 drivers/pcmcia/cardbus.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pcmcia/cardbus.c b/drivers/pcmcia/cardbus.c
index b2a98cd..1c85f4b 100644
--- a/drivers/pcmcia/cardbus.c
+++ b/drivers/pcmcia/cardbus.c
@@ -25,7 +25,7 @@
 #include <linux/pci.h>
 #include <pcmcia/ss.h>
+#include "cs_internal.h"
 static void cardbus_config_irq_and_cls(struct pci_bus *bus, int irq)

More information about the linux-pcmcia mailing list