> This looks like it is related to your kernel configuration, it works fne > on the Debian stock kernel.
I'm not a sure whether the kernel config is to blame here. Trying to compile for 3.15-rc8 I get exactly the same error. Might be a coincidence, but nevertheless I was able to trace back the problem to conftest.h not being able to correctly test for kernel version. E.g. "testing for >= 3,10,0" always chooses the else branch (verified by adding an #error statement there). Further tests (manually resolving every define in conftest.h) yielded a compiling and loading kernel module. Is there a CONF_* that prevents the header file from correctly testing for kernel versions?