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:10:39 +0000 (10:10 -0500)
commit919f286898a7782eeb8483cd31a52a77a31562b3
treedd4546b9503abca47c9ac60616204a5b19f762d0
parent2d0428212cbfa3f8428feee160b095f48c2ac974
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: Ie12dec7d2f28fc83343262f42680d42a2f40b59e
Kbuild.common
lttng-kernel-version.h
This page took 0.026972 seconds and 4 git commands to generate.