fix: sublevel version overflow in LINUX_VERSION_CODE
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 5 Feb 2021 17:08:40 +0000 (12:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Feb 2021 15:11:45 +0000 (10:11 -0500)
commit2a51de8b3ac8f24cae8a33625f1cf8638ac0a5a3
tree0c36dfe50575a0dcf5f4c0db6a599608ace0d8f4
parentb78104db53f97c10add30016e365855a26f6e01e
fix: sublevel version overflow in LINUX_VERSION_CODE

The 4.4.256 and 4.9.256 stable release overflow the 8bits allocated to
the sublevel in LINUX_VERSION_CODE which ends means they report
themselves as 4.5.0 and 4.10.0 respectively. The next releases in these
stables branches will have sublevel clamped at 255 and will thus report
themselves as 4.4.255 and 4.9.255 for all subsequent releases.

We need a way to way to properly detect these release since I doubt they
will stop breaking tracepoints declarations. As a workaround, extract
the version information from the Makefile in the kernel headers and use
this information to generate a version code when the sublevel is equal
or greater than 256.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ice15240717d04551bbe42ad28b53508c10ed6ca5
Kbuild.common
lttng-kernel-version.h
This page took 0.024979 seconds and 4 git commands to generate.