mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] kernel/sys.c: Remove unused including <linux/version.h>
@ 2021-01-25 12:47 Zou Wei
  2021-01-26  1:26 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Zou Wei @ 2021-01-25 12:47 UTC (permalink / raw)
  To: christian.brauner, akpm, tglx, areber, thomascedeno,
	Nicolas.Viennot, walken, viresh.kumar, liao.pingfang, mchristi,
	viro, linux
  Cc: linux-kernel, Zou Wei

Fix the following versioncheck warning:

kernel/sys.c:42:1: unused including <linux/version.h>

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
---
 kernel/sys.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/sys.c b/kernel/sys.c
index e6fd8b8..8ecd3c5 100644
--- 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>
 
-- 
2.6.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] kernel/sys.c: Remove unused including <linux/version.h>
  2021-01-25 12:47 [PATCH -next] kernel/sys.c: Remove unused including <linux/version.h> Zou Wei
@ 2021-01-26  1:26 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2021-01-26  1:26 UTC (permalink / raw)
  To: Zou Wei
  Cc: christian.brauner, tglx, areber, thomascedeno, Nicolas.Viennot,
	walken, viresh.kumar, liao.pingfang, mchristi, viro, linux,
	linux-kernel

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;
       ^~~~~~~~~~~~~~~~~~~~~~~~


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-26  1:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 12:47 [PATCH -next] kernel/sys.c: Remove unused including <linux/version.h> Zou Wei
2021-01-26  1:26 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®