I am having problems getting any kernel modules to build on my machine. Whenever I build a module, modpost always says there are zero modules:
MODPOST 0 modu
I was able to solve this problem by putting the
obj-m += .o
In a separate file named Kbuild. See Linux/documentation/kbuild/modules.txt for a hint as to why this might work