title: Can we only recompile a kernel module in kernel source tree?
body: <p>Let's say we install a kernel 2.6.32.el6, then we download the 2.6.32.el6.src.rpm, can we just install the source and modify some module, and use make -C 2.6.32.el6.src.source.directry -M$PWD in the module directory to compile the module, then we copy into /lib/modules/2.6.32.el6/kernel/moduledirectory and the new module would work?</p>
  
  <p>I try to modify kvm modules and compile it, but when I recompile the module and copy it into the directory, machine said when booting:</p>
  
  <p>kvm: no symbol version for module_layout
  kvm_intel: no symbol version for module_layout</p>
  
  <p>Anyone knows what is wrong?</p>