LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* CONFIG_LEDS_DA903X=m breaks 2.6.28-rc2-git1 build on x86-64
@ 2008-10-27  8:45 Jean Delvare
  2008-10-27 10:09 ` Eric Miao
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2008-10-27  8:45 UTC (permalink / raw)
  To: Mike Rapoport, Eric Miao, Richard Purdie; +Cc: LKML, Linus Torvalds

Hi Mike, Eric, Richard,

With CONFIG_LEDS_DA903X=m, kernel 2.6.28-rc2-git1 fails to build on
x86-64 with the following error:

  CC [M]  drivers/leds/leds-da903x.o
drivers/leds/leds-da903x.c:35: error: field "work" has incomplete type
drivers/leds/leds-da903x.c: In function "da903x_led_work":
drivers/leds/leds-da903x.c:47: warning: type defaults to "int" in declaration of "__mptr"
drivers/leds/leds-da903x.c:47: warning: initialization from incompatible pointer type
drivers/leds/leds-da903x.c: In function "da903x_led_set":
drivers/leds/leds-da903x.c:89: error: implicit declaration of function "schedule_work"
drivers/leds/leds-da903x.c: In function "da903x_led_probe":
drivers/leds/leds-da903x.c:125: error: implicit declaration of function "INIT_WORK"

Can we PLEASE stick to the plan and ONLY have bug FIXES after rc1 (and
even more so after rc2)?

Thanks,
-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: CONFIG_LEDS_DA903X=m breaks 2.6.28-rc2-git1 build on x86-64
  2008-10-27  8:45 CONFIG_LEDS_DA903X=m breaks 2.6.28-rc2-git1 build on x86-64 Jean Delvare
@ 2008-10-27 10:09 ` Eric Miao
  2008-10-27 11:42   ` Jean Delvare
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Miao @ 2008-10-27 10:09 UTC (permalink / raw)
  To: Jean Delvare, Mike Rapoport, Richard Purdie; +Cc: LKML, Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 1377 bytes --]

This is strange, it compiles OK on ARM, I don't know why this
failed on x86-64. But anyway, <linux/workqueue.h> should really
be explicitly included here.

The attached patch should fix this.

- eric

-----Original Message-----
From: Jean Delvare [mailto:khali@linux-fr.org] 
Sent: Monday, October 27, 2008 4:45 PM
To: Mike Rapoport; Eric Miao; Richard Purdie
Cc: LKML; Linus Torvalds
Subject: CONFIG_LEDS_DA903X=m breaks 2.6.28-rc2-git1 build on x86-64

Hi Mike, Eric, Richard,

With CONFIG_LEDS_DA903X=m, kernel 2.6.28-rc2-git1 fails to build on
x86-64 with the following error:

  CC [M]  drivers/leds/leds-da903x.o
drivers/leds/leds-da903x.c:35: error: field "work" has incomplete type
drivers/leds/leds-da903x.c: In function "da903x_led_work":
drivers/leds/leds-da903x.c:47: warning: type defaults to "int" in
declaration of "__mptr"
drivers/leds/leds-da903x.c:47: warning: initialization from incompatible
pointer type
drivers/leds/leds-da903x.c: In function "da903x_led_set":
drivers/leds/leds-da903x.c:89: error: implicit declaration of function
"schedule_work"
drivers/leds/leds-da903x.c: In function "da903x_led_probe":
drivers/leds/leds-da903x.c:125: error: implicit declaration of function
"INIT_WORK"

Can we PLEASE stick to the plan and ONLY have bug FIXES after rc1 (and
even more so after rc2)?

Thanks,
-- 
Jean Delvare

[-- Attachment #2: 0001-leds-da903x-fix-the-building-failure-of-incomplete.patch --]
[-- Type: application/octet-stream, Size: 1610 bytes --]

From 2d82121aaecf73b66285cc1c0bf241c87afe7293 Mon Sep 17 00:00:00 2001
From: Eric Miao <eric.miao@marvell.com>
Date: Mon, 27 Oct 2008 17:48:50 +0800
Subject: [PATCH] leds: da903x: fix the building failure of incomplete type of 'work'

With CONFIG_LEDS_DA903X=m, kernel 2.6.28-rc2-git1 fails to build on
x86-64 with the following error:

  CC [M]  drivers/leds/leds-da903x.o
drivers/leds/leds-da903x.c:35: error: field "work" has incomplete type
drivers/leds/leds-da903x.c: In function "da903x_led_work":
drivers/leds/leds-da903x.c:47: warning: type defaults to "int" in declaration of "__mptr"
drivers/leds/leds-da903x.c:47: warning: initialization from incompatible pointer type
drivers/leds/leds-da903x.c: In function "da903x_led_set":
drivers/leds/leds-da903x.c:89: error: implicit declaration of function "schedule_work"
drivers/leds/leds-da903x.c: In function "da903x_led_probe":
drivers/leds/leds-da903x.c:125: error: implicit declaration of function "INIT_WORK"

Include the <linux/workqueue.h> explicitly here to fix the above issue.

Reported-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
---
 drivers/leds/leds-da903x.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/leds/leds-da903x.c b/drivers/leds/leds-da903x.c
index f1fddb1..2768c69 100644
--- a/drivers/leds/leds-da903x.c
+++ b/drivers/leds/leds-da903x.c
@@ -17,6 +17,7 @@
 #include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/leds.h>
+#include <linux/workqueue.h>
 #include <linux/mfd/da903x.h>
 
 #define DA9030_LED1_CONTROL	0x20
-- 
1.6.0.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: CONFIG_LEDS_DA903X=m breaks 2.6.28-rc2-git1 build on x86-64
  2008-10-27 10:09 ` Eric Miao
@ 2008-10-27 11:42   ` Jean Delvare
  0 siblings, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2008-10-27 11:42 UTC (permalink / raw)
  To: Eric Miao; +Cc: Mike Rapoport, Richard Purdie, LKML, Linus Torvalds

Hi Eric,

On Mon, 27 Oct 2008 03:09:25 -0700, Eric Miao wrote:
> This is strange, it compiles OK on ARM, I don't know why this
> failed on x86-64. But anyway, <linux/workqueue.h> should really
> be explicitly included here.
> 
> The attached patch should fix this.

Yes it does, thanks for the quick fix. Please get this upstream quickly
too.

Acked-by: Jean Delvare <khali@linux-fr.org>

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-27 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27  8:45 CONFIG_LEDS_DA903X=m breaks 2.6.28-rc2-git1 build on x86-64 Jean Delvare
2008-10-27 10:09 ` Eric Miao
2008-10-27 11:42   ` Jean Delvare

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).