JafarAkhondali / acer-predator-turbo-and-rgb-keyboard-linux-module

Linux kernel module to support Turbo mode and RGB Keyboard for Acer Predator notebook series
GNU General Public License v3.0
342 stars 59 forks source link

Fixing incompatible-pointer-types #86

Closed Evan-aja closed 1 year ago

Evan-aja commented 1 year ago

Screenshot from 2023-02-28 17-36-27

This commit fixes an issue that I have noticed on ArchLinux with kernel 6.2.x (Vanilla and Zen), which there is a compilation error incompatible-pointer-types on line 2019 and 2123.

Adding const qualifier to gkbbl_dev_uevent and gkbbl_static_dev_uevent is sufficient to fix this issue