Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6499

Linux kernel version macro that accepts a 16-bit stable release number?

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 6499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>