You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
The DKMS module fails to build on recent kernels (tested on 6.1.165-1-MANJARO) due to an incompatible function pointer type for the platform_driver->remove callback.
Error output
error: assignment to 'int (*)(struct platform_device *)'
from incompatible pointer type 'void (*)(struct platform_device *)'
platform_driver->remove = asus_fan_remove;
note: 'asus_fan_remove' declared here
static void asus_fan_remove(struct platform_device *device)
Cause
The kernel expects the remove callback to have the signature:
Description
The DKMS module fails to build on recent kernels (tested on
6.1.165-1-MANJARO) due to an incompatible function pointer type for theplatform_driver->removecallback.Error output
Cause
The kernel expects the
removecallback to have the signature:However, the module defines:
This results in a build failure due to the mismatched return type.
Proposed fix
Change the function signature to return
intand add a return value:Environment
6.1.165-1-MANJARO(x86_64)3.3.0