lkrg
lkrg copied to clipboard
add-export.sh broken as static export check is enforced in newer kernel.
https://github.com/torvalds/linux/commit/6d62b1c46b1e6e1686a0cf6617c96c80d4ab5cd5 https://github.com/torvalds/linux/commit/31cb50b5590fe911077b8463ad01144fac8fa4f3
the scripts/add-exports.sh is causing compilation failure on newer kernels due to them check and fail on exported static symbol, I observed such failure starting from 6.8.10 and 6.9. I haven't tested other versions but this should have a wide impact.
I wrote a patch to see if I can fix it by removing this single check (It's dirty but the whole add-exports.sh thing is dirty already)
In the future we might need a more sophisticated patch directly on the kernel.
Example of such build failure: