Matt Dharm posted a patch for the lock_kernel() calls last Friday,
2000-apr-21.
In usb/devices.c, just add
#include <linux/smp_lock.h>
Matt added it just after #include <linux/usb.h>.
For the remainder of these messages, it looks like you
need to upgrade your binutils package (specifically
"as", the assembler). Check what version you are using (ld -v)
versus the requirements that are listed in
linux/Documentation/Changes (2.9.1.0.7).
~Randy
___________________________________________________
|Randy Dunlap Intel Corp., DAL Sr. SW Engr.|
|randy.dunlap.at.intel.com 503-696-2055|
|NOTE: Any views presented here are mine alone |
|and may not represent the views of my employer. |
|_________________________________________________|
> -----Original Message-----
> From: Joseph Fannin [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 24, 2000 9:20 AM
> To: [EMAIL PROTECTED]
> Subject: [linux-usb] Build failure in 2.3.99-pre6/5
>
>
> My attempts to build kernel 2.3.99-pre6/5 have failed in the USB
> subsection.
> Building with usb as modules works okay, but usbcore (I
> think) ends
> up with unresolved symbols -- 'lock_kernel' and
> 'unlock_kernel'. Building
> with USB in-kernel fails in what I think is the final linking stage.
> The redirected standard error from the build follows. I will ask my
> local LUG how to redirect stdout and stderr into a single
> file, to provide context in the future.
>
>
> devices.c: In function `usb_device_poll':
> devices.c:461: warning: implicit declaration of function `lock_kernel'
> devices.c:480: warning: implicit declaration of function
> `unlock_kernel'
> {standard input}: Assembler messages:
> {standard input}:1738: Warning: using `%eax' instead of `%ax' due to
> `l' suffix
> {standard input}:1738: Warning: using `%eax' instead of `%ax' due to
> `l' suffix
> {standard input}: Assembler messages:
> {standard input}:1115: Warning: using `%eax' instead of `%ax' due to
> `l' suffix
> {standard input}:1126: Warning: using `%eax' instead of `%ax' due to
> `l' suffix
> {standard input}: Assembler messages:
> {standard input}:697: Warning: using `%dx' instead of `%edx'
> due to `w'
> suffix
> drivers/usb/usbdrv.o: In function `usb_device_poll':
> drivers/usb/usbdrv.o(.text+0x438a): undefined reference to
> `lock_kernel'
> drivers/usb/usbdrv.o(.text+0x43ec): undefined reference to
> `unlock_kernel'
> make: *** [vmlinux] Error 1
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]