On Mon, 25 Jan 2021 20:47:49 +0800 Zou Wei <[email protected]> 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;
       ^~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to