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?
Thanks in advance, //mirabilos