• Bug#1106555: tp-smapi-dkms: module fails to build for Linux 6.15: impli

    From Andreas Beckmann@21:1/5 to All on Mon May 26 00:20:02 2025
    Package: tp-smapi-dkms
    Version: 0.44-1.2
    Severity: important
    Tags: upstream sid forky

    Hi,

    tp-smapi-dkms fails to build the module(s) for Linux 6.15 in
    experimental:

    DKMS (dkms-3.2.0) make.log for tp_smapi/0.44 for kernel 6.15-rc7-amd64 (x86_64) Sat May 24 21:53:56 UTC 2025

    Building module(s)
    # command: make -j14 KERNELRELEASE=6.15-rc7-amd64 -C /lib/modules/6.15-rc7-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1
    make: Entering directory '/usr/src/linux-headers-6.15-rc7-amd64'
    make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.44/build'
    CC [M] thinkpad_ec.o
    CC [M] tp_smapi.o
    CC [M] hdaps.o
    hdaps.c: In function 'hdaps_suspend':
    hdaps.c:430:9: error: implicit declaration of function 'del_timer_sync' [-Wimplicit-function-declaration]
    430 | del_timer_sync(&hdaps_timer);
    | ^~~~~~~~~~~~~~
    make[3]: *** [/usr/src/linux-headers-6.15-rc7-common/scripts/Makefile.build:208: hdaps.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[2]: *** [/usr/src/linux-headers-6.15-rc7-common/Makefile:2027: .] Error 2 make[1]: *** [/usr/src/linux-headers-6.15-rc7-common/Makefile:260: __sub-make] Error 2
    make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.44/build'
    make: *** [/usr/src/linux-headers-6.15-rc7-common/Makefile:260: __sub-make] Error 2
    make: Leaving directory '/usr/src/linux-headers-6.15-rc7-amd64'

    # exit code: 2
    # elapsed time: 00:00:03 ----------------------------------------------------------------

    del_timer_sync() has been renamed to timer_delete_sync() in v6.2-rc1
    "timers: Rename del_timer_sync() to timer_delete_sync()" https://github.com/torvalds/linux/commit/9b13df3fb64ee95e2397585404e442afee2c7d4f

    the backwards compatibility support wrappers have been removed in
    v6.15-rc1 "treewide: Switch/rename to timer_delete[_sync]()" https://github.com/torvalds/linux/commit/8fa7292fee5c5240402371ea89ab285ec856c916


    Andreas

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Evgeni Golov@21:1/5 to Andreas Beckmann on Mon May 26 09:30:01 2025
    Control: forwarded https://github.com/linux-thinkpad/tp_smapi/pull/71
    Control: tags + patch

    Hi Andreas,

    On Mon, May 26, 2025 at 12:11:10AM +0200, Andreas Beckmann wrote:
    Building module(s)
    # command: make -j14 KERNELRELEASE=6.15-rc7-amd64 -C /lib/modules/6.15-rc7-amd64/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1
    make: Entering directory '/usr/src/linux-headers-6.15-rc7-amd64'
    make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.44/build'
    CC [M] thinkpad_ec.o
    CC [M] tp_smapi.o
    CC [M] hdaps.o
    hdaps.c: In function 'hdaps_suspend':
    hdaps.c:430:9: error: implicit declaration of function 'del_timer_sync' [-Wimplicit-function-declaration]
    430 | del_timer_sync(&hdaps_timer);
    | ^~~~~~~~~~~~~~
    make[3]: *** [/usr/src/linux-headers-6.15-rc7-common/scripts/Makefile.build:208: hdaps.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[2]: *** [/usr/src/linux-headers-6.15-rc7-common/Makefile:2027: .] Error 2
    make[1]: *** [/usr/src/linux-headers-6.15-rc7-common/Makefile:260: __sub-make] Error 2
    make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.44/build'
    make: *** [/usr/src/linux-headers-6.15-rc7-common/Makefile:260: __sub-make] Error 2
    make: Leaving directory '/usr/src/linux-headers-6.15-rc7-amd64'

    # exit code: 2
    # elapsed time: 00:00:03 ----------------------------------------------------------------

    del_timer_sync() has been renamed to timer_delete_sync() in v6.2-rc1
    "timers: Rename del_timer_sync() to timer_delete_sync()" https://github.com/torvalds/linux/commit/9b13df3fb64ee95e2397585404e442afee2c7d4f

    the backwards compatibility support wrappers have been removed in
    v6.15-rc1 "treewide: Switch/rename to timer_delete[_sync]()" https://github.com/torvalds/linux/commit/8fa7292fee5c5240402371ea89ab285ec856c916

    Thanks for the report and the detailed analysis when things were
    changed.

    I've opened a PR upstream with the needed changes and will see that it
    lands in Debian soon.

    Evgeni

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)