On Sun, Mar 27, 2022 at 11:44:59PM +0200, Thorsten Glaser wrote: > On Sun, 27 Mar 2022, Thorsten Glaser wrote: > > > But this makes it more tricky… or can I “just” change this > > to KERNEL_VERSION(4, 19, 221) ? > > Well, of course not: > > $ cat /usr/src/linux-headers-4.19.0-19-amd64/include/generated/uapi/linux/version.h > #define LINUX_VERSION_CODE 267263 > #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) > $ print $(((267263 >> 16) & 0xFF)).$(((267263 >> 8) & 0xFF)).$((267263 & 0xFF)) > 4.19.255 > > Whose bright idea was *that*? > > How can I make this module compatible with *both* 4.19 variants? Ah, external code, sorry, you are on your own. As for how to test for larger numbers, see the answer in the email archives, others have done this successfully. good luck! greg k-h