mmc: cd-gpio.c: Include header to pickup exported symbol prototypes
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
@@ -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>
Quoted 5 lines · H Hartley Sweeten
Include the
linux/mmc/cd-gpio.hheader 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?Signed-off-by H Hartley Sweeten <[email protected]>Cc Chris Ball <[email protected]>Cc Guennadi Liakhovetski <[email protected]>Acked-by Venkatraman S <[email protected]>
Thanks
Guennadi
Quoted 11 lines
---
v2: add new header alphabetically
drivers/mmc/core/cd-gpio.c +0
-0
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/
Hi,
Quoted 10 lines · Guennadi Liakhovetski
Quoted 8 lines · H Hartley Sweeten
Include the
linux/mmc/cd-gpio.hheader 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
Signed-off-by H Hartley Sweeten <[email protected]>Cc Chris Ball <[email protected]>Cc Guennadi Liakhovetski <[email protected]>Acked-by Venkatraman S <[email protected]>
Thanks, pushed to mmc-next for 3.4.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child