- From: SA <n0td1scl0s3d_at_ntlworld.com>
- Date: Wed, 23 Nov 2005 22:28:01 +0000
> I think the following patch might help, but I don't have a 2.6.11 kernel
> installed right now to test it. I'm pretty sure the pud stuff was added
> in 2.6.11 though, not 2.6.12 as the compatibility header currently
> indicates.
>
> Index: include/asm/pgtable.h
> ===================================================================
> RCS file: /var/cvs/comedi/include/asm/pgtable.h,v
> retrieving revision 1.3
> diff -u -r1.3 pgtable.h
> --- include/asm/pgtable.h 6 Oct 2005 17:42:06 -0000 1.3
> +++ include/asm/pgtable.h 23 Nov 2005 15:02:20 -0000
> _at__at_ -21,7 +21,7 _at__at_
>
> #include <linux/version.h>
>
> -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)
> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
> #define pud_t pgd_t
> #define pud_offset(pgd, start) (pgd)
> #endif
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Ian,
tried the patch but I got a new error (below) and it isn't clear what it means.
I think I might change to kernel 2.6.12 and try again as this works for my other
(uniprocessor) machine. However I'll wait until tomorrow in case there is
something else to try.
Thanks
SA
temazepan.eee.nottingham.ac.uk:96 make
make all-recursive
make[1]: Entering directory `/home/matt/Desktop/comedi/comedi'
Making all in comedi
make[2]: Entering directory `/home/matt/Desktop/comedi/comedi/comedi'
Making all in .
make[3]: Entering directory `/home/matt/Desktop/comedi/comedi/comedi'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include/ -DKBUILD_MODNAME=comedi -DKBUILD_BASENAME=comedi_fops -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -g -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -D__KERNEL__ -I/lib/modules/2.6.11-1.27_FC3smp/build/include -DMODULE -g -O2 -MT comedi_ko-comedi_fops.o -MD -MP -MF ".deps/comedi_ko-comedi_fops.Tpo" -c -o comedi_ko-comedi_fops.o `test -f 'comedi_fops.c' || echo './'`comedi_fops.c; \
then mv -f ".deps/comedi_ko-comedi_fops.Tpo" ".deps/comedi_ko-comedi_fops.Po"; else rm -f ".deps/comedi_ko-comedi_fops.Tpo"; exit 1; fi
In file included from /lib/modules/2.6.11-1.27_FC3smp/build/include/linux/kobject.h:24,
from /lib/modules/2.6.11-1.27_FC3smp/build/include/linux/module.h:19,
from ../include/linux/module.h:19,
from comedi_fops.c:27:
../include/linux/kref.h: In function `KREF_PUT':
../include/linux/kref.h:101: error: void value not ignored as it ought to be
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/home/matt/Desktop/comedi/comedi/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/matt/Desktop/comedi/comedi/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/matt/Desktop/comedi/comedi'
make: *** [all] Error 2
Received on 2005-11-23Z22:28:01