title: linux/kernel.h : No such file or directory
body: <p>I am going to write a Hello World module in Ubuntu 10.10 (with the kernel 2.6.35-28-generic). Headers are located:</p>
  
  <pre><code>/usr/src/linux-headers-2.6.35-28-generic
  </code></pre>
  
  <p>hello.c:</p>
  
  <pre><code>#include &lt;linux/kernel.h&gt; 
  #include &lt;linux/module.h&gt;
  
  int init_module(void)
  {
      printk("Hello, world\n");
      return 0;
  }
  
  void cleanup_module(void)
  {
      printk("Goodbye\n");
  }
  </code></pre>
  
  <p>and Makefile:</p>
  
  <pre><code>CC = gcc
  CFLAGS = -Wall -DMODULE -D__KERNEL__
  hello.o: hello.c
      $(CC) $(CFLAGS) -c hello.c
      echo insmod hello.o to install
      echo rmmod to delete
  </code></pre>
  
  <p>There is an error while <strong>make</strong>:</p>
  
  <blockquote>
    <p>hello.c:1: fatal error:  linux/kernel.h : No such file or directory
    compilation terminated.</p>
  </blockquote>
  
  <p>How do I solve this?</p>