pop-os / system76-dkms

System76 DKMS driver
GNU General Public License v2.0
39 stars 20 forks source link

Not building in Linux 6.11.x #67

Open beholders-eye opened 3 months ago

beholders-eye commented 3 months ago

Distribution (run cat /etc/os-release): Exherbo

Related Application and/or Package Version (run apt policy $PACKAGE NAME): gcc-13.3.0

Issue/Bug Description: Not building in Linux-6.11.x

Steps to reproduce (if you know): make

Expected behavior: To build the module properly.

Other Notes:

/usr/src/system76-dkms/system76.c:283:19: error: initialization of 'void (*)(struct platform_device *)' from incompatible pointer type 'int (*)(struct platform_device *)' [-Werror=incompatible-pointer-types]
  283 |         .remove = s76_remove,
      |                   ^~~~~~~~~~
/usr/src/system76-dkms/system76.c:283:19: note: (near initialization for 's76_platform_driver.<anonymous>.remove')
crawfxrd commented 3 months ago

Ref: