/*
 * hello−1.c − The simplest kernel module.
 */
#include "/usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h"       /* Needed by all modules */
#include "/usr/src/linux-headers-2.6.31-16-generic/include/linux/kernel.h"       /* Needed for KERN_INFO */
//#include "/usr/include/linux/module.h"
//#include "/usr/include/linux/kernel.h"
int init_module(void)
{
        printk(KERN_INFO "Hello world 1.\n");
        /*
         * A non 0 return means init_module failed; module can't be loaded.
         */
        return 0;
}
void cleanup_module(void)
{
        printk(KERN_INFO "Goodbye world 1.\n");
}

.

gcc -D __KERNEL__ -I /usr/src/linux-headers-2.6.31-16-generic/include/ -c hello-1.c

on running above command
following error comes:-

/*********************************************/
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/linux/bitops.h:17,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/kernel.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:45,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:5,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/bitops.h: In function ‘constant_test_bit’:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/bitops.h:311: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/asm/bitops.h:311: error: (Each undeclared identifier is reported only once
/usr/src/linux-headers-2.6.31-16-generic/include/asm/bitops.h:311: error: for each function it appears in.)
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm/bitops.h:443,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/bitops.h:17,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/kernel.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:45,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:5,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/bitops/sched.h:27:2: error: #error BITS_PER_LONG not defined
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm/bitops.h:451,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/bitops.h:17,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/kernel.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:45,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:5,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/bitops/fls64.h:33:2: error: #error BITS_PER_LONG not 32 or 64
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/linux/kernel.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:45,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:5,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitops.h:129:2: error: #error BITS_PER_LONG not 32 or 64
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:5,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h: At top level:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:157: error: expected declaration specifiers or ‘...’ before ‘this_cpu_off’
/usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:157: warning: data definition has no type or storage class
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:15,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:10: error: expected declaration specifiers or ‘...’ before ‘current_task’
/usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:10: warning: data definition has no type or storage class
/usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:10: error: conflicting types for ‘DECLARE_PER_CPU’
/usr/src/linux-headers-2.6.31-16-generic/include/asm/percpu.h:157: note: previous declaration of ‘DECLARE_PER_CPU’ was here
/usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h: In function ‘get_current’:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:14: error: ‘per_cpu__current_task’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/asm/current.h:14: warning: return makes pointer from integer without a cast
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:11,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:21,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1:31: error: #include nested too deeply
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/linux/cpumask.h:142,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/cpumask.h:4,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:12,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:21,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_zero’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:145: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_fill’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:156: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_copy’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:166: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_and’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:177: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_or’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:185: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_xor’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:194: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_andnot’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:203: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_complement’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:211: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_equal’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:220: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_intersects’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:229: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_subset’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:238: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_empty’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:246: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_full’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:254: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_weight’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:262: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_shift_right’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:270: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h: In function ‘bitmap_shift_left’:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/bitmap.h:279: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm/cpumask.h:4,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:12,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:21,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/cpumask.h: At top level:
/usr/src/linux-headers-2.6.31-16-generic/include/linux/cpumask.h:300: error: ‘BITS_PER_LONG’ undeclared here (not in a function)
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:21,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h: In function ‘native_read_msr_safe’:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:70: error: ‘EFAULT’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h: In function ‘native_read_msr_amd_safe’:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:86: error: ‘EFAULT’ undeclared (first use in this function)
/usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h: In function ‘native_write_msr_safe’:
/usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:109: error: ‘EFAULT’ undeclared (first use in this function)
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/errno.h:4,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/msr.h:136,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm/processor.h:21,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/prefetch.h:14,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/list.h:6,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/linux/module.h:9,
                 from hello-1.c:4:
/usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1:31: error: #include nested too deeply
In file included from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2.6.31-16-generic/include/asm-generic/errno.h:1,
                 from /usr/src/linux-headers-2

i am using the same version of "The Linux Kernel Module Programming Guide" as mentioned in the link you suggested.
can you clear me what is causing this error?
the "header files" or the "program code" or the "gcc command"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.