Fails to build with Linux 6.10 with `ddcci.c:1827:27: error: ‘I2C_CLASS_SPD’ undeclared here (not in a function); did you mean ‘I2C_CLASS_HWMON’?`.
Using latest release 0.4.5 of ddcci-driver-linux,
with Linux 6.10, this fails to build with
ddcci.c:1827:27: error: ‘I2C_CLASS_SPD’ undeclared here (not in a function); did you mean ‘I2C_CLASS_HWMON’?
.
/var/lib/dkms/ddcci/0.4.5/build/make.log
:
DKMS make.log for ddcci-0.4.5 for kernel 6.10.0-pf1 (x86_64)
Mon Jul 22 10:32:50 AM CEST 2024
make: Entering directory '/var/lib/dkms/ddcci/0.4.5/build'
make -C "ddcci"
make[1]: Entering directory '/var/lib/dkms/ddcci/0.4.5/build/ddcci'
make -C "/lib/modules/6.10.0-pf1/build" M="/var/lib/dkms/ddcci/0.4.5/build/ddcci" modules
make[2]: Entering directory '/usr/lib/modules/6.10.0-pf1/build'
CC [M] /var/lib/dkms/ddcci/0.4.5/build/ddcci/ddcci.o
/var/lib/dkms/ddcci/0.4.5/build/ddcci/ddcci.c:1827:27: error: ‘I2C_CLASS_SPD’ undeclared here (not in a function); did you mean ‘I2C_CLASS_HWMON’?
1827 | .class = I2C_CLASS_SPD,
| ^~~~~~~~~~~~~
| I2C_CLASS_HWMON
make[4]: *** [scripts/Makefile.build:244: /var/lib/dkms/ddcci/0.4.5/build/ddcci/ddcci.o] Error 1
make[3]: *** [/usr/lib/modules/6.10.0-pf1/build/Makefile:1934: /var/lib/dkms/ddcci/0.4.5/build/ddcci] Error 2
make[2]: *** [Makefile:240: __sub-make] Error 2
make[2]: Leaving directory '/usr/lib/modules/6.10.0-pf1/build'
make[1]: *** [Makefile:38: ddcci.ko] Error 2
make[1]: Leaving directory '/var/lib/dkms/ddcci/0.4.5/build/ddcci'
make: *** [Makefile:28: ddcci] Error 2
make: Leaving directory '/var/lib/dkms/ddcci/0.4.5/build'
For Linux 6.9.10 build works.
Regards!
Edited by Drei Eck