I had exactly the same problem on my T460s running Ubuntu 16.04.1 LTS when installing the 4.7 mainline kernel. After digging into the /usr/src/tp-smapi-0.41/thinkpad_ec.c file it seems that the module_param_named macro is used wrong: the given variable is an integer and not a boolean. After changing "bool" to "int", the kernel install (including DKMS for tp-smapi) seemed to work. Currently I'm running the 4.7.0-040700-generic kernel without problems so far.
** Attachment added: "patch.txt" https://bugs.launchpad.net/ubuntu/+source/tp-smapi/+bug/1606447/+attachment/4723671/+files/patch.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1606447 Title: tp-smapi-dkms 0.41-1: tp-smapi kernel module failed to build To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tp-smapi/+bug/1606447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs