* [PATCH] mmc: cd-gpio.c: Include header to pickup exported symbol prototypes
@ 2012-04-17 1:24 H Hartley Sweeten
2012-04-17 6:59 ` Guennadi Liakhovetski
2012-04-17 8:17 ` S, Venkatraman
0 siblings, 2 replies; 3+ messages in thread
From: H Hartley Sweeten @ 2012-04-17 1:24 UTC (permalink / raw)
To: Linux Kernel; +Cc: linux-mmc, cjb, g.liakhovetski
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?
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Chris Ball <cjb@laptop.org>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
---
diff --git a/drivers/mmc/core/cd-gpio.c b/drivers/mmc/core/cd-gpio.c
index 29de31e..da7c3f9 100644
--- a/drivers/mmc/core/cd-gpio.c
+++ b/drivers/mmc/core/cd-gpio.c
@@ -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>
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: cd-gpio.c: Include header to pickup exported symbol prototypes
2012-04-17 1:24 [PATCH] mmc: cd-gpio.c: Include header to pickup exported symbol prototypes H Hartley Sweeten
@ 2012-04-17 6:59 ` Guennadi Liakhovetski
2012-04-17 8:17 ` S, Venkatraman
1 sibling, 0 replies; 3+ messages in thread
From: Guennadi Liakhovetski @ 2012-04-17 6:59 UTC (permalink / raw)
To: H Hartley Sweeten; +Cc: Linux Kernel, linux-mmc, cjb
Hi Hartley
Thanks for the patch.
On Mon, 16 Apr 2012, H Hartley Sweeten wrote:
> 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?
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Chris Ball <cjb@laptop.org>
> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
>
> ---
>
> diff --git a/drivers/mmc/core/cd-gpio.c b/drivers/mmc/core/cd-gpio.c
> index 29de31e..da7c3f9 100644
> --- a/drivers/mmc/core/cd-gpio.c
> +++ b/drivers/mmc/core/cd-gpio.c
> @@ -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.
> #include <linux/module.h>
> #include <linux/slab.h>
>
Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] mmc: cd-gpio.c: Include header to pickup exported symbol prototypes
2012-04-17 1:24 [PATCH] mmc: cd-gpio.c: Include header to pickup exported symbol prototypes H Hartley Sweeten
2012-04-17 6:59 ` Guennadi Liakhovetski
@ 2012-04-17 8:17 ` S, Venkatraman
1 sibling, 0 replies; 3+ messages in thread
From: S, Venkatraman @ 2012-04-17 8:17 UTC (permalink / raw)
To: H Hartley Sweeten; +Cc: Linux Kernel, linux-mmc, cjb, g.liakhovetski
On Tue, Apr 17, 2012 at 6:54 AM, H Hartley Sweeten
<hartleys@visionengravers.com> wrote:
> 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?
>
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Chris Ball <cjb@laptop.org>
> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
>
I posted a similar patch on friday. But yours has a more verbose commit log.
Acked-by: Venkatraman S <svenkatr@ti.com>
> ---
>
> diff --git a/drivers/mmc/core/cd-gpio.c b/drivers/mmc/core/cd-gpio.c
> index 29de31e..da7c3f9 100644
> --- a/drivers/mmc/core/cd-gpio.c
> +++ b/drivers/mmc/core/cd-gpio.c
> @@ -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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-17 8:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 1:24 [PATCH] mmc: cd-gpio.c: Include header to pickup exported symbol prototypes H Hartley Sweeten
2012-04-17 6:59 ` Guennadi Liakhovetski
2012-04-17 8:17 ` S, Venkatraman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox