Messages in this thread | | | Date | Mon, 25 Jan 2021 17:26:46 -0800 | From | Andrew Morton <> | Subject | Re: [PATCH -next] kernel/sys.c: Remove unused including <linux/version.h> |
| |
On Mon, 25 Jan 2021 20:47:49 +0800 Zou Wei <zou_wei@huawei.com> wrote:
> Fix the following versioncheck warning: > > kernel/sys.c:42:1: unused including <linux/version.h> > > ... > > --- a/kernel/sys.c > +++ b/kernel/sys.c > @@ -39,7 +39,6 @@ > #include <linux/mount.h> > #include <linux/gfp.h> > #include <linux/syscore_ops.h> > -#include <linux/version.h> > #include <linux/ctype.h> > #include <linux/syscall_user_dispatch.h> >
x86 allnoconfig:
kernel/sys.c: In function override_release: kernel/sys.c:1244:7: error: LINUX_VERSION_PATCHLEVEL undeclared (first use in this function) v = LINUX_VERSION_PATCHLEVEL + 60; ^~~~~~~~~~~~~~~~~~~~~~~~
| |