Skip to contentSkip to conversation

mmc: cd-gpio.c: Include header to pickup exported symbol prototypes

PATCH In review H Hartley Sweeten 3 participants 3 messages Apr 17, 2012 – Apr 18, 2012 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mmc: cd-gpio.c: Include header to pickup exported symbol prototypes

Include the linux/mmc/cd-gpio.h header to pickup the prototypes for the two exported symbols.

This quiets the sparse warnings:

warning: symbol 'mmc_cd_gpio_request' was not declared. Should it be static?
warning: symbol 'mmc_cd_gpio_free' was not declared. Should it be static?

---

v2: add new header alphabetically

drivers/mmc/core/cd-gpio.c +1 -0
index 29de31e..2c14be7 100644
@@ -12,6 +12,7 @@
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/jiffies.h>
+#include <linux/mmc/cd-gpio.h>
 #include <linux/mmc/host.h>
 #include <linux/module.h>
 #include <linux/slab.h>
Acked-by on v2 1/1
#1 lore raw
Quoted 5 lines · H Hartley Sweeten

Include the linux/mmc/cd-gpio.h header to pickup the prototypes for the two exported symbols.

This quiets the sparse warnings:

Quoted 7 lines

warning: symbol 'mmc_cd_gpio_request' was not declared. Should it be static?
warning: symbol 'mmc_cd_gpio_free' was not declared. Should it be static?

Thanks
Guennadi

Quoted 11 lines

---

v2: add new header alphabetically

drivers/mmc/core/cd-gpio.c +0 -0
index 29de31e..2c14be7 100644

drivers/mmc/core/cd-gpio.c line 18

Quoted 7 lines
drivers/mmc/core/cd-gpio.c +1 -0
@@ -12,6 +12,7 @@
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/jiffies.h>
+#include <linux/mmc/cd-gpio.h>
 #include <linux/mmc/host.h>
 #include <linux/module.h>
 #include <linux/slab.h>

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

#2 lore raw

Hi,

Quoted 10 lines · Guennadi Liakhovetski
Quoted 8 lines · H Hartley Sweeten

Include the linux/mmc/cd-gpio.h header to pickup the prototypes for the two exported symbols.

This quiets the sparse warnings:

warning: symbol 'mmc_cd_gpio_request' was not declared. Should it be static?
warning: symbol 'mmc_cd_gpio_free' was not declared. Should it be static?

Quoted 6 lines
Quoted 4 lines

Thanks, pushed to mmc-next for 3.4.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child