title: Trouble with hello world linux kernel module makefile
body: <p>I have this code for the hello world module : </p>
  
  <pre><code>#include &lt;linux/module.h&gt;
  #include &lt;linux/kernel.h&gt;
  
  int init_module(void)
  {
      printk(KERN_INFO "Hello module\n");
      return 0;
  }
  
  void cleanup_module(void)
  {
      printk(KERN_INFO "Bye module\n");
  }
  </code></pre>
  
  <p>Makefile : </p>
  
  <pre><code>obj-m := hello.o
  K := /lib/modules/$(shell uname -r)/build
  PWD := $(shell pwd)
  
  all:
      make -C $(K) M=$(PWD) modules
  
  clean:
      make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
  </code></pre>
  
  <p>I get this compile message from the makefile : </p>
  
  <pre><code>make -C /lib/modules/3.16.0-4-amd64/build M=/home/neo/ker modules
  make[1]: Entering directory '/usr/src/linux-headers-3.16.0-4-amd64'
  Makefile:10: *** mixed implicit and normal rules: deprecated syntax
  make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
    CC [M]  /home/neo/ker/hello.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC      /home/neo/ker/hello.mod.o
    LD [M]  /home/neo/ker/hello.ko
  make[1]: Leaving directory '/usr/src/linux-headers-3.16.0-4-amd64'
  </code></pre>
  
  <p>this is the warning  that i don't understand: </p>
  
  <pre><code>Makefile:10: *** mixed implicit and normal rules: deprecated syntax
  </code></pre>
  
  <p>Thanks in advance </p>