Hi,
tp-smapi-dkms fails to build a module for Linux 7.2 in experimental:
DKMS (dkms-3.2.2) make.log for tp_smapi/0.45 for kernel 7.2-amd64 (x86_64)
Wed Sep 2 19:45:18 UTC 2026
Building module(s)
# command: make -j14 KERNELRELEASE=7.2-amd64 -C /lib/modules/7.2-amd64/build M=/var/lib/dkms/tp_smapi/0.45/build HDAPS=1
make: Entering directory '/usr/src/linux-headers-7.2-amd64'
make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.45/build'
CC [M] thinkpad_ec.o
CC [M] tp_smapi.o
CC [M] hdaps.o
tp_smapi.c: In function 'show_tp_ec_bat_str':
tp_smapi.c:672:9: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
672 | strncpy(buf, (char *)row+offset, maxlen);
| ^~~~~~~
tp_smapi.c:47:1: note: include '<string.h>' or provide a declaration of 'strncpy'
46 | #include <linux/platform_device.h>
+++ |+#include <string.h>
47 | #include <asm/uaccess.h>
tp_smapi.c:672:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
672 | strncpy(buf, (char *)row+offset, maxlen);
| ^~~~~~~
tp_smapi.c:672:9: note: include '<string.h>' or provide a declaration of 'strncpy'
make[3]: *** [/usr/src/linux-headers-7.2-common/scripts/Makefile.build:294: tp_smapi.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [/usr/src/linux-headers-7.2-common/Makefile:2211: .] Error 2
make[1]: *** [/usr/src/linux-headers-7.2-common/Makefile:260: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.45/build'
make: *** [/usr/src/linux-headers-7.2-common/Makefile:260: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-7.2-amd64'
# exit code: 2
# elapsed time: 00:00:01
----------------------------------------------------------------
Andreas