From: Siddhartha J. <sid...@si...> - 2007-05-21 20:51:59
|
Did you grep the mceusb2 source code for "SLAB_ATOMIC"? I think there were two instances of that constant in the code and I had replaced them with GFP_ATOMIC. - Siddhartha On 5/19/07, Nathan A. Smith <na...@co...> wrote: > On Fri, 2007-05-18 at 11:27 -0700, Siddhartha Jain wrote: > > I tried this and it did compile but I never got to use it because I > > don't have the mceusb2 device. > > http://ubuntuforums.org/showthread.php?t=3D404577 > > ------------------------ > > Change > > #include <linux/usb_input.h> > > to > > /* #include <linux/usb/input.h> */ > > > > > > and change > > input_regs(dev, regs); > > to > > /* input_regs(dev, regs); */ > > > > finally, change > > SLAB_ATOMIC > > to > > GFP_ATOMIC > > ------------------------ > > > > - Siddhartha > > > Thanks for the reply Siddhartha, > > Unfortuntely, I couldn't find the file that need that changed. I do > indeed need mceusb2. I did a 'grep -r "usb_input.h" *" in the top level > of the source directory but didn't find anything. I did the same with > "input_regs" with the same results. > > I am using lirc_8.1 from the lirc website (ie: a tarball.) > > Thanks again for looking at my post. > > Nasa > > > > > > > > On 5/17/07, Nathan A. Smith <na...@co...> wrote: > > > Hi, > > > > > > I have been trying to compile lirc 8.1 with a machine running > > > 2.6.22-rc1. The kernel is compiled straight from source. The output > > > I am getting follows: > > > > > > [root@localhost lirc-0.8.1]# make > > > make all-recursive > > > make[1]: Entering directory `/root/temp/lirc-0.8.1' > > > Making all in drivers > > > make[2]: Entering directory `/root/temp/lirc-0.8.1/drivers' > > > Making all in lirc_dev > > > make[3]: Entering directory `/root/temp/lirc-0.8.1/drivers/lirc_dev' > > > make[3]: Nothing to be done for `all'. > > > make[3]: Leaving directory `/root/temp/lirc-0.8.1/drivers/lirc_dev' > > > Making all in lirc_mceusb2 > > > make[3]: Entering directory `/root/temp/lirc-0.8.1/drivers/lirc_mceus= b2' > > > Makefile:8: ************************************************** > > > Makefile:8: *** Makefile trick not undone, trying to recover * > > > Makefile:8: ************************************************** > > > mv Makefile.automake Makefile > > > make all > > > make[4]: Entering directory `/root/temp/lirc-0.8.1/drivers/lirc_mceus= b2' > > > mv Makefile Makefile.automake > > > cp ../Makefile.kernel Makefile > > > make -C /lib/modules/2.6.21/build/ > > > SUBDIRS=3D/root/temp/lirc-0.8.1/drivers/lirc_mceusb2 modules \ > > > KBUILD_VERBOSE=3D1 > > > make[5]: Entering directory `/usr/src/linux-2.6.21' > > > test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( > > > \ > > > echo; > > > \ > > > echo " ERROR: Kernel configuration is invalid."; > > > \ > > > echo " include/linux/autoconf.h or > > > include/config/auto.conf are missing."; \ > > > echo " Run 'make oldconfig && make prepare' on kernel > > > src to fix it."; \ > > > echo; > > > \ > > > /bin/false) > > > mkdir -p /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/.tmp_versions > > > rm -f /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/.tmp_versions/* > > > make -f scripts/Makefile.build > > > obj=3D/root/temp/lirc-0.8.1/drivers/lirc_mceusb2 > > > gcc -m32 > > > -Wp,-MD,/root/temp/lirc-0.8.1/drivers/lirc_mceusb2/.lirc_mceusb2.o.d > > > -nostdinc -isystem /usr/lib/gcc/i586-mandriva-linux-gnu/4.1.2/include > > > -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wund= ef > > > -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -= Os > > > -pipe -msoft-float -mregparm=3D3 -freg-struct-return > > > -mpreferred-stack-boundary=3D4 -march=3Di586 -mtune=3Dgeneric -ffree= standing > > > -maccumulate-outgoing-args -DCONFIG_AS_CFI=3D1 > > > -DCONFIG_AS_CFI_SIGNAL_FRAME=3D1 -Iinclude/asm-i386/mach-default > > > -fno-omit-frame-pointer -fno-optimize-sibling-calls > > > -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign > > > -DIRCTL_DEV_MAJOR=3D61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.= . > > > -I/root/temp/lirc-0.8.1/drivers/lirc_mceusb2/../.. > > > -I/lib/modules/2.6.21/build//include/ > > > -I/lib/modules/2.6.21/build//drivers/media/video/ -DMODULE > > > -D"KBUILD_STR(s)=3D#s" -D"KBUILD_BASENAME=3DKBUILD_STR(lirc_mceusb2)" > > > -D"KBUILD_MODNAME=3DKBUILD_STR(lirc_mceusb2)" -c > > > -o /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.o /root/te= mp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c: In functio= n > > > =E2=80=98request_packet_async=E2=80=99: > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:237: warnin= g: > > > passing argument 6 of =E2=80=98usb_fill_int_urb=E2=80=99 from incompa= tible pointer > > > type > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:245: warnin= g: > > > passing argument 6 of =E2=80=98usb_fill_int_urb=E2=80=99 from incompa= tible pointer > > > type > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:266: error: > > > =E2=80=98SLAB_ATOMIC=E2=80=99 undeclared (first use in this function) > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:266: error: > > > (Each undeclared identifier is reported only once > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:266: error: > > > for each function it appears in.) > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c: In functio= n > > > =E2=80=98usb_remote_recv=E2=80=99: > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:469: error: > > > =E2=80=98SLAB_ATOMIC=E2=80=99 undeclared (first use in this function) > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c: In functio= n > > > =E2=80=98usb_remote_probe=E2=80=99: > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:705: error: > > > =E2=80=98SLAB_ATOMIC=E2=80=99 undeclared (first use in this function) > > > /root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2.c:783: warnin= g: > > > passing argument 6 of =E2=80=98usb_fill_int_urb=E2=80=99 from incompa= tible pointer > > > type > > > make[6]: *** [/root/temp/lirc-0.8.1/drivers/lirc_mceusb2/lirc_mceusb2= .o] > > > Error 1 > > > make[5]: *** [_module_/root/temp/lirc-0.8.1/drivers/lirc_mceusb2] Err= or > > > 2 > > > make[5]: Leaving directory `/usr/src/linux-2.6.21' > > > make[4]: *** [lirc_mceusb2.o] Error 2 > > > make[4]: Leaving directory `/root/temp/lirc-0.8.1/drivers/lirc_mceusb= 2' > > > make[3]: *** [all] Error 2 > > > make[3]: Leaving directory `/root/temp/lirc-0.8.1/drivers/lirc_mceusb= 2' > > > make[2]: *** [all-recursive] Error 1 > > > make[2]: Leaving directory `/root/temp/lirc-0.8.1/drivers' > > > make[1]: *** [all-recursive] Error 1 > > > make[1]: Leaving directory `/root/temp/lirc-0.8.1' > > > make: *** [all] Error 2 > > > > > > > > > Could anyone tell me what I am missing? > > > > > > Thanks > > > > > > Nasa > > > > > > > > > > > > ---------------------------------------------------------------------= ---- > > > This SF.net email is sponsored by DB2 Express > > > Download DB2 Express C - the FREE version of DB2 express and take > > > control of your XML. No limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > > -----------------------------------------------------------------------= -- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > |