Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kbuild: Fix <linux/version.h> for empty SUBLEVEL or PATCHLEVEL again
Commit 78d3bb4 ("kbuild: Fix <linux/version.h> for empty SUBLEVEL or PATCHLEVEL") fixed the build error for empty SUBLEVEL or PATCHLEVEL by prepending a zero. Commit 9b82f13 ("kbuild: clamp SUBLEVEL to 255") re-introduced this issue. This time, we cannot take the same approach because we have C code: #define LINUX_VERSION_PATCHLEVEL $(PATCHLEVEL) #define LINUX_VERSION_SUBLEVEL $(SUBLEVEL) Replace empty SUBLEVEL/PATCHLEVEL with a zero. Fixes: 9b82f13 ("kbuild: clamp SUBLEVEL to 255") Reported-by: Christian Zigotzky <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-and-tested-by: Sasha Levin <[email protected]>
- Loading branch information