Skip to contentSkip to conversation

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

PATCH Superseded H Hartley Sweeten 3 participants 3 messages Apr 17, 2012 MMC, SD and SDIO

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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?

Cc Chris Ball <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>

---

drivers/mmc/core/cd-gpio.c +1 -0
index 29de31e..da7c3f9 100644
@@ -13,6 +13,7 @@
 #include <linux/interrupt.h>
 #include <linux/jiffies.h>
 #include <linux/mmc/host.h>
+#include <linux/mmc/cd-gpio.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 
#1 lore raw

Hi Hartley

Thanks for the patch.

Quoted 19 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?

Cc Chris Ball <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>

---

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

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

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

Call me a pettyfogger, but please put the header above mmc/host.h, please, keep the alphabetic order.

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

Quoted 3 lines
drivers/mmc/core/cd-gpio.c +0 -0
 #include <linux/module.h>
 #include <linux/slab.h>
 

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

Acked-by on v1 1/1
#2 lore raw
In reply to H Hartley Sweeten
Quoted 12 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?

Cc Chris Ball <[email protected]>
Cc Guennadi Liakhovetski <[email protected]>

I posted a similar patch on friday. But yours has a more verbose commit log.

Quoted 18 lines

---

drivers/mmc/core/cd-gpio.c +1 -1
index 29de31e..da7c3f9 100644
@@ -13,6 +13,7 @@
  #include <linux/interrupt.h>
  #include <linux/jiffies.h>
  #include <linux/mmc/host.h>
+#include <linux/mmc/cd-gpio.h>
  #include <linux/module.h>
  #include <linux/slab.h>
 
--

To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html