* [PATCH] mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources
@ 2011-11-10 1:56 Axel Lin
2011-11-10 8:41 ` Linus Walleij
2011-11-14 0:32 ` Samuel Ortiz
0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2011-11-10 1:56 UTC (permalink / raw)
To: linux-arm-kernel
Fix below build warning if CONFIG_DEBUG_FS is disabled.
CC drivers/mfd/ab8500-core.o
drivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not used
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/mfd/ab8500-core.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index 1e91738..d3d572b 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -620,6 +620,7 @@ static struct resource __devinitdata ab8500_fg_resources[] = {
static struct resource __devinitdata ab8500_chargalg_resources[] = {};
+#ifdef CONFIG_DEBUG_FS
static struct resource __devinitdata ab8500_debug_resources[] = {
{
.name = "IRQ_FIRST",
@@ -634,6 +635,7 @@ static struct resource __devinitdata ab8500_debug_resources[] = {
.flags = IORESOURCE_IRQ,
},
};
+#endif
static struct resource __devinitdata ab8500_usb_resources[] = {
{
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources
2011-11-10 1:56 [PATCH] mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources Axel Lin
@ 2011-11-10 8:41 ` Linus Walleij
2011-11-14 0:32 ` Samuel Ortiz
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2011-11-10 8:41 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 10, 2011 at 2:56 AM, Axel Lin <axel.lin@gmail.com> wrote:
> Fix below build warning if CONFIG_DEBUG_FS is disabled.
>
> ?CC ? ? ?drivers/mfd/ab8500-core.o
> drivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not used
>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Thanks Axel!
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources
2011-11-10 1:56 [PATCH] mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources Axel Lin
2011-11-10 8:41 ` Linus Walleij
@ 2011-11-14 0:32 ` Samuel Ortiz
1 sibling, 0 replies; 3+ messages in thread
From: Samuel Ortiz @ 2011-11-14 0:32 UTC (permalink / raw)
To: linux-arm-kernel
Hi Axel,
On Thu, Nov 10, 2011 at 09:56:18AM +0800, Axel Lin wrote:
> Fix below build warning if CONFIG_DEBUG_FS is disabled.
>
> CC drivers/mfd/ab8500-core.o
> drivers/mfd/ab8500-core.c:623: warning: 'ab8500_debug_resources' defined but not used
>
Thanks for the fix, I applied this one to my for-linus branch.
Cheers,
Samuel.
--
Intel Open Source Technology Centre
http://oss.intel.com/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-11-14 0:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-10 1:56 [PATCH] mfd: add #ifdef CONFIG_DEBUG_FS guard for ab8500_debug_resources Axel Lin
2011-11-10 8:41 ` Linus Walleij
2011-11-14 0:32 ` Samuel Ortiz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).