linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH stable 4.19 v3 0/4] ARM: ftrace MODULE_PLTS warning
@ 2021-09-27 21:02 Florian Fainelli
  2021-09-27 21:02 ` [PATCH stable 4.19 v3 1/4] ARM: 9077/1: PLT: Move struct plt_entries definition to header Florian Fainelli
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Florian Fainelli @ 2021-09-27 21:02 UTC (permalink / raw)
  To: linux-kernel
  Cc: stable, Greg Kroah-Hartman, Sasha Levin, Florian Fainelli,
	Steven Rostedt, Ingo Molnar, Russell King, Alex Sverdlin,
	moderated list:ARM PORT

This patch series is present in v5.14 and fixes warnings seen at insmod
with FTRACE and MODULE_PLTS enabled on ARM/Linux.

Changes in v3:

- resolved build error with allmodconfig enabling CONFIG_OLD_MCOUNT

Changes in v2:

- included build fix without DYNAMIC_FTRACE
- preserved Author's original name in 4.9 submission

Alex Sverdlin (4):
  ARM: 9077/1: PLT: Move struct plt_entries definition to header
  ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link()
  ARM: 9079/1: ftrace: Add MODULE_PLTS support
  ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without
    DYNAMIC_FTRACE

 arch/arm/include/asm/ftrace.h |  3 +++
 arch/arm/include/asm/insn.h   |  8 +++---
 arch/arm/include/asm/module.h | 10 +++++++
 arch/arm/kernel/ftrace.c      | 50 ++++++++++++++++++++++++++++-------
 arch/arm/kernel/insn.c        | 19 ++++++-------
 arch/arm/kernel/module-plts.c | 49 ++++++++++++++++++++++++++--------
 6 files changed, 105 insertions(+), 34 deletions(-)

-- 
2.25.1


_______________________________________________
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] 10+ messages in thread
* [PATCH stable 4.19 v2 4/4] ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE
@ 2021-09-22 17:01 Florian Fainelli
  2021-09-23 10:35 ` Patch "ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE" has been added to the 4.19-stable tree gregkh
  0 siblings, 1 reply; 10+ messages in thread
From: Florian Fainelli @ 2021-09-22 17:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: stable, Greg Kroah-Hartman, Sasha Levin, Alex Sverdlin,
	kernel test robot, Russell King, Florian Fainelli, Steven Rostedt,
	Ingo Molnar, Russell King, moderated list:ARM PORT

From: Alex Sverdlin <alexander.sverdlin@nokia.com>

commit 6fa630bf473827aee48cbf0efbbdf6f03134e890 upstream

FTRACE_ADDR is only defined when CONFIG_DYNAMIC_FTRACE is defined, the
latter is even stronger requirement than CONFIG_FUNCTION_TRACER (which is
enough for MCOUNT_ADDR).

Link: https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/thread/ZUVCQBHDMFVR7CCB7JPESLJEWERZDJ3T/

Fixes: 1f12fb25c5c5d22f ("ARM: 9079/1: ftrace: Add MODULE_PLTS support")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 arch/arm/kernel/module-plts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/module-plts.c b/arch/arm/kernel/module-plts.c
index 6804a145be11..ed0e09cc735f 100644
--- a/arch/arm/kernel/module-plts.c
+++ b/arch/arm/kernel/module-plts.c
@@ -24,7 +24,7 @@
 #endif
 
 static const u32 fixed_plts[] = {
-#ifdef CONFIG_FUNCTION_TRACER
+#ifdef CONFIG_DYNAMIC_FTRACE
 	FTRACE_ADDR,
 	MCOUNT_ADDR,
 #endif
-- 
2.25.1


_______________________________________________
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] 10+ messages in thread

end of thread, other threads:[~2021-10-04 11:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-27 21:02 [PATCH stable 4.19 v3 0/4] ARM: ftrace MODULE_PLTS warning Florian Fainelli
2021-09-27 21:02 ` [PATCH stable 4.19 v3 1/4] ARM: 9077/1: PLT: Move struct plt_entries definition to header Florian Fainelli
2021-10-04 11:21   ` Patch "ARM: 9077/1: PLT: Move struct plt_entries definition to header" has been added to the 4.19-stable tree gregkh
2021-09-27 21:02 ` [PATCH stable 4.19 v3 2/4] ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link() Florian Fainelli
2021-10-04 11:21   ` Patch "ARM: 9078/1: Add warn suppress parameter to arm_gen_branch_link()" has been added to the 4.19-stable tree gregkh
2021-09-27 21:02 ` [PATCH stable 4.19 v3 3/4] ARM: 9079/1: ftrace: Add MODULE_PLTS support Florian Fainelli
2021-10-04 11:21   ` Patch "ARM: 9079/1: ftrace: Add MODULE_PLTS support" has been added to the 4.19-stable tree gregkh
2021-09-27 21:02 ` [PATCH stable 4.19 v3 4/4] ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE Florian Fainelli
2021-10-04 11:21   ` Patch "ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE" has been added to the 4.19-stable tree gregkh
  -- strict thread matches above, loose matches on Subject: below --
2021-09-22 17:01 [PATCH stable 4.19 v2 4/4] ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE Florian Fainelli
2021-09-23 10:35 ` Patch "ARM: 9098/1: ftrace: MODULE_PLT: Fix build problem without DYNAMIC_FTRACE" has been added to the 4.19-stable tree gregkh

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).