title: linux/init.h: No such file or directory
body: <p>I'm trying to build a kernel module for my class, and I'm getting a massive wall of errors, but at the top of said wall is the infamous 'No such file or directory' error. It seems to be the root of the problem. This not only seems to affect init.h, but also module.h and kernel.h. The first three lines of the program go as follows:</p>
  
  <pre><code>#include &lt;linux/init.h&gt;
  #include &lt;linux/module.h&gt;
  #include &lt;linux/kernel.h&gt;
  </code></pre>
  
  <p>I've looked around and tried other paths for where these files ought to be when browsing similar issues, but nothing has worked thus far. The strangest part is that I used this module already; I was provided starter code that had this at the top (I didn't change anything) and it didn't give me that error. Although, obviously the code after is different, but this seems to be the biggest problem at the moment.</p>
  
  <p>The full code is as follows:</p>
  
  <pre><code>#include &lt;/usr/include/linux/init.h&gt;
  #include &lt;/usr/include/linux/module.h&gt;
  #include &lt;/usr/include/linux/kernel.h&gt;
  
  /* This function is called when the module is loaded. */
  int simple_init(void)
  {
      printk(KERN_INFO "Loading Module\n");
      static LIST_HEAD(birthday_list)
      struct birthday{
          int day;
          int month;
          int year;
          struct list_head list;
      };
      struct birthday *ptr, *next;
      struct birthday *bob;
      struct birthday *judy;
      struct birthday *josh;
      struct birthday *lana;
      struct birthday *jan;
  
      bob = kmalloc(sizeof(*bob), GFP_KERNEL);
      bob -&gt; day = 17;
      bob -&gt; month = 1;
      bob -&gt; year = 1990;
      INIT_LIST_HEAD(&amp;bob -&gt; list);
  
      ...
  
      list_add_tail(bob -&gt; list, &amp;birthday_list);
      list_add_tail(judy -&gt; list, &amp;birthday_list);
      list_add_tail(josh -&gt; list, &amp;birthday_list);
      list_add_tail(lana -&gt; list, &amp;birthday_list);
      list_add_tail(jan -&gt; list, &amp;birthday_list);
  
      struct birthday *ptr;
  
      list_for_each_entry(ptr, &amp;birthday_list, list){
  
          kprintf('%d/%d/%d \n', ptr -&gt; month, ptr -&gt; day,  ptr -&gt; year);
      }
  
      list_for_each_entry_safe(ptr, &amp;birthday_list, list){
  
          list_del(&amp;ptr-&gt;list);
          kfree(ptr);
      }
  
         return 0;
  }
  
  /* This function is called when the module is removed. */
  void simple_exit(void) {
      printk(KERN_INFO "Removing Module\n");
  }
  
  /* Macros for registering module entry and exit points. */
  module_init( simple_init );
  module_exit( simple_exit );
  
  MODULE_LICENSE("GPL");
  MODULE_DESCRIPTION("Simple Module");
  MODULE_AUTHOR("SGG");
  </code></pre>