Stable versions 4.4.256 and 4.9.256 were released recently and the maintainer said that LINUX_VERSION_CODE(4,4,256) is the same as LINUX_VERSION_CODE(4,5,0): https://lore.kernel.org/lkml/1612534196241236@kroah.com/
I'm looking for a macro that accepts at least a 16-bit sublevel (the 256 in 4.4.256), so I can avoid compiling code that's meant for different release branches. Something like:
#define LINUX_VERSION_CODE_16BIT(a,b,c) (((a) << 24) + ((b) << 16) + (c))Was a format like this agreed on yet ? If I were to roll my own, what are the macro names for "4" and "9" from e.g. 4.9.256 ?