]> git.itanic.dy.fi Git - linux-stable/commit
sh: mcount.S: fix build error when PRINTK is not enabled
authorRandy Dunlap <rdunlap@infradead.org>
Mon, 6 Mar 2023 04:00:37 +0000 (20:00 -0800)
committerJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Thu, 23 Mar 2023 09:02:02 +0000 (10:02 +0100)
commitc2bd1e18c6f85c0027da2e5e7753b9bfd9f8e6dc
tree7f348b4f20fe77947bed975e319a233fd70c7269
parent644a9cf0d2a8340121fa8107a5fa6f27782bb080
sh: mcount.S: fix build error when PRINTK is not enabled

Fix a build error in mcount.S when CONFIG_PRINTK is not enabled.
Fixes this build error:

sh2-linux-ld: arch/sh/lib/mcount.o: in function `stack_panic':
(.text+0xec): undefined reference to `dump_stack'

Fixes: e460ab27b6c3 ("sh: Fix up stack overflow check with ftrace disabled.")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable@vger.kernel.org
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/20230306040037.20350-8-rdunlap@infradead.org
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
arch/sh/Kconfig.debug