Compile error with kernel 6.7.3
I'm running into a compilation error while building ddcci-driver-linux with kernel 6.7.3 with DKMS on Fedora 39 (build log):
/var/lib/dkms/ddcci/0.4.4/build/ddcci-backlight/ddcci-backlight.c: In function ‘ddcci_backlight_check_fb’:
/var/lib/dkms/ddcci/0.4.4/build/ddcci-backlight/ddcci-backlight.c:96:68: error: ‘struct fb_info’ has no member named ‘dev’
96 | return drv_data->fb_dev == NULL || drv_data->fb_dev == info->dev;
| ^~
/var/lib/dkms/ddcci/0.4.4/build/ddcci-backlight/ddcci-backlight.c:97:1: error: control reaches end of non-void function [-Werror=return-type]
97 | }
| ^
cc1: some warnings being treated as errors
From a little digging around, the only relevant recent kernel change I could find is this, which makes the dev
field of struct fb_info
conditional on the CONFIG_FB_DEVICE
flag. Unfortunately I don't know enough to do anything with this information.