Message ID | 20230823082845.354839-1-bjorn@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 9f944d2e0ab39296bfadb29167dc333815ba9f48 |
Delegated to: | Conor Dooley |
Headers | show |
Series | riscv: Require FRAME_POINTER for some configurations | expand |
Context | Check | Description |
---|---|---|
conchuod/cover_letter | success | Single patches do not need cover letters |
conchuod/tree_selection | success | Guessed tree name to be fixes at HEAD ef21fa7c198e |
conchuod/fixes_present | success | Fixes tag present in non-next series |
conchuod/maintainers_pattern | success | MAINTAINERS pattern errors before the patch: 4 and now 4 |
conchuod/verify_signedoff | success | Signed-off-by tag matches author and committer |
conchuod/kdoc | success | Errors and warnings before: 0 this patch: 0 |
conchuod/build_rv64_clang_allmodconfig | success | Errors and warnings before: 2813 this patch: 2813 |
conchuod/module_param | success | Was 0 now: 0 |
conchuod/build_rv64_gcc_allmodconfig | fail | Errors and warnings before: 15878 this patch: 15879 |
conchuod/build_rv32_defconfig | success | Build OK |
conchuod/dtb_warn_rv64 | success | Errors and warnings before: 12 this patch: 12 |
conchuod/header_inline | success | No static functions without inline keyword in header files |
conchuod/checkpatch | success | total: 0 errors, 0 warnings, 0 checks, 16 lines checked |
conchuod/build_rv64_nommu_k210_defconfig | success | Build OK |
conchuod/verify_fixes | success | Fixes tag looks correct |
conchuod/build_rv64_nommu_virt_defconfig | success | Build OK |
Björn Töpel <bjorn@kernel.org> writes: > From: Björn Töpel <bjorn@rivosinc.com> > > Some V configurations implicitly turn on '-fno-omit-frame-pointer', s/V/RISC-V/
Hi, On 8/23/23 01:28, Björn Töpel wrote: > From: Björn Töpel <bjorn@rivosinc.com> > > Some V configurations implicitly turn on '-fno-omit-frame-pointer', > but leaving FRAME_POINTER disabled. This makes it hard to reason about > the FRAME_POINTER config, and also triggers build failures introduced > in by the commit in the Fixes: tag. > > Select FRAME_POINTER explicitly for these configurations. > > Fixes: ebc9cb03b21e ("riscv: stack: Fixup independent softirq stack for CONFIG_FRAME_POINTER=n") > Signed-off-by: Björn Töpel <bjorn@rivosinc.com> WorksForMe. Thanks. Tested-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> > --- > arch/riscv/Kconfig | 1 + > arch/riscv/Makefile | 3 --- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 10e7a7ad175a..cd8075c092c3 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -62,6 +62,7 @@ config RISCV > select COMMON_CLK > select CPU_PM if CPU_IDLE || HIBERNATION > select EDAC_SUPPORT > + select FRAME_POINTER if PERF_EVENTS || (FUNCTION_TRACER && !DYNAMIC_FTRACE) > select GENERIC_ARCH_TOPOLOGY > select GENERIC_ATOMIC64 if !64BIT > select GENERIC_CLOCKEVENTS_BROADCAST if SMP > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 6ec6d52a4180..1329e060c548 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -87,9 +87,6 @@ endif > ifeq ($(CONFIG_CMODEL_MEDANY),y) > KBUILD_CFLAGS += -mcmodel=medany > endif > -ifeq ($(CONFIG_PERF_EVENTS),y) > - KBUILD_CFLAGS += -fno-omit-frame-pointer > -endif > > # Avoid generating .eh_frame sections. > KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables > > base-commit: 89bf6209cad66214d3774dac86b6bbf2aec6a30d
On Wed, Aug 23, 2023 at 10:28:45AM +0200, Björn Töpel wrote: > From: Björn Töpel <bjorn@rivosinc.com> > > Some V configurations implicitly turn on '-fno-omit-frame-pointer', > but leaving FRAME_POINTER disabled. This makes it hard to reason about > the FRAME_POINTER config, and also triggers build failures introduced > in by the commit in the Fixes: tag. > > Select FRAME_POINTER explicitly for these configurations. > > Fixes: ebc9cb03b21e ("riscv: stack: Fixup independent softirq stack for CONFIG_FRAME_POINTER=n") > Signed-off-by: Björn Töpel <bjorn@rivosinc.com> I think this is reasonable, even if you pre-patch version of this seemed quite sceptical. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Thanks, Conor. > --- > arch/riscv/Kconfig | 1 + > arch/riscv/Makefile | 3 --- > 2 files changed, 1 insertion(+), 3 deletions(-) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 10e7a7ad175a..cd8075c092c3 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -62,6 +62,7 @@ config RISCV > select COMMON_CLK > select CPU_PM if CPU_IDLE || HIBERNATION > select EDAC_SUPPORT > + select FRAME_POINTER if PERF_EVENTS || (FUNCTION_TRACER && !DYNAMIC_FTRACE) > select GENERIC_ARCH_TOPOLOGY > select GENERIC_ATOMIC64 if !64BIT > select GENERIC_CLOCKEVENTS_BROADCAST if SMP > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index 6ec6d52a4180..1329e060c548 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -87,9 +87,6 @@ endif > ifeq ($(CONFIG_CMODEL_MEDANY),y) > KBUILD_CFLAGS += -mcmodel=medany > endif > -ifeq ($(CONFIG_PERF_EVENTS),y) > - KBUILD_CFLAGS += -fno-omit-frame-pointer > -endif > > # Avoid generating .eh_frame sections. > KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables > > base-commit: 89bf6209cad66214d3774dac86b6bbf2aec6a30d > -- > 2.39.2 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv
Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <palmer@rivosinc.com>: On Wed, 23 Aug 2023 10:28:45 +0200 you wrote: > From: Björn Töpel <bjorn@rivosinc.com> > > Some V configurations implicitly turn on '-fno-omit-frame-pointer', > but leaving FRAME_POINTER disabled. This makes it hard to reason about > the FRAME_POINTER config, and also triggers build failures introduced > in by the commit in the Fixes: tag. > > [...] Here is the summary with links: - riscv: Require FRAME_POINTER for some configurations https://git.kernel.org/riscv/c/9f944d2e0ab3 You are awesome, thank you!
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 10e7a7ad175a..cd8075c092c3 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -62,6 +62,7 @@ config RISCV select COMMON_CLK select CPU_PM if CPU_IDLE || HIBERNATION select EDAC_SUPPORT + select FRAME_POINTER if PERF_EVENTS || (FUNCTION_TRACER && !DYNAMIC_FTRACE) select GENERIC_ARCH_TOPOLOGY select GENERIC_ATOMIC64 if !64BIT select GENERIC_CLOCKEVENTS_BROADCAST if SMP diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index 6ec6d52a4180..1329e060c548 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -87,9 +87,6 @@ endif ifeq ($(CONFIG_CMODEL_MEDANY),y) KBUILD_CFLAGS += -mcmodel=medany endif -ifeq ($(CONFIG_PERF_EVENTS),y) - KBUILD_CFLAGS += -fno-omit-frame-pointer -endif # Avoid generating .eh_frame sections. KBUILD_CFLAGS += -fno-asynchronous-unwind-tables -fno-unwind-tables