One can improve above patch with additional version guards, such that it compiles correctly against either v5.17 or v5.19 kernel.
As during upgrades dkms module may be upgraded/installed, whilst previous v5.17 kernel from kinetic-release or jammy-updates is still installed.
One can improve above patch with additional version guards, such that it compiles correctly against either v5.17 or v5.19 kernel.
As during upgrades dkms module may be upgraded/installed, whilst previous v5.17 kernel from kinetic-release or jammy-updates is still installed.