]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - kernel/sys.c
kbuild: simplify access to the kernel's version
[thirdparty/linux.git] / kernel / sys.c
index 51f00fe20e4d15fbf37a38d4a66d2a62166f8cce..c2225bd405d58d2ddb405a962c06904cc5f2ac26 100644 (file)
@@ -1243,7 +1243,7 @@ static int override_release(char __user *release, size_t len)
                                break;
                        rest++;
                }
-               v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 60;
+               v = LINUX_VERSION_PATCHLEVEL + 60;
                copy = clamp_t(size_t, len, 1, sizeof(buf));
                copy = scnprintf(buf, copy, "2.6.%u%s", v, rest);
                ret = copy_to_user(release, buf, copy + 1);