public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* xpad_probe: undefined reference to `led_classdev_register'
@ 2007-09-26 21:25 thomas
  2007-09-26 21:55 ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: thomas @ 2007-09-26 21:25 UTC (permalink / raw)
  To: linux-kernel

Hi.

Current linus' git tree:

x86_64-unknown-linux-gnu-ld: BFD 2.15 assertion fail
/home/thomas/source/crosstool-0.43/build/x86_64-unknown-linux-gnu/gcc-3.4.5-glibc-2.3.6/binutils-2.15/bfd/linker.c:619
drivers/built-in.o(.text+0x20749d): In function `xpad_probe':
: undefined reference to `led_classdev_register'
drivers/built-in.o(.text+0x20756c): In function `xpad_disconnect':
: undefined reference to `led_classdev_unregister'
make: *** [.tmp_vmlinux1] Fehler 1

any ideas?

mfg
thomas


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

* Re: xpad_probe: undefined reference to `led_classdev_register'
  2007-09-26 21:25 xpad_probe: undefined reference to `led_classdev_register' thomas
@ 2007-09-26 21:55 ` Randy Dunlap
  2007-09-26 22:33   ` Dmitry Torokhov
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2007-09-26 21:55 UTC (permalink / raw)
  To: thomas; +Cc: linux-kernel

On Wed, 26 Sep 2007 23:25:33 +0200 thomas@m3y3r.de wrote:

> Hi.
> 
> Current linus' git tree:
> 
> x86_64-unknown-linux-gnu-ld: BFD 2.15 assertion fail
> /home/thomas/source/crosstool-0.43/build/x86_64-unknown-linux-gnu/gcc-3.4.5-glibc-2.3.6/binutils-2.15/bfd/linker.c:619
> drivers/built-in.o(.text+0x20749d): In function `xpad_probe':
> : undefined reference to `led_classdev_register'
> drivers/built-in.o(.text+0x20756c): In function `xpad_disconnect':
> : undefined reference to `led_classdev_unregister'
> make: *** [.tmp_vmlinux1] Fehler 1
> 
> any ideas?

Please send .config file.

Ix xpad driver built-in (yes, it is) and led driver is modular?
We can fix that...

---
~Randy
Phaedrus says that Quality is about caring.

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

* Re: xpad_probe: undefined reference to `led_classdev_register'
  2007-09-26 21:55 ` Randy Dunlap
@ 2007-09-26 22:33   ` Dmitry Torokhov
  2007-09-26 22:35     ` Randy Dunlap
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2007-09-26 22:33 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: thomas, linux-kernel

Hi,

On Wednesday 26 September 2007, Randy Dunlap wrote:
> On Wed, 26 Sep 2007 23:25:33 +0200 thomas@m3y3r.de wrote:
> 
> > Hi.
> > 
> > Current linus' git tree:
> > 
> > x86_64-unknown-linux-gnu-ld: BFD 2.15 assertion fail
> > /home/thomas/source/crosstool-0.43/build/x86_64-unknown-linux-gnu/gcc-3.4.5-glibc-2.3.6/binutils-2.15/bfd/linker.c:619
> > drivers/built-in.o(.text+0x20749d): In function `xpad_probe':
> > : undefined reference to `led_classdev_register'
> > drivers/built-in.o(.text+0x20756c): In function `xpad_disconnect':
> > : undefined reference to `led_classdev_unregister'
> > make: *** [.tmp_vmlinux1] Fehler 1
> > 
> > any ideas?
> 
> Please send .config file.
> 
> Ix xpad driver built-in (yes, it is) and led driver is modular?
> We can fix that...
>

I have the patch below in mytree. I guess I need to forward it to Linus
insterad of waiting for 2.6.24 as too many people hit this.

-- 
Dmitry
 
Input: xpad - fix dependancy on LEDS class

The driver can not be built-in when LEDS class is a module.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
 drivers/input/joystick/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: work/drivers/input/joystick/Kconfig
===================================================================
--- work.orig/drivers/input/joystick/Kconfig
+++ work/drivers/input/joystick/Kconfig
@@ -277,7 +277,7 @@ config JOYSTICK_XPAD_FF
 
 config JOYSTICK_XPAD_LEDS
 	bool "LED Support for Xbox360 controller 'BigX' LED"
-	depends on LEDS_CLASS && JOYSTICK_XPAD
+	depends on JOYSTICK_XPAD && (LEDS_CLASS=y || LEDS_CLASS=JOYSTICK_XPAD)
 	---help---
 	  This option enables support for the LED which surrounds the Big X on
 	  XBox 360 controller.

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

* Re: xpad_probe: undefined reference to `led_classdev_register'
  2007-09-26 22:33   ` Dmitry Torokhov
@ 2007-09-26 22:35     ` Randy Dunlap
  0 siblings, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2007-09-26 22:35 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: thomas, linux-kernel

On Wed, 26 Sep 2007 18:33:22 -0400 Dmitry Torokhov wrote:

> Hi,
> 
> On Wednesday 26 September 2007, Randy Dunlap wrote:
> > On Wed, 26 Sep 2007 23:25:33 +0200 thomas@m3y3r.de wrote:
> > 
> > > Hi.
> > > 
> > > Current linus' git tree:
> > > 
> > > x86_64-unknown-linux-gnu-ld: BFD 2.15 assertion fail
> > > /home/thomas/source/crosstool-0.43/build/x86_64-unknown-linux-gnu/gcc-3.4.5-glibc-2.3.6/binutils-2.15/bfd/linker.c:619
> > > drivers/built-in.o(.text+0x20749d): In function `xpad_probe':
> > > : undefined reference to `led_classdev_register'
> > > drivers/built-in.o(.text+0x20756c): In function `xpad_disconnect':
> > > : undefined reference to `led_classdev_unregister'
> > > make: *** [.tmp_vmlinux1] Fehler 1
> > > 
> > > any ideas?
> > 
> > Please send .config file.
> > 
> > Ix xpad driver built-in (yes, it is) and led driver is modular?
> > We can fix that...
> >
> 
> I have the patch below in mytree. I guess I need to forward it to Linus
> insterad of waiting for 2.6.24 as too many people hit this.
> 
> -- 
> Dmitry
>  
> Input: xpad - fix dependancy on LEDS class
> 
> The driver can not be built-in when LEDS class is a module.
> 
> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

Yes, looks good.  Thanks.

> ---
>  drivers/input/joystick/Kconfig |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: work/drivers/input/joystick/Kconfig
> ===================================================================
> --- work.orig/drivers/input/joystick/Kconfig
> +++ work/drivers/input/joystick/Kconfig
> @@ -277,7 +277,7 @@ config JOYSTICK_XPAD_FF
>  
>  config JOYSTICK_XPAD_LEDS
>  	bool "LED Support for Xbox360 controller 'BigX' LED"
> -	depends on LEDS_CLASS && JOYSTICK_XPAD
> +	depends on JOYSTICK_XPAD && (LEDS_CLASS=y || LEDS_CLASS=JOYSTICK_XPAD)
>  	---help---
>  	  This option enables support for the LED which surrounds the Big X on
>  	  XBox 360 controller.
> -

---
~Randy
Phaedrus says that Quality is about caring.

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

end of thread, other threads:[~2007-09-26 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26 21:25 xpad_probe: undefined reference to `led_classdev_register' thomas
2007-09-26 21:55 ` Randy Dunlap
2007-09-26 22:33   ` Dmitry Torokhov
2007-09-26 22:35     ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox