* [PATCH AUTOSEL 5.15 01/11] arch: consolidate arch_irq_work_raise prototypes
@ 2024-01-16 1:07 Sasha Levin
2024-01-16 1:07 ` [PATCH AUTOSEL 5.15 05/11] arm64: Fix circular header dependency Sasha Levin
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2024-01-16 1:07 UTC (permalink / raw)
To: linux-kernel, stable
Cc: Arnd Bergmann, Alexander Gordeev, Catalin Marinas, Palmer Dabbelt,
Guo Ren, Sasha Levin, will, mpe, paul.walmsley, palmer, aou, hca,
gor, tglx, mingo, bp, dave.hansen, x86, linux-arm-kernel,
linux-csky, linuxppc-dev, linux-riscv, linux-s390
From: Arnd Bergmann <arnd@arndb.de>
[ Upstream commit 64bac5ea17d527872121adddfee869c7a0618f8f ]
The prototype was hidden in an #ifdef on x86, which causes a warning:
kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes]
Some architectures have a working prototype, while others don't.
Fix this by providing it in only one place that is always visible.
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
arch/arm64/include/asm/irq_work.h | 2 --
arch/csky/include/asm/irq_work.h | 2 +-
arch/powerpc/include/asm/irq_work.h | 1 -
arch/riscv/include/asm/irq_work.h | 2 +-
arch/s390/include/asm/irq_work.h | 2 --
arch/x86/include/asm/irq_work.h | 1 -
include/linux/irq_work.h | 3 +++
7 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq_work.h
index 81bbfa3a035b..a1020285ea75 100644
--- a/arch/arm64/include/asm/irq_work.h
+++ b/arch/arm64/include/asm/irq_work.h
@@ -2,8 +2,6 @@
#ifndef __ASM_IRQ_WORK_H
#define __ASM_IRQ_WORK_H
-extern void arch_irq_work_raise(void);
-
static inline bool arch_irq_work_has_interrupt(void)
{
return true;
diff --git a/arch/csky/include/asm/irq_work.h b/arch/csky/include/asm/irq_work.h
index 33aaf39d6f94..d39fcc1f5395 100644
--- a/arch/csky/include/asm/irq_work.h
+++ b/arch/csky/include/asm/irq_work.h
@@ -7,5 +7,5 @@ static inline bool arch_irq_work_has_interrupt(void)
{
return true;
}
-extern void arch_irq_work_raise(void);
+
#endif /* __ASM_CSKY_IRQ_WORK_H */
diff --git a/arch/powerpc/include/asm/irq_work.h b/arch/powerpc/include/asm/irq_work.h
index b8b0be8f1a07..c6d3078bd8c3 100644
--- a/arch/powerpc/include/asm/irq_work.h
+++ b/arch/powerpc/include/asm/irq_work.h
@@ -6,6 +6,5 @@ static inline bool arch_irq_work_has_interrupt(void)
{
return true;
}
-extern void arch_irq_work_raise(void);
#endif /* _ASM_POWERPC_IRQ_WORK_H */
diff --git a/arch/riscv/include/asm/irq_work.h b/arch/riscv/include/asm/irq_work.h
index b53891964ae0..b27a4d64fc6a 100644
--- a/arch/riscv/include/asm/irq_work.h
+++ b/arch/riscv/include/asm/irq_work.h
@@ -6,5 +6,5 @@ static inline bool arch_irq_work_has_interrupt(void)
{
return IS_ENABLED(CONFIG_SMP);
}
-extern void arch_irq_work_raise(void);
+
#endif /* _ASM_RISCV_IRQ_WORK_H */
diff --git a/arch/s390/include/asm/irq_work.h b/arch/s390/include/asm/irq_work.h
index 603783766d0a..f00c9f610d5a 100644
--- a/arch/s390/include/asm/irq_work.h
+++ b/arch/s390/include/asm/irq_work.h
@@ -7,6 +7,4 @@ static inline bool arch_irq_work_has_interrupt(void)
return true;
}
-void arch_irq_work_raise(void);
-
#endif /* _ASM_S390_IRQ_WORK_H */
diff --git a/arch/x86/include/asm/irq_work.h b/arch/x86/include/asm/irq_work.h
index 800ffce0db29..6b4d36c95165 100644
--- a/arch/x86/include/asm/irq_work.h
+++ b/arch/x86/include/asm/irq_work.h
@@ -9,7 +9,6 @@ static inline bool arch_irq_work_has_interrupt(void)
{
return boot_cpu_has(X86_FEATURE_APIC);
}
-extern void arch_irq_work_raise(void);
#else
static inline bool arch_irq_work_has_interrupt(void)
{
diff --git a/include/linux/irq_work.h b/include/linux/irq_work.h
index ec2a47a81e42..ee5f9120c4d7 100644
--- a/include/linux/irq_work.h
+++ b/include/linux/irq_work.h
@@ -58,6 +58,9 @@ void irq_work_sync(struct irq_work *work);
void irq_work_run(void);
bool irq_work_needs_cpu(void);
void irq_work_single(void *arg);
+
+void arch_irq_work_raise(void);
+
#else
static inline bool irq_work_needs_cpu(void) { return false; }
static inline void irq_work_run(void) { }
--
2.43.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH AUTOSEL 5.15 05/11] arm64: Fix circular header dependency
2024-01-16 1:07 [PATCH AUTOSEL 5.15 01/11] arch: consolidate arch_irq_work_raise prototypes Sasha Levin
@ 2024-01-16 1:07 ` Sasha Levin
2024-01-16 1:46 ` Kent Overstreet
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2024-01-16 1:07 UTC (permalink / raw)
To: linux-kernel, stable
Cc: Kent Overstreet, Suren Baghdasaryan, Sasha Levin, catalin.marinas,
will, keescook, arnd, mark.rutland, linux-arm-kernel
From: Kent Overstreet <kent.overstreet@linux.dev>
[ Upstream commit 04bc786d663543512d08f1b86c7bcefb5144afe3 ]
Replace linux/percpu.h include with asm/percpu.h to avoid circular
dependency.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
arch/arm64/include/asm/spectre.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/include/asm/spectre.h b/arch/arm64/include/asm/spectre.h
index db7b371b367c..31823d9715ab 100644
--- a/arch/arm64/include/asm/spectre.h
+++ b/arch/arm64/include/asm/spectre.h
@@ -13,8 +13,8 @@
#define __BP_HARDEN_HYP_VECS_SZ ((BP_HARDEN_EL2_SLOTS - 1) * SZ_2K)
#ifndef __ASSEMBLY__
-
-#include <linux/percpu.h>
+#include <linux/smp.h>
+#include <asm/percpu.h>
#include <asm/cpufeature.h>
#include <asm/virt.h>
--
2.43.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH AUTOSEL 5.15 05/11] arm64: Fix circular header dependency
2024-01-16 1:07 ` [PATCH AUTOSEL 5.15 05/11] arm64: Fix circular header dependency Sasha Levin
@ 2024-01-16 1:46 ` Kent Overstreet
2024-01-16 18:27 ` Sasha Levin
0 siblings, 1 reply; 4+ messages in thread
From: Kent Overstreet @ 2024-01-16 1:46 UTC (permalink / raw)
To: Sasha Levin
Cc: linux-kernel, stable, Suren Baghdasaryan, catalin.marinas, will,
keescook, arnd, mark.rutland, linux-arm-kernel
On Mon, Jan 15, 2024 at 08:07:05PM -0500, Sasha Levin wrote:
> From: Kent Overstreet <kent.overstreet@linux.dev>
>
> [ Upstream commit 04bc786d663543512d08f1b86c7bcefb5144afe3 ]
>
> Replace linux/percpu.h include with asm/percpu.h to avoid circular
> dependency.
>
> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
> Signed-off-by: Suren Baghdasaryan <surenb@google.com>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
This patch doesn't need to be backported, it's fixing an issue that
occurs with the memory allocation profiling patchset
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH AUTOSEL 5.15 05/11] arm64: Fix circular header dependency
2024-01-16 1:46 ` Kent Overstreet
@ 2024-01-16 18:27 ` Sasha Levin
0 siblings, 0 replies; 4+ messages in thread
From: Sasha Levin @ 2024-01-16 18:27 UTC (permalink / raw)
To: Kent Overstreet
Cc: linux-kernel, stable, Suren Baghdasaryan, catalin.marinas, will,
keescook, arnd, mark.rutland, linux-arm-kernel
On Mon, Jan 15, 2024 at 08:46:07PM -0500, Kent Overstreet wrote:
>On Mon, Jan 15, 2024 at 08:07:05PM -0500, Sasha Levin wrote:
>> From: Kent Overstreet <kent.overstreet@linux.dev>
>>
>> [ Upstream commit 04bc786d663543512d08f1b86c7bcefb5144afe3 ]
>>
>> Replace linux/percpu.h include with asm/percpu.h to avoid circular
>> dependency.
>>
>> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
>> Signed-off-by: Suren Baghdasaryan <surenb@google.com>
>> Signed-off-by: Sasha Levin <sashal@kernel.org>
>
>This patch doesn't need to be backported, it's fixing an issue that
>occurs with the memory allocation profiling patchset
I'll drop it, thanks!
--
Thanks,
Sasha
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-16 18:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 1:07 [PATCH AUTOSEL 5.15 01/11] arch: consolidate arch_irq_work_raise prototypes Sasha Levin
2024-01-16 1:07 ` [PATCH AUTOSEL 5.15 05/11] arm64: Fix circular header dependency Sasha Levin
2024-01-16 1:46 ` Kent Overstreet
2024-01-16 18:27 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox