openrazer-driver-dkms FTBS in Noble with the linux-6.17 kernel

Bug #2136847 reported by John Cabaj
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openrazer (Ubuntu)
Status tracked in Resolute
Noble
Fix Committed
Undecided
Unassigned
Questing
Invalid
Undecided
Unassigned
Resolute
Invalid
Undecided
Unassigned

Bug Description

[ Impact ]

DKMS make.log for openrazer-driver-3.7.0 for kernel 6.17.0-7-generic (x86_64)
Thu Dec 18 22:47:07 UTC 2025
-e
:: Compiling OpenRazer kernel modules
========================================
make -C /lib/modules/6.17.0-7-generic/build M=/var/lib/dkms/openrazer-driver/3.7.0/build/driver modules
make[1]: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
make[2]: Entering directory '/var/lib/dkms/openrazer-driver/3.7.0/build/driver'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  CC [M] razerkbd_driver.o
  CC [M] razercommon.o
  CC [M] razerchromacommon.o
razerchromacommon.c:208:21: warning: no previous prototype for ‘razer_chroma_standard_matrix_effect_base’ [-Wmissing-prototypes]
  208 | struct razer_report razer_chroma_standard_matrix_effect_base(unsigned char arg_size, unsigned char effect_id)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
razerchromacommon.c:481:21: warning: no previous prototype for ‘razer_chroma_extended_matrix_effect_base’ [-Wmissing-prototypes]
  481 | struct razer_report razer_chroma_extended_matrix_effect_base(unsigned char arg_size, unsigned char variable_storage, unsigned char led_id, unsigned char effect_id)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
razerchromacommon.c:784:21: warning: no previous prototype for ‘razer_chroma_mouse_extended_matrix_effect_base’ [-Wmissing-prototypes]
  784 | struct razer_report razer_chroma_mouse_extended_matrix_effect_base(unsigned char arg_size, unsigned char variable_storage, unsigned char led_id, unsigned char effect_id)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
razerchromacommon.c:1554:21: warning: no previous prototype for ‘razer_chroma_misc_get_hyperpolling_wireless_dongle_indicator_led_mode’ [-Wmissing-prototypes]
 1554 | struct razer_report razer_chroma_misc_get_hyperpolling_wireless_dongle_indicator_led_mode(void)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  LD [M] razerkbd.o
  CC [M] razermouse_driver.o
razermouse_driver.c:4269:5: warning: no previous prototype for ‘mouse_button_to_usage’ [-Wmissing-prototypes]
 4269 | u32 mouse_button_to_usage(__u16 code)
      | ^~~~~~~~~~~~~~~~~~~~~
razermouse_driver.c:4278:6: warning: no previous prototype for ‘input_button_msc_scan’ [-Wmissing-prototypes]
 4278 | void input_button_msc_scan(struct input_dev *input, __u16 button)
      | ^~~~~~~~~~~~~~~~~~~~~
razermouse_driver.c:4287:6: warning: no previous prototype for ‘input_rep4_code’ [-Wmissing-prototypes]
 4287 | void input_rep4_code(struct input_dev *input, u8 code, __s32 value)
      | ^~~~~~~~~~~~~~~
razermouse_driver.c:4354:23: warning: no previous prototype for ‘find_intf_with_proto’ [-Wmissing-prototypes]
 4354 | struct usb_interface *find_intf_with_proto(struct usb_device *usbdev, u8 proto)
      | ^~~~~~~~~~~~~~~~~~~~
razermouse_driver.c: In function ‘razer_mouse_init’:
razermouse_driver.c:4620:5: error: implicit declaration of function ‘hrtimer_init’; did you mean ‘hrtimers_init’? [-Werror=implicit-function-declaration]
 4620 | hrtimer_init(&dev->repeat_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
      | ^~~~~~~~~~~~
      | hrtimers_init
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: razermouse_driver.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/openrazer-driver/3.7.0/build/driver'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
make: *** [Makefile:38: driver] Error 2

[ Test case ]

Install the latest linux-6.17 kernel on Noble:

$ sudo add-apt-repository ppa:canonical-kernel-team/ppa3
$ sudo apt install linux-generic-hwe-24.04-edge

Install openrazer-drivers-dkms:

$ sudo apt install openrazer-drivers-dkms

Module built and installed successfully

Load the modules:

$ sudo modprobe razerkbd
$ sudo modprobe razermouse
$ sudo modprobe razerkraken
$ sudo modprobe razeraccessory

Modules loaded successfully

The same procedure must be repeated on linux-6.8 and linux-6.14 to test for possible regressions.

[ Fix ]

Patches from upstream openrazer (https://github.com/openrazer/):

-debian/patches/0002-driver-Replace-hrtimer_init-with-hrtimer_setup.patch

Adding Ubuntu Developers as Maintainer

[ Regression potential ]

We may experience regressions in systems that are using the openrazer drivers, especially with kernels >= 6.8 kernel.

Revision history for this message
John Cabaj (john-cabaj) wrote :

3.7.0+dfsg-1ubuntu0.1 -> 3.7.0+dfsg-1ubuntu0.2 debdiff

Revision history for this message
John Cabaj (john-cabaj) wrote :
Changed in openrazer (Ubuntu Noble):
status: New → In Progress
Changed in openrazer (Ubuntu Questing):
status: New → Invalid
Changed in openrazer (Ubuntu Resolute):
status: New → Invalid
description: updated
Revision history for this message
Massimiliano Pellizzer (mpellizzer) wrote :

Uploaded thanks

Revision history for this message
Nick Rosbrook (enr0n) wrote : Please test proposed package

Hello John, or anyone else affected,

Accepted openrazer into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/openrazer/3.7.0+dfsg-1ubuntu0.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in openrazer (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Revision history for this message
John Cabaj (john-cabaj) wrote :

Modules built and installed successfully, modules loaded successfully:

6.17 kernel:

root@noble-hwe-vm:~# uname -r
6.17.0-7-generic
root@noble-hwe-vm:~# modprobe razerkbd; modprobe razermouse; modprobe razerkraken; modprobe razeraccessory
root@noble-hwe-vm:~#

6.8 kernel:

root@noble-lts-vm:~# uname -r
6.8.0-90-generic
root@noble-lts-vm:~# modprobe razerkbd; modprobe razermouse; modprobe razerkraken; modprobe razeraccessory
root@noble-lts-vm:~#

summary: - openrazer-drivers-dkms FTBS in Noble with the linux-6.17 kernel
+ openrazer-driver-dkms FTBS in Noble with the linux-6.17 kernel
tags: added: verification-done-noble
removed: verification-needed-noble
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.