Created attachment 903511 [details] build log Hi, don't normally submit bugs but I noticed when building with kernel versions >= 6.11.0 that =app-laptop/framework-laptop-kmod-0_pre20240506 fails to build with an invalid function pointer error. I look into this a bit and found as of version 6.11.0 the kernel refines 'struct platform_driver', changing some of the function pointers to void, instead of the int like in previous versions. This ebuild uses a slightly older commit from the upstream github which doesn't include a fix for this. Using commit 6164bc3dec24b6bb2806eedd269df6a170bcc930, the latest as of today, fixes this issue by including a preprocessor check: #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 11, 0) static void framework_remove(struct platform_device *pdev) #else static int framework_remove(struct platform_device *pdev) #endif I was able to get it to compile by just doing a version bump, but wanted to report this in case someone else runs into it :P
Created attachment 903512 [details] emerge info
Created attachment 905103 [details, diff] temporary.patch I have submitted the package update to Gentoo's Github mirror. Until then, putting the attached patch into `/etc/portage/patches/app-laptop/framework-laptop-kmod` is a viable workaround. This is the same patch as https://patch-diff.githubusercontent.com/raw/DHowett/framework-laptop-kmod/pull/24.diff