lkml.org 
[lkml]   [2021]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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;
^~~~~~~~~~~~~~~~~~~~~~~~

\
 
 \ /
  Last update: 2021-01-26 02:31    [W:0.035 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site