DKMS make.log for tp-smapi-0.41 for kernel 4.7.0-040700-generic (x86_64) Tue Jul 26 00:11:35 MDT 2016 make: Entering directory '/usr/src/linux-headers-4.7.0-040700-generic' LD /var/lib/dkms/tp-smapi/0.41/build/built-in.o CC [M] /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o In file included from include/linux/module.h:18:0, from /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:33: /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c: In function ‘__check_force_io’: include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types] static inline type __always_unused *__check_##name(void) { return(p); } ^ include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’ #define param_check_bool(name, p) __param_check(name, p, bool) ^ include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’ param_check_##type(name, &(value)); \ ^ /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:100:1: note: in expansion of macro ‘module_param_named’ module_param_named(force_io, force_io, bool, 0600); ^ cc1: some warnings being treated as errors scripts/Makefile.build:295: recipe for target '/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o' failed make[1]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Error 1 Makefile:1463: recipe for target '_module_/var/lib/dkms/tp-smapi/0.41/build' failed make: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Error 2 make: Leaving directory '/usr/src/linux-headers-4.7.0-040700-generic'