LKML Archive mirror
 help / color / mirror / Atom feed
* [PATCH] xen/x86: Remove duplicate include
@ 2024-03-22  6:39 Jiapeng Chong
  2024-03-22  6:53 ` Jürgen Groß
  2024-03-22  8:39 ` [tip: x86/cleanups] x86/xen: Remove duplicate #include tip-bot2 for Jiapeng Chong
  0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2024-03-22  6:39 UTC (permalink / raw
  To: jgross
  Cc: boris.ostrovsky, tglx, mingo, bp, dave.hansen, x86, hpa,
	xen-devel, linux-kernel, Jiapeng Chong, Abaci Robot

./arch/x86/xen/enlighten.c: linux/memblock.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8610
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 arch/x86/xen/enlighten.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index a01ca255b0c6..5f3a69f6ec34 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1,8 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
-#include <linux/memblock.h>
-#endif
 #include <linux/console.h>
 #include <linux/cpu.h>
 #include <linux/kexec.h>
-- 
2.20.1.7.g153144c


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

* Re: [PATCH] xen/x86: Remove duplicate include
  2024-03-22  6:39 [PATCH] xen/x86: Remove duplicate include Jiapeng Chong
@ 2024-03-22  6:53 ` Jürgen Groß
  2024-03-22  8:39 ` [tip: x86/cleanups] x86/xen: Remove duplicate #include tip-bot2 for Jiapeng Chong
  1 sibling, 0 replies; 3+ messages in thread
From: Jürgen Groß @ 2024-03-22  6:53 UTC (permalink / raw
  To: Jiapeng Chong
  Cc: boris.ostrovsky, tglx, mingo, bp, dave.hansen, x86, hpa,
	xen-devel, linux-kernel, Abaci Robot

On 22.03.24 07:39, Jiapeng Chong wrote:
> ./arch/x86/xen/enlighten.c: linux/memblock.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8610
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen


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

* [tip: x86/cleanups] x86/xen: Remove duplicate #include
  2024-03-22  6:39 [PATCH] xen/x86: Remove duplicate include Jiapeng Chong
  2024-03-22  6:53 ` Jürgen Groß
@ 2024-03-22  8:39 ` tip-bot2 for Jiapeng Chong
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Jiapeng Chong @ 2024-03-22  8:39 UTC (permalink / raw
  To: linux-tip-commits
  Cc: Abaci Robot, Jiapeng Chong, Ingo Molnar, Juergen Gross, x86,
	linux-kernel

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     b0daa43204b1b78dce43e26604e47e3e55e1af91
Gitweb:        https://git.kernel.org/tip/b0daa43204b1b78dce43e26604e47e3e55e1af91
Author:        Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
AuthorDate:    Fri, 22 Mar 2024 14:39:57 +08:00
Committer:     Ingo Molnar <mingo@kernel.org>
CommitterDate: Fri, 22 Mar 2024 09:34:15 +01:00

x86/xen: Remove duplicate #include

./arch/x86/xen/enlighten.c: linux/memblock.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20240322063957.94159-1-jiapeng.chong@linux.alibaba.com

Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=8610
---
 arch/x86/xen/enlighten.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 3c61bb9..7030a6a 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1,8 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
 
-#ifdef CONFIG_XEN_BALLOON_MEMORY_HOTPLUG
-#include <linux/memblock.h>
-#endif
 #include <linux/console.h>
 #include <linux/cpu.h>
 #include <linux/kexec.h>

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

end of thread, other threads:[~2024-03-22  8:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22  6:39 [PATCH] xen/x86: Remove duplicate include Jiapeng Chong
2024-03-22  6:53 ` Jürgen Groß
2024-03-22  8:39 ` [tip: x86/cleanups] x86/xen: Remove duplicate #include tip-bot2 for Jiapeng Chong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).