title: Creating a module in linux
body: <p>Im trying to create a module for the linux redhat 2.4.18
  as a part of a homework assignment of mine.</p>
  
  <p>and Ive got this part of code at the start of my code:</p>
  
  <pre><code>char* filepath;
  MODULE_PARAM(filepath,"s");
  </code></pre>
  
  <p>when I compile my code with the makefile ive created im getting:</p>
  
  <blockquote>
    <p>intercept.c:22: parse error before string constant intercept.c:22:
    warning: type defaults to 'int' in declaration of `MODULE_PARAM'
    intercept.c:22: warning: data definition has no type or storage class</p>
  </blockquote>
  
  <p>where line 22 is this line:</p>
  
  <pre><code>MODULE_PARAM(filepath,"s");
  </code></pre>
  
  <p>P.S. Ive included: linux\module.h</p>