linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] RISC-V: fix include warning in smpboot.c
@ 2023-12-10 12:42 Fredrik Lönnegren
  2023-12-10 12:42 ` [PATCH 2/2] RISC-V: sort includes alphabetically Fredrik Lönnegren
  0 siblings, 1 reply; 2+ messages in thread
From: Fredrik Lönnegren @ 2023-12-10 12:42 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, fredrik.lonnegren
  Cc: linux-riscv, linux-kernel, Fredrik Lönnegren

This commit fixes a warning about duplicate includes of
"asm/cpufeatures.h" found using scripts/checkincludes.pl

Signed-off-by: Fredrik Lönnegren <fredrik@frelon.se>
---
 arch/riscv/kernel/smpboot.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
index d162bf339beb..1b461570d456 100644
--- a/arch/riscv/kernel/smpboot.c
+++ b/arch/riscv/kernel/smpboot.c
@@ -26,7 +26,6 @@
 #include <linux/sched/task_stack.h>
 #include <linux/sched/mm.h>
 
-#include <asm/cpufeature.h>
 #include <asm/cpu_ops.h>
 #include <asm/cpufeature.h>
 #include <asm/irq.h>
-- 
2.43.0


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

* [PATCH 2/2] RISC-V: sort includes alphabetically
  2023-12-10 12:42 [PATCH 1/2] RISC-V: fix include warning in smpboot.c Fredrik Lönnegren
@ 2023-12-10 12:42 ` Fredrik Lönnegren
  0 siblings, 0 replies; 2+ messages in thread
From: Fredrik Lönnegren @ 2023-12-10 12:42 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, fredrik.lonnegren
  Cc: linux-riscv, linux-kernel, Fredrik Lönnegren

Sort includes in arch/riscv/kernel/smpboot.c alphabetically.

Signed-off-by: Fredrik Lönnegren <fredrik@frelon.se>
---
 arch/riscv/kernel/smpboot.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c
index 1b461570d456..98ebb5e3f173 100644
--- a/arch/riscv/kernel/smpboot.c
+++ b/arch/riscv/kernel/smpboot.c
@@ -10,19 +10,19 @@
 
 #include <linux/acpi.h>
 #include <linux/arch_topology.h>
-#include <linux/module.h>
-#include <linux/init.h>
-#include <linux/kernel.h>
-#include <linux/mm.h>
-#include <linux/sched.h>
-#include <linux/kernel_stat.h>
-#include <linux/notifier.h>
 #include <linux/cpu.h>
-#include <linux/percpu.h>
 #include <linux/delay.h>
 #include <linux/err.h>
+#include <linux/init.h>
 #include <linux/irq.h>
+#include <linux/kernel.h>
+#include <linux/kernel_stat.h>
+#include <linux/mm.h>
+#include <linux/module.h>
+#include <linux/notifier.h>
 #include <linux/of.h>
+#include <linux/percpu.h>
+#include <linux/sched.h>
 #include <linux/sched/task_stack.h>
 #include <linux/sched/mm.h>
 
@@ -31,11 +31,11 @@
 #include <asm/irq.h>
 #include <asm/mmu_context.h>
 #include <asm/numa.h>
-#include <asm/tlbflush.h>
 #include <asm/sections.h>
 #include <asm/smp.h>
-#include <uapi/asm/hwcap.h>
+#include <asm/tlbflush.h>
 #include <asm/vector.h>
+#include <uapi/asm/hwcap.h>
 
 #include "head.h"
 
-- 
2.43.0


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

end of thread, other threads:[~2023-12-10 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-10 12:42 [PATCH 1/2] RISC-V: fix include warning in smpboot.c Fredrik Lönnegren
2023-12-10 12:42 ` [PATCH 2/2] RISC-V: sort includes alphabetically Fredrik Lönnegren

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 NNTP newsgroup(s).