All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baoquan He <bhe@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org,
	x86@kernel.org, linux-riscv@lists.infradead.org,
	akpm@linux-foundation.org, catalin.marinas@arm.com,
	thunder.leizhen@huawei.com, dyoung@redhat.com, prudo@redhat.com,
	Baoquan He <bhe@redhat.com>
Subject: [PATCH 3/8] include/linux/kexec.h: move down crash_core.h including
Date: Sun, 27 Aug 2023 18:11:22 +0800	[thread overview]
Message-ID: <20230827101128.70931-4-bhe@redhat.com> (raw)
In-Reply-To: <20230827101128.70931-1-bhe@redhat.com>

Later generic macros related to crash_core will be added into
<linux/crash_core.h>, and the corresponding arch specific macros will be
added to override them if needed. And Kconfig option KEXEC_CORE selects
CRASH_CORE. So move <linux/crash_core.h> including after <asm/kexec.h>.

And also move the crash_res|low_res and crash_notes delcarations after
<linux/crash_core.h> including because they are all defined in
kernel/kexec_core.c, and note_buf_t is definied in crash_core.h.

This is a preparation patch.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 include/linux/kexec.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 22b5cd24f581..8768fd9e2a66 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -15,25 +15,25 @@
 
 #if !defined(__ASSEMBLY__)
 
-#include <linux/crash_core.h>
 #include <asm/io.h>
 #include <linux/range.h>
 
 #include <uapi/linux/kexec.h>
 #include <linux/verification.h>
 
-/* Location of a reserved region to hold the crash kernel.
- */
-extern struct resource crashk_res;
-extern struct resource crashk_low_res;
-extern note_buf_t __percpu *crash_notes;
-
 #ifdef CONFIG_KEXEC_CORE
 #include <linux/list.h>
 #include <linux/compat.h>
 #include <linux/ioport.h>
 #include <linux/module.h>
 #include <asm/kexec.h>
+#include <linux/crash_core.h>
+
+/* Location of a reserved region to hold the crash kernel.
+ */
+extern struct resource crashk_res;
+extern struct resource crashk_low_res;
+extern note_buf_t __percpu *crash_notes;
 
 /* Verify architecture specific macros are defined */
 
-- 
2.41.0


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

WARNING: multiple messages have this Message-ID (diff)
From: Baoquan He <bhe@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org,
	x86@kernel.org, linux-riscv@lists.infradead.org,
	akpm@linux-foundation.org, catalin.marinas@arm.com,
	thunder.leizhen@huawei.com, dyoung@redhat.com, prudo@redhat.com,
	Baoquan He <bhe@redhat.com>
Subject: [PATCH 3/8] include/linux/kexec.h: move down crash_core.h including
Date: Sun, 27 Aug 2023 18:11:22 +0800	[thread overview]
Message-ID: <20230827101128.70931-4-bhe@redhat.com> (raw)
In-Reply-To: <20230827101128.70931-1-bhe@redhat.com>

Later generic macros related to crash_core will be added into
<linux/crash_core.h>, and the corresponding arch specific macros will be
added to override them if needed. And Kconfig option KEXEC_CORE selects
CRASH_CORE. So move <linux/crash_core.h> including after <asm/kexec.h>.

And also move the crash_res|low_res and crash_notes delcarations after
<linux/crash_core.h> including because they are all defined in
kernel/kexec_core.c, and note_buf_t is definied in crash_core.h.

This is a preparation patch.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 include/linux/kexec.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 22b5cd24f581..8768fd9e2a66 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -15,25 +15,25 @@
 
 #if !defined(__ASSEMBLY__)
 
-#include <linux/crash_core.h>
 #include <asm/io.h>
 #include <linux/range.h>
 
 #include <uapi/linux/kexec.h>
 #include <linux/verification.h>
 
-/* Location of a reserved region to hold the crash kernel.
- */
-extern struct resource crashk_res;
-extern struct resource crashk_low_res;
-extern note_buf_t __percpu *crash_notes;
-
 #ifdef CONFIG_KEXEC_CORE
 #include <linux/list.h>
 #include <linux/compat.h>
 #include <linux/ioport.h>
 #include <linux/module.h>
 #include <asm/kexec.h>
+#include <linux/crash_core.h>
+
+/* Location of a reserved region to hold the crash kernel.
+ */
+extern struct resource crashk_res;
+extern struct resource crashk_low_res;
+extern note_buf_t __percpu *crash_notes;
 
 /* Verify architecture specific macros are defined */
 
-- 
2.41.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

WARNING: multiple messages have this Message-ID (diff)
From: Baoquan He <bhe@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org,
	x86@kernel.org, linux-riscv@lists.infradead.org,
	akpm@linux-foundation.org, catalin.marinas@arm.com,
	thunder.leizhen@huawei.com, dyoung@redhat.com, prudo@redhat.com,
	Baoquan He <bhe@redhat.com>
Subject: [PATCH 3/8] include/linux/kexec.h: move down crash_core.h including
Date: Sun, 27 Aug 2023 18:11:22 +0800	[thread overview]
Message-ID: <20230827101128.70931-4-bhe@redhat.com> (raw)
In-Reply-To: <20230827101128.70931-1-bhe@redhat.com>

Later generic macros related to crash_core will be added into
<linux/crash_core.h>, and the corresponding arch specific macros will be
added to override them if needed. And Kconfig option KEXEC_CORE selects
CRASH_CORE. So move <linux/crash_core.h> including after <asm/kexec.h>.

And also move the crash_res|low_res and crash_notes delcarations after
<linux/crash_core.h> including because they are all defined in
kernel/kexec_core.c, and note_buf_t is definied in crash_core.h.

This is a preparation patch.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 include/linux/kexec.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 22b5cd24f581..8768fd9e2a66 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -15,25 +15,25 @@
 
 #if !defined(__ASSEMBLY__)
 
-#include <linux/crash_core.h>
 #include <asm/io.h>
 #include <linux/range.h>
 
 #include <uapi/linux/kexec.h>
 #include <linux/verification.h>
 
-/* Location of a reserved region to hold the crash kernel.
- */
-extern struct resource crashk_res;
-extern struct resource crashk_low_res;
-extern note_buf_t __percpu *crash_notes;
-
 #ifdef CONFIG_KEXEC_CORE
 #include <linux/list.h>
 #include <linux/compat.h>
 #include <linux/ioport.h>
 #include <linux/module.h>
 #include <asm/kexec.h>
+#include <linux/crash_core.h>
+
+/* Location of a reserved region to hold the crash kernel.
+ */
+extern struct resource crashk_res;
+extern struct resource crashk_low_res;
+extern note_buf_t __percpu *crash_notes;
 
 /* Verify architecture specific macros are defined */
 
-- 
2.41.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Baoquan He <bhe@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org,
	x86@kernel.org, linux-riscv@lists.infradead.org,
	akpm@linux-foundation.org, catalin.marinas@arm.com,
	thunder.leizhen@huawei.com, dyoung@redhat.com, prudo@redhat.com,
	Baoquan He <bhe@redhat.com>
Subject: [PATCH 3/8] include/linux/kexec.h: move down crash_core.h including
Date: Sun, 27 Aug 2023 18:11:22 +0800	[thread overview]
Message-ID: <20230827101128.70931-4-bhe@redhat.com> (raw)
In-Reply-To: <20230827101128.70931-1-bhe@redhat.com>

Later generic macros related to crash_core will be added into
<linux/crash_core.h>, and the corresponding arch specific macros will be
added to override them if needed. And Kconfig option KEXEC_CORE selects
CRASH_CORE. So move <linux/crash_core.h> including after <asm/kexec.h>.

And also move the crash_res|low_res and crash_notes delcarations after
<linux/crash_core.h> including because they are all defined in
kernel/kexec_core.c, and note_buf_t is definied in crash_core.h.

This is a preparation patch.

Signed-off-by: Baoquan He <bhe@redhat.com>
---
 include/linux/kexec.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/linux/kexec.h b/include/linux/kexec.h
index 22b5cd24f581..8768fd9e2a66 100644
--- a/include/linux/kexec.h
+++ b/include/linux/kexec.h
@@ -15,25 +15,25 @@
 
 #if !defined(__ASSEMBLY__)
 
-#include <linux/crash_core.h>
 #include <asm/io.h>
 #include <linux/range.h>
 
 #include <uapi/linux/kexec.h>
 #include <linux/verification.h>
 
-/* Location of a reserved region to hold the crash kernel.
- */
-extern struct resource crashk_res;
-extern struct resource crashk_low_res;
-extern note_buf_t __percpu *crash_notes;
-
 #ifdef CONFIG_KEXEC_CORE
 #include <linux/list.h>
 #include <linux/compat.h>
 #include <linux/ioport.h>
 #include <linux/module.h>
 #include <asm/kexec.h>
+#include <linux/crash_core.h>
+
+/* Location of a reserved region to hold the crash kernel.
+ */
+extern struct resource crashk_res;
+extern struct resource crashk_low_res;
+extern note_buf_t __percpu *crash_notes;
 
 /* Verify architecture specific macros are defined */
 
-- 
2.41.0


  parent reply	other threads:[~2023-08-27 10:12 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-27 10:11 [PATCH 0/8] kdump: use generic functions to simplify crashkernel reservation in architectures Baoquan He
2023-08-27 10:11 ` Baoquan He
2023-08-27 10:11 ` Baoquan He
2023-08-27 10:11 ` Baoquan He
2023-08-27 10:11 ` [PATCH 1/8] crash_core.c: remove unnecessary parameter of function Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11 ` [PATCH 2/8] crash_core: change the prototype of function parse_crashkernel() Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11 ` Baoquan He [this message]
2023-08-27 10:11   ` [PATCH 3/8] include/linux/kexec.h: move down crash_core.h including Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11 ` [PATCH 4/8] crash_core: change parse_crashkernel() to support crashkernel=,high|low parsing Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11 ` [PATCH 5/8] crash_core: add generic function to do reservation Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 13:53   ` kernel test robot
2023-08-27 13:53     ` kernel test robot
2023-08-27 13:53     ` kernel test robot
2023-08-27 13:53     ` kernel test robot
2023-08-28 12:57     ` Baoquan He
2023-08-28 12:57       ` Baoquan He
2023-08-28 12:57       ` Baoquan He
2023-08-28 12:57       ` Baoquan He
2023-08-27 10:11 ` [PATCH 6/8] arm64: kdump: use generic interface to simplify crashkernel reservation Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11 ` [PATCH 7/8] x86: kdump: use generic interface to simplify crashkernel reservation code Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11 ` [PATCH 8/8] crash_core.c: remove unneeded functions Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-27 10:11   ` Baoquan He
2023-08-28  5:26   ` Samuel Holland
2023-08-28  5:26     ` Samuel Holland
2023-08-28  5:26     ` Samuel Holland
2023-08-28  5:26     ` Samuel Holland
2023-08-28  9:42     ` Baoquan He
2023-08-28  9:42       ` Baoquan He
2023-08-28  9:42       ` Baoquan He
2023-08-28  9:42       ` Baoquan He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230827101128.70931-4-bhe@redhat.com \
    --to=bhe@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=catalin.marinas@arm.com \
    --cc=dyoung@redhat.com \
    --cc=kexec@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=prudo@redhat.com \
    --cc=thunder.leizhen@huawei.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.