2.5.68-bk10 - usbkbd.c compilation error

2.5.68-bk10 - usbkbd.c compilation error

Post by Grzegorz Jaskiewic » Thu, 01 May 2003 20:20:04



  gcc -Wp,-MD,drivers/usb/input/.usbkbd.o.d -D__KERNEL__ -Iinclude -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=pentium4
-Iinclude/asm-i386/mach-default -fomit-frame-pointer -nostdinc
-iwithprefix include -DMODULE   -DKBUILD_BASENAME=usbkbd
-DKBUILD_MODNAME=usbkbd -c -o drivers/usb/input/.tmp_usbkbd.o
drivers/usb/input/usbkbd.c
drivers/usb/input/usbkbd.c:363: unknown field `devclass' specified in
initializer
drivers/usb/input/usbkbd.c:363: `input_devclass' undeclared here (not in
a function)
drivers/usb/input/usbkbd.c:363: initializer element is not constant
drivers/usb/input/usbkbd.c:363: (near initialization for
`usb_kbd_driver.driver.name')
drivers/usb/input/usbkbd.c:364: initializer element is not constant
drivers/usb/input/usbkbd.c:364: (near initialization for
`usb_kbd_driver.driver')
make[3]: *** [drivers/usb/input/usbkbd.o] Error 1
make[2]: *** [drivers/usb/input] Error 2
make[1]: *** [drivers/usb] Error 2
make: *** [drivers] Error 2

the same problem exists in usbmouse.c

changes are the same like in :
http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%...

This solves problem:

diff -u -r linux-2.5.68-bk10-org/drivers/usb/input/usbkbd.c
linux-2.5.68-bk10-changed/drivers/usb/input/usbkbd.c
--- linux-2.5.68-bk10-org/drivers/usb/input/usbkbd.c    2003-04-30
18:50:43.000000000 +0100
+++ linux-2.5.68-bk10-changed/drivers/usb/input/usbkbd.c      

        .probe =        usb_kbd_probe,
        .disconnect =   usb_kbd_disconnect,
        .id_table =     usb_kbd_id_table,
-       .driver = {
-               .devclass = &input_devclass,
-       },
 };

 static int __init usb_kbd_init(void)
diff -u -r linux-2.5.68-bk10-org/drivers/usb/input/usbmouse.c
linux-2.5.68-bk10-changed/drivers/usb/input/usbmouse.c
--- linux-2.5.68-bk10-org/drivers/usb/input/usbmouse.c  2003-04-30
18:54:11.000000000 +0100
+++ linux-2.5.68-bk10-changed/drivers/usb/input/usbmouse.c    

        .probe          = usb_mouse_probe,
        .disconnect     = usb_mouse_disconnect,
        .id_table       = usb_mouse_id_table,
-       .driver = {
-               .devclass = &input_devclass,
-       },
 };

 static int __init usb_mouse_init(void)

--

K4 Labs

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk10 - usbkbd.c compilation error

Post by Greg K » Thu, 01 May 2003 20:40:10



> drivers/usb/input/usbkbd.c:363: unknown field `devclass' specified in initializer

Bah, I missed these drivers, sorry.

I'll send this on to Linus in a bit.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk10 - usbkbd.c compilation error

Post by Pete Zaitce » Fri, 02 May 2003 00:20:08


Quote:>   gcc -Wp,-MD,drivers/usb/input/.usbkbd.o.d -D__KERNEL__ -Iinclude -Wall
> -DKBUILD_MODNAME=usbkbd -c -o drivers/usb/input/.tmp_usbkbd.o
> drivers/usb/input/usbkbd.c

Just curious, why do you use usbkbd and usbmouse?
I think they should have been removed from the kernel long ago.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk10 - usbkbd.c compilation error

Post by Randy.Dunla » Fri, 02 May 2003 00:30:13



| >   gcc -Wp,-MD,drivers/usb/input/.usbkbd.o.d -D__KERNEL__ -Iinclude -Wall
| > -DKBUILD_MODNAME=usbkbd -c -o drivers/usb/input/.tmp_usbkbd.o
| > drivers/usb/input/usbkbd.c
|
| Just curious, why do you use usbkbd and usbmouse?
| I think they should have been removed from the kernel long ago.

Those options are somewhat hidden in 2.5 *config.
Someone has to go out of their way to select them, and if that
happens, they should really want/need to use them.

There are better choices of (non-building) drivers that could be
removed IMO.

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk10 - usbkbd.c compilation error

Post by Greg K » Fri, 02 May 2003 00:30:17



> >   gcc -Wp,-MD,drivers/usb/input/.usbkbd.o.d -D__KERNEL__ -Iinclude -Wall
> > -DKBUILD_MODNAME=usbkbd -c -o drivers/usb/input/.tmp_usbkbd.o
> > drivers/usb/input/usbkbd.c

> Just curious, why do you use usbkbd and usbmouse?

He must be building an embedded system, as that's the only people who
should be using those drivers (as is explained in the help entries.)

Quote:> I think they should have been removed from the kernel long ago.

The embedded people would hate you :)

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

2.5.68-bk10 - usbkbd.c compilation error

Post by Grzegorz Jaskiewic » Fri, 02 May 2003 00:40:15




> > >   gcc -Wp,-MD,drivers/usb/input/.usbkbd.o.d -D__KERNEL__ -Iinclude -Wall
> > > -DKBUILD_MODNAME=usbkbd -c -o drivers/usb/input/.tmp_usbkbd.o
> > > drivers/usb/input/usbkbd.c

> > Just curious, why do you use usbkbd and usbmouse?

> He must be building an embedded system, as that's the only people who
> should be using those drivers (as is explained in the help entries.)

actually i am just using usb kbd/mouse on my desktop system.
this configuration was created using make menuconfig (attached).

Quote:> > I think they should have been removed from the kernel long ago.

> The embedded people would hate you :)

hehehehehe

--

K4 labs

  .config
26K Download