public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arc: remove #ifndef CONFIG_AS_CFI_SIGNAL_FRAME
@ 2020-04-13  2:05 Masahiro Yamada
  2020-04-13  5:38 ` Vineet Gupta
  2020-04-13 18:20 ` Nick Desaulniers
  0 siblings, 2 replies; 4+ messages in thread
From: Masahiro Yamada @ 2020-04-13  2:05 UTC (permalink / raw)
  To: Vineet Gupta, linux-snps-arc
  Cc: Masahiro Yamada, Nick Desaulniers, Allison Randal, Arnd Bergmann,
	Gustavo A. R. Silva, Kate Stewart, Kees Cook, Pankaj Bharadiya,
	Thomas Gleixner, linux-kernel

CONFIG_AS_CFI_SIGNAL_FRAME is never defined for ARC.

Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 arch/arc/kernel/unwind.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arc/kernel/unwind.c b/arch/arc/kernel/unwind.c
index 27ea64b1fa33..f87758a6851b 100644
--- a/arch/arc/kernel/unwind.c
+++ b/arch/arc/kernel/unwind.c
@@ -1178,11 +1178,9 @@ int arc_unwind(struct unwind_frame_info *frame)
 #endif
 
 	/* update frame */
-#ifndef CONFIG_AS_CFI_SIGNAL_FRAME
 	if (frame->call_frame
 	    && !UNW_DEFAULT_RA(state.regs[retAddrReg], state.dataAlign))
 		frame->call_frame = 0;
-#endif
 	cfa = FRAME_REG(state.cfa.reg, unsigned long) + state.cfa.offs;
 	startLoc = min_t(unsigned long, UNW_SP(frame), cfa);
 	endLoc = max_t(unsigned long, UNW_SP(frame), cfa);
-- 
2.25.1


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

end of thread, other threads:[~2020-04-13 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-13  2:05 [PATCH] arc: remove #ifndef CONFIG_AS_CFI_SIGNAL_FRAME Masahiro Yamada
2020-04-13  5:38 ` Vineet Gupta
2020-04-13  6:01   ` Masahiro Yamada
2020-04-13 18:20 ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox