From: Dries S. <dri...@es...> - 2005-06-06 13:47:18
|
Dries Schellekens wrote: > Hey, > > tpmdd-1.0-kernel2.6.10.patch on sourceforge seems to be a patch for > linux-2.6.11.2 My mistake. I was able to patch the kernel source, but now make falses. I am running Ubuntu and get the following error. root@trent:/usr/src/linux-source-2.6.10 # make CHK include/linux/version.h make[1]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h CHK usr/initramfs_list CC [M] drivers/char/tpm/tpm.o In file included from drivers/char/tpm/tpm.c:29: drivers/char/tpm/tpm.h:99: error: syntax error before "pm_message_t" drivers/char/tpm/tpm.h:99: warning: function declaration isn't a prototype drivers/char/tpm/tpm.c:39: warning: type defaults to `int' in declaration of `DE FINE_SPINLOCK' drivers/char/tpm/tpm.c:39: warning: parameter names (without types) in function declaration drivers/char/tpm/tpm.c: In function `tpm_open': drivers/char/tpm/tpm.c:339: error: `driver_lock' undeclared (first use in this f unction) drivers/char/tpm/tpm.c:339: error: (Each undeclared identifier is reported only once drivers/char/tpm/tpm.c:339: error: for each function it appears in.) drivers/char/tpm/tpm.c: In function `tpm_release': drivers/char/tpm/tpm.c:388: error: `driver_lock' undeclared (first use in this f unction) drivers/char/tpm/tpm.c: In function `tpm_remove': drivers/char/tpm/tpm.c:471: error: `driver_lock' undeclared (first use in this f unction) drivers/char/tpm/tpm.c: At top level: drivers/char/tpm/tpm.c:503: error: syntax error before "pm_message_t" drivers/char/tpm/tpm.c:504: warning: function declaration isn't a prototype drivers/char/tpm/tpm.c: In function `tpm_pm_suspend': drivers/char/tpm/tpm.c:505: error: `pci_dev' undeclared (first use in this funct ion) drivers/char/tpm/tpm.c: In function `tpm_register_hardware': drivers/char/tpm/tpm.c:601: error: `driver_lock' undeclared (first use in this f unction) drivers/char/tpm/tpm.c: At top level: drivers/char/tpm/tpm.c:39: warning: `DEFINE_SPINLOCK' declared `static' but neve r defined make[3]: *** [drivers/char/tpm/tpm.o] Error 1 make[2]: *** [drivers/char/tpm] Error 2 make[1]: *** [drivers/char] Error 2 make: *** [drivers] Error 2 Cheers, Dries |