Results 1 to 3 of 3
I am trying following program
Code:
#include <linux/kernel.h>
#include <sys/syscall.h>
#include <linux/module.h>
extern void *sys_table[];
asmlinkage int(*main_sys_exit)(int);
asmlinkage int alt_exit_function(int err_code)
{
printk("Sys_exit called with err_code=%d\n",err_code);
return main_sys_exit(err_code);
}
int ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-21-2010 #1Just Joined!
- Join Date
- Mar 2005
- Posts
- 9
linux/module.h does not exist
I am trying following program
Code:#include <linux/kernel.h> #include <sys/syscall.h> #include <linux/module.h> extern void *sys_table[]; asmlinkage int(*main_sys_exit)(int); asmlinkage int alt_exit_function(int err_code) { printk("Sys_exit called with err_code=%d\n",err_code); return main_sys_exit(err_code); } int init_module() { main_sys_exit=sys_table[__NR_exit]; sys_table[__NR_exit]=alt_exit_function; } void cleanup_module() { sys_table[__NR_exit]=main_sys_exit; }
Now compile it
What is the error.Code:gcc -Wall -DMODULE -D__KERNEL -DLINUX -c sample2.c sample2.c:3:26: error: linux/module.h: No such file or directory sample2.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ sample2.c:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’ sample2.c: In function ‘init_module’: sample2.c:14: error: ‘main_sys_exit’ undeclared (first use in this function) sample2.c:14: error: (Each undeclared identifier is reported only once sample2.c:14: error: for each function it appears in.) sample2.c:15: error: ‘alt_exit_function’ undeclared (first use in this function) sample2.c:16: warning: control reaches end of non-void function sample2.c: In function ‘cleanup_module’: sample2.c:19: error: ‘main_sys_exit’ undeclared (first use in this function)
I did a find on module.h
Which one is it saying not present?Code:/usr/src/linux-headers-2.6.28-11-generic/include/linux/module.h /usr/src/linux-headers-2.6.28-11/arch/alpha/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/sh/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/ia64/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/ia64/include/asm/sn/module.h /usr/src/linux-headers-2.6.28-11/arch/arm/mach-ns9xxx/include/mach/module.h /usr/src/linux-headers-2.6.28-11/arch/arm/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/mips/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/avr32/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/sparc/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/s390/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/cris/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/h8300/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/m68knommu/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/blackfin/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/powerpc/include/asm/module.h /usr/src/linux-headers-2.6.28-11/arch/parisc/include/asm/module.h /usr/src/linux-headers-2.6.28-11/include/asm-m68k/module.h /usr/src/linux-headers-2.6.28-11/include/asm-m32r/module.h /usr/src/linux-headers-2.6.28-11/include/asm-mn10300/module.h /usr/src/linux-headers-2.6.28-11/include/linux/module.h /usr/src/linux-headers-2.6.28-11/include/asm-frv/module.h /usr/src/linux-headers-2.6.28-11/include/asm-xtensa/module.h /usr/include/sepol/policydb/module.h /usr/include/sepol/module.h
- 08-21-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,143
Try this:
Code:gcc -Wall -DMODULE -D__KERNEL -DLINUX -I /usr/src/linux-headers-2.6.28-11/include -c sample2.c
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 08-21-2010 #3Just Joined!
- Join Date
- Mar 2005
- Posts
- 9
Thanks for the help I proceeded a bit and got following now
So what more do you suggest?Code:In file included from /usr/src/linux-headers-2.6.28-11/include/linux/list.h:6, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:9, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/prefetch.h:14:27: error: asm/processor.h: No such file or directory /usr/src/linux-headers-2.6.28-11/include/linux/prefetch.h:15:23: error: asm/cache.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/list.h:6, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:9, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/prefetch.h:53: error: expected declaration specifiers or ‘...’ before ‘size_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:9, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/list.h:7:24: error: asm/system.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/preempt.h:9, from /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:50, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/thread_info.h:26: error: expected specifier-qualifier-list before ‘u32’ /usr/src/linux-headers-2.6.28-11/include/linux/thread_info.h:34: error: expected specifier-qualifier-list before ‘clockid_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/thread_info.h:54, from /usr/src/linux-headers-2.6.28-11/include/linux/preempt.h:9, from /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:50, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h:17:24: error: asm/bitops.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/thread_info.h:54, from /usr/src/linux-headers-2.6.28-11/include/linux/preempt.h:9, from /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:50, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h: In function ‘get_bitmask_order’: /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h:29: warning: implicit declaration of function ‘fls’ /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h: In function ‘hweight_long’: /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h:45: warning: implicit declaration of function ‘hweight32’ /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h:45: warning: implicit declaration of function ‘hweight64’ /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h: In function ‘fls_long’: /usr/src/linux-headers-2.6.28-11/include/linux/bitops.h:112: warning: implicit declaration of function ‘fls64’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/preempt.h:9, from /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:50, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/thread_info.h:55:29: error: asm/thread_info.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/preempt.h:10, from /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:50, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/linkage.h:5:25: error: asm/linkage.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:348:24: error: asm/atomic.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:7, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/spinlock.h:357: error: expected ‘)’ before ‘*’ token In file included from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:15, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/seqlock.h: In function ‘write_seqlock’: /usr/src/linux-headers-2.6.28-11/include/linux/seqlock.h:64: warning: implicit declaration of function ‘smp_wmb’ /usr/src/linux-headers-2.6.28-11/include/linux/seqlock.h: In function ‘read_seqbegin’: /usr/src/linux-headers-2.6.28-11/include/linux/seqlock.h:92: warning: implicit declaration of function ‘smp_rmb’ /usr/src/linux-headers-2.6.28-11/include/linux/seqlock.h:93: warning: implicit declaration of function ‘unlikely’ /usr/src/linux-headers-2.6.28-11/include/linux/seqlock.h:94: warning: implicit declaration of function ‘cpu_relax’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:89, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:16, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_zero’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:142: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:142: error: (Each undeclared identifier is reported only once /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:142: error: for each function it appears in.) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:145: warning: implicit declaration of function ‘BITS_TO_LONGS’ /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_fill’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:157: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_copy’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:163: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_and’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:174: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_or’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:183: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_xor’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:192: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_andnot’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:201: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_complement’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:210: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_equal’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:219: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:223: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_intersects’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:228: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:232: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_subset’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:237: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:241: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_empty’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:245: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:249: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_full’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:253: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:257: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_weight’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:261: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_shift_right’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:269: error: ‘BITS_PER_LONG’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h: In function ‘bitmap_shift_left’: /usr/src/linux-headers-2.6.28-11/include/linux/bitmap.h:278: error: ‘BITS_PER_LONG’ undeclared (first use in this function) In file included from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:16, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:92: error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__node_set’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:98: warning: implicit declaration of function ‘set_bit’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:98: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__node_clear’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:104: warning: implicit declaration of function ‘clear_bit’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:104: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_setall’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:110: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_clear’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:116: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__node_test_and_set’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:126: warning: implicit declaration of function ‘test_and_set_bit’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:126: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_and’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:134: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:134: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:134: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_or’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:142: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:142: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:142: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_xor’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:150: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:150: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:150: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_andnot’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:158: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:158: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:158: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_complement’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:166: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:166: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_equal’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:174: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:174: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_intersects’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:182: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:182: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_subset’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:190: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:190: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_empty’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:196: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_full’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:202: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_weight’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:208: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_shift_right’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:216: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:216: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_shift_left’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:224: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:224: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__first_node’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:233: warning: implicit declaration of function ‘min_t’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:233: error: expected expression before ‘int’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__next_node’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:239: error: expected expression before ‘int’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__first_unset_node’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:257: error: expected expression before ‘int’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodemask_scnprintf’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:292: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodemask_parse_user’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:300: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodelist_scnprintf’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:308: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodelist_parse’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:314: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__node_remap’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:322: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:322: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_remap’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:330: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:330: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:330: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:330: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_onto’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:338: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:338: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:338: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h: In function ‘__nodes_fold’: /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:346: error: ‘nodemask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/nodemask.h:346: error: ‘nodemask_t’ has no member named ‘bits’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:20:22: error: asm/page.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:277: error: ‘MAX_NR_ZONES’ undeclared here (not in a function) /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:333: error: expected specifier-qualifier-list before ‘atomic_long_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h: In function ‘zone_is_all_unreclaimable’: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:437: warning: implicit declaration of function ‘test_bit’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:626: error: expected specifier-qualifier-list before ‘wait_queue_head_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/notifier.h:13, from /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:6, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:640, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h:50: error: expected specifier-qualifier-list before ‘atomic_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h: In function ‘mutex_is_locked’: /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h:117: warning: implicit declaration of function ‘atomic_read’ /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h:117: error: ‘struct mutex’ has no member named ‘count’ /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h:136: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mutex_lock_interruptible’ /usr/src/linux-headers-2.6.28-11/include/linux/mutex.h:137: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘mutex_lock_killable’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/notifier.h:14, from /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:6, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:640, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/rwsem.h:22:65: error: asm/rwsem.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:6, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:640, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/notifier.h:62: error: field ‘rwsem’ has incomplete type In file included from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:640, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h: In function ‘mhp_notimplemented’: /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:183: warning: implicit declaration of function ‘printk’ /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:183: error: ‘KERN_WARNING’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:183: error: expected ‘)’ before string constant /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:184: warning: implicit declaration of function ‘dump_stack’ /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:214: error: expected declaration specifiers or ‘...’ before ‘u64’ /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:214: error: expected declaration specifiers or ‘...’ before ‘u64’ /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:215: error: expected declaration specifiers or ‘...’ before ‘u64’ /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:215: error: expected declaration specifiers or ‘...’ before ‘u64’ /usr/src/linux-headers-2.6.28-11/include/linux/memory_hotplug.h:216: error: expected ‘)’ before ‘start’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h: In function ‘populated_zone’: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:673: error: ‘struct zone’ has no member named ‘present_pages’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:674: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h: In function ‘is_normal’: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:722: error: ‘struct zone’ has no member named ‘zone_pgdat’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:723: warning: control reaches end of non-void function /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:747: error: expected declaration specifiers or ‘...’ before ‘loff_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:750: error: expected declaration specifiers or ‘...’ before ‘loff_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:752: error: expected declaration specifiers or ‘...’ before ‘loff_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:754: error: expected declaration specifiers or ‘...’ before ‘loff_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:756: error: expected declaration specifiers or ‘...’ before ‘loff_t’ /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:759: error: expected declaration specifiers or ‘...’ before ‘loff_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/topology.h:30, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:763, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:144: error: expected specifier-qualifier-list before ‘DECLARE_BITMAP’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpu_set’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:150: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpu_clear’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:156: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_setall’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:162: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_clear’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:168: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpu_test_and_set’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:177: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_and’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:184: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:184: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:184: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_or’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:191: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:191: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:191: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_xor’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:198: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:198: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:198: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_andnot’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:206: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:206: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:206: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_complement’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:213: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:213: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_equal’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:220: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:220: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_intersects’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:227: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:227: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_subset’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:234: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:234: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_empty’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:240: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_full’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:246: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_weight’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:252: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_shift_right’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:260: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:260: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_shift_left’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:268: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:268: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:279: error: ‘BITS_PER_LONG’ undeclared here (not in a function) /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:279: error: variably modified ‘cpu_bit_bitmap’ at file scope /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpumask_scnprintf’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:347: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpumask_parse_user’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:355: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpulist_scnprintf’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:363: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpulist_parse’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:369: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpu_remap’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:377: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:377: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_remap’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:385: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:385: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:385: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:385: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_onto’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:393: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:393: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:393: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘__cpus_fold’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:401: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:401: error: ‘cpumask_t’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_set_cpu’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:696: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_clear_cpu’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:706: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_test_and_set_cpu’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:728: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_setall’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:737: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_clear’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:746: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_and’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:759: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:759: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:760: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_or’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:772: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:772: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:773: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_xor’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:786: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:786: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:787: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_andnot’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:800: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:800: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:801: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_complement’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:812: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:812: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:821: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpumask_equal’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:833: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpumask_intersects’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_subset’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:848: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:848: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:856: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpumask_empty’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:865: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cpumask_full’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_weight’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:876: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_shift_right’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:888: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:888: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_shift_left’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:901: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:901: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘cpumask_copy’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:913: error: ‘struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:913: error: ‘const struct cpumask’ has no member named ‘bits’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1006: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alloc_cpumask_var’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1032: error: expected ‘)’ before numeric constant /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1039: error: expected declaration specifiers or ‘...’ before ‘bool’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘set_cpu_possible’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1041: error: ‘possible’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1047: error: expected declaration specifiers or ‘...’ before ‘bool’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘set_cpu_present’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1049: error: ‘present’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1055: error: expected declaration specifiers or ‘...’ before ‘bool’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘set_cpu_online’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1057: error: ‘online’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1063: error: expected declaration specifiers or ‘...’ before ‘bool’ /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h: In function ‘set_cpu_active’: /usr/src/linux-headers-2.6.28-11/include/linux/cpumask.h:1065: error: ‘active’ undeclared (first use in this function) In file included from /usr/src/linux-headers-2.6.28-11/include/linux/topology.h:33, from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:763, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/smp.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/smp.h:20: error: expected specifier-qualifier-list before ‘u16’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:763, from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/topology.h:34:26: error: asm/topology.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:4, from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/mmzone.h:1080: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘node_memmap_size_bytes’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:22, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:108: error: expected ‘)’ before ‘gfp_flags’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:120: error: expected ‘)’ before ‘flags’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:147: error: expected ‘)’ before ‘flags’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:164: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h: In function ‘node_zonelist’: /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:166: warning: implicit declaration of function ‘gfp_zonelist’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:166: error: ‘flags’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:177: error: expected ‘)’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:181: error: expected ‘)’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:188: error: expected ‘)’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:195: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h: In function ‘alloc_pages_node’: /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:203: warning: implicit declaration of function ‘cpu_to_node’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:205: warning: implicit declaration of function ‘__alloc_pages’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:205: error: ‘gfp_mask’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:205: error: too many arguments to function ‘node_zonelist’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:205: warning: return makes pointer from integer without a cast /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:228: error: expected ‘)’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:229: error: expected ‘)’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/gfp.h:231: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:13, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:46: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h: In function ‘call_usermodehelper’: /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:73: error: ‘gfp_t’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:73: error: expected ‘;’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:75: error: ‘gfp_mask’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:75: error: too many arguments to function ‘call_usermodehelper_setup’ /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h: In function ‘call_usermodehelper_keys’: /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:86: error: ‘gfp_t’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:86: error: expected ‘;’ before ‘gfp_mask’ /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:88: error: ‘gfp_mask’ undeclared (first use in this function) /usr/src/linux-headers-2.6.28-11/include/linux/kmod.h:88: error: too many arguments to function ‘call_usermodehelper_setup’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:14, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/elf.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/elf.h:402: error: expected declaration specifiers or ‘...’ before ‘loff_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:21, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:16, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/sysfs.h:31: error: expected specifier-qualifier-list before ‘mode_t’ /usr/src/linux-headers-2.6.28-11/include/linux/sysfs.h:36: error: expected specifier-qualifier-list before ‘mode_t’ /usr/src/linux-headers-2.6.28-11/include/linux/sysfs.h:69: error: expected specifier-qualifier-list before ‘ssize_t’ /usr/src/linux-headers-2.6.28-11/include/linux/sysfs.h:78: error: expected specifier-qualifier-list before ‘ssize_t’ /usr/src/linux-headers-2.6.28-11/include/linux/sysfs.h:167: error: expected declaration specifiers or ‘...’ before ‘mode_t’ /usr/src/linux-headers-2.6.28-11/include/linux/sysfs.h:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sysfs_init’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:24, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:16, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/kref.h:22: error: expected specifier-qualifier-list before ‘atomic_t’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:16, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uevent_seqnum’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:82: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kobject_add’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:85: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kobject_init_and_add’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kobject_create’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:93: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kobject_create_and_add’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:96: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kobject_rename’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kobject_move’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:102: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:126: error: expected specifier-qualifier-list before ‘ssize_t’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kset_register’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:161: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kset_create_and_add’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h: In function ‘to_kset’: /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:167: warning: implicit declaration of function ‘container_of’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:167: error: expected expression before ‘struct’ /usr/src/linux-headers-2.6.28-11/include/linux/kobject.h:167: warning: pointer/integer type mismatch in conditional expression In file included from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:18, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/marker.h: At top level: /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:33: error: expected declaration specifiers or ‘...’ before ‘va_list’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:125: error: expected declaration specifiers or ‘...’ before numeric constant /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:125: error: expected declaration specifiers or ‘...’ before numeric constant /usr/src/linux-headers-2.6.28-11/include/linux/marker.h: In function ‘__printf’: /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:125: error: expected declaration specifiers before ‘___mark_check_format’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:135: error: storage class specified for parameter ‘__mark_empty_function’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:138: error: storage class specified for parameter ‘marker_probe_cb’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:140: error: storage class specified for parameter ‘marker_probe_cb_noarg’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:147: error: storage class specified for parameter ‘marker_probe_register’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:153: error: storage class specified for parameter ‘marker_probe_unregister’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:158: error: storage class specified for parameter ‘marker_probe_unregister_private_data’ /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:161: error: storage class specified for parameter ‘marker_get_private_data’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:39, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:84: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘kmem_cache_init’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__krealloc’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘krealloc’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:156, from /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:39, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:19: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:26: error: storage class specified for parameter ‘malloc_sizes’ /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:28: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:29: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:31: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token In file included from /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:5, from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:39, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:210: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:228: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:233: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:238: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:238: error: redefinition of parameter ‘kmem_cache_alloc’ /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:28: error: previous definition of ‘kmem_cache_alloc’ was here /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:241: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:293: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:303: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:304: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:314: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:315: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token In file included from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:39, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:9:24: error: asm/percpu.h: No such file or directory In file included from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:39, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:91: error: expected declaration specifiers or ‘...’ before ‘gfp_t’ /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/percpu.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token In file included from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:43, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:27: error: expected specifier-qualifier-list before ‘wait_queue_head_t’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:25: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:79: error: storage class specified for parameter ‘wait_for_completion’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:80: error: storage class specified for parameter ‘wait_for_completion_interruptible’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:81: error: storage class specified for parameter ‘wait_for_completion_killable’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:83: error: storage class specified for parameter ‘wait_for_completion_timeout’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:85: error: storage class specified for parameter ‘wait_for_completion_interruptible_timeout’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:86: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘try_wait_for_completion’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘completion_done’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:89: error: storage class specified for parameter ‘complete’ /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:90: error: storage class specified for parameter ‘complete_all’ In file included from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:50: warning: empty declaration In file included from /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:58, from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:43: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:51: error: expected declaration specifiers before ‘DECLARE_PER_CPU’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:80: error: storage class specified for parameter ‘call_rcu_sched’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:82: error: storage class specified for parameter ‘__rcu_read_lock’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:83: error: storage class specified for parameter ‘__rcu_read_unlock’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:84: error: storage class specified for parameter ‘rcu_pending’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:85: error: storage class specified for parameter ‘rcu_needs_cpu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:90: error: storage class specified for parameter ‘__synchronize_sched’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:92: error: storage class specified for parameter ‘__rcu_init’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:93: error: storage class specified for parameter ‘rcu_init_sched’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:94: error: storage class specified for parameter ‘rcu_check_callbacks’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:95: error: storage class specified for parameter ‘rcu_restart_cpu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:96: error: storage class specified for parameter ‘rcu_batches_completed’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:103: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:117: warning: empty declaration In file included from /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:18, from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:194: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:199: error: storage class specified for parameter ‘wakeme_after_rcu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:243: error: storage class specified for parameter ‘call_rcu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:264: error: storage class specified for parameter ‘call_rcu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:263: error: redefinition of parameter ‘call_rcu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:242: error: previous definition of ‘call_rcu’ was here /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:267: error: storage class specified for parameter ‘synchronize_rcu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:268: error: storage class specified for parameter ‘rcu_barrier’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:269: error: storage class specified for parameter ‘rcu_barrier_bh’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:270: error: storage class specified for parameter ‘rcu_barrier_sched’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:273: error: storage class specified for parameter ‘rcu_init’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:274: error: storage class specified for parameter ‘rcu_needs_cpu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:274: error: redefinition of parameter ‘rcu_needs_cpu’ /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:85: error: previous definition of ‘rcu_needs_cpu’ was here In file included from /usr/src/linux-headers-2.6.28-11/include/linux/module.h:19, from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:20: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:21: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:23: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:107: error: storage class specified for parameter ‘tracepoint_probe_register’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:113: error: storage class specified for parameter ‘tracepoint_probe_unregister’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:115: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:120: error: storage class specified for parameter ‘tracepoint_iter_start’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:121: error: storage class specified for parameter ‘tracepoint_iter_next’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:122: error: storage class specified for parameter ‘tracepoint_iter_stop’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:123: error: storage class specified for parameter ‘tracepoint_iter_reset’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:125: error: storage class specified for parameter ‘tracepoint_get_iter_range’ /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:133: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token In file included from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/module.h:20:23: error: asm/local.h: No such file or directory /usr/src/linux-headers-2.6.28-11/include/linux/module.h:22:24: error: asm/module.h: No such file or directory In file included from sample2.c:3: /usr/src/linux-headers-2.6.28-11/include/linux/module.h:34: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:40: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:46: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:50: error: expected specifier-qualifier-list before ‘ssize_t’ /usr/src/linux-headers-2.6.28-11/include/linux/module.h:48: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:58: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:67: error: storage class specified for parameter ‘init_module’ /usr/src/linux-headers-2.6.28-11/include/linux/module.h:68: error: storage class specified for parameter ‘cleanup_module’ /usr/src/linux-headers-2.6.28-11/include/linux/module.h:71: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:86: error: storage class specified for parameter ‘__this_module’ /usr/src/linux-headers-2.6.28-11/include/linux/module.h:167: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:473: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:485: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:500: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:504: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:509: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:520: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:525: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:530: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:537: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:542: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:547: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:553: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:560: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:564: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:572: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:578: warning: empty declaration /usr/src/linux-headers-2.6.28-11/include/linux/module.h:596: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:603: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:608: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token /usr/src/linux-headers-2.6.28-11/include/linux/module.h:613: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token sample2.c:4: error: storage class specified for parameter ‘sys_table’ sample2.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token sample2.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token sample2.c:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token sample2.c:5: error: declaration for parameter ‘main_sys_exit’ but no such parameter sample2.c:4: error: declaration for parameter ‘sys_table’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:165: error: declaration for parameter ‘search_exception_tables’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:86: error: parameter ‘__this_module’ has incomplete type /usr/src/linux-headers-2.6.28-11/include/linux/module.h:86: error: declaration for parameter ‘__this_module’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:79: error: declaration for parameter ‘sort_main_extable’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:77: error: declaration for parameter ‘sort_extable’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:74: error: declaration for parameter ‘search_extable’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:68: error: declaration for parameter ‘cleanup_module’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/module.h:67: error: declaration for parameter ‘init_module’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:124: error: declaration for parameter ‘tracepoint_get_iter_range’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:123: error: declaration for parameter ‘tracepoint_iter_reset’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:122: error: declaration for parameter ‘tracepoint_iter_stop’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:121: error: declaration for parameter ‘tracepoint_iter_next’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:120: error: declaration for parameter ‘tracepoint_iter_start’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:113: error: declaration for parameter ‘tracepoint_probe_unregister’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/tracepoint.h:107: error: declaration for parameter ‘tracepoint_probe_register’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:274: error: declaration for parameter ‘rcu_needs_cpu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:273: error: declaration for parameter ‘rcu_init’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:270: error: declaration for parameter ‘rcu_barrier_sched’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:269: error: declaration for parameter ‘rcu_barrier_bh’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:268: error: declaration for parameter ‘rcu_barrier’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:267: error: declaration for parameter ‘synchronize_rcu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:263: error: declaration for parameter ‘call_rcu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:242: error: declaration for parameter ‘call_rcu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupdate.h:199: error: declaration for parameter ‘wakeme_after_rcu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:96: error: declaration for parameter ‘rcu_batches_completed’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:95: error: declaration for parameter ‘rcu_restart_cpu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:94: error: declaration for parameter ‘rcu_check_callbacks’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:93: error: declaration for parameter ‘rcu_init_sched’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:92: error: declaration for parameter ‘__rcu_init’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:90: error: declaration for parameter ‘__synchronize_sched’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:85: error: declaration for parameter ‘rcu_needs_cpu’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:84: error: declaration for parameter ‘rcu_pending’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:83: error: declaration for parameter ‘__rcu_read_unlock’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:82: error: declaration for parameter ‘__rcu_read_lock’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/rcupreempt.h:79: error: declaration for parameter ‘call_rcu_sched’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:90: error: declaration for parameter ‘complete_all’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:89: error: declaration for parameter ‘complete’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:84: error: declaration for parameter ‘wait_for_completion_interruptible_timeout’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:82: error: declaration for parameter ‘wait_for_completion_timeout’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:81: error: declaration for parameter ‘wait_for_completion_killable’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:80: error: declaration for parameter ‘wait_for_completion_interruptible’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/completion.h:79: error: declaration for parameter ‘wait_for_completion’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:238: error: declaration for parameter ‘kmem_cache_alloc’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:29: error: declaration for parameter ‘__kmalloc’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:28: error: declaration for parameter ‘kmem_cache_alloc’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab_def.h:26: error: declaration for parameter ‘malloc_sizes’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:130: error: declaration for parameter ‘ksize’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:129: error: declaration for parameter ‘kfree’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:95: error: declaration for parameter ‘kmem_ptr_validate’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:94: error: declaration for parameter ‘kmem_cache_name’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:93: error: declaration for parameter ‘kmem_cache_size’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:92: error: declaration for parameter ‘kmem_cache_free’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:91: error: declaration for parameter ‘kmem_cache_shrink’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:90: error: declaration for parameter ‘kmem_cache_destroy’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:87: error: declaration for parameter ‘kmem_cache_create’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/slab.h:85: error: declaration for parameter ‘slab_is_available’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:160: error: declaration for parameter ‘marker_get_private_data’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:157: error: declaration for parameter ‘marker_probe_unregister_private_data’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:152: error: declaration for parameter ‘marker_probe_unregister’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:146: error: declaration for parameter ‘marker_probe_register’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:139: error: declaration for parameter ‘marker_probe_cb_noarg’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:137: error: declaration for parameter ‘marker_probe_cb’ but no such parameter /usr/src/linux-headers-2.6.28-11/include/linux/marker.h:135: error: declaration for parameter ‘__mark_empty_function’ but no such parameter sample2.c:20: error: expected ‘{’ at end of input


Reply With Quote
