]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
m68knommu: fix undefined reference to `_init_sp'
authorGreg Ungerer <gerg@linux-m68k.org>
Fri, 13 May 2022 07:27:39 +0000 (17:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:53:58 +0000 (16:53 +0200)
commit816801876103aae9afee7b686a72068ed6afaad0
tree118a1bb28a3b3007acae62180a65d35f69084ef2
parentbcbca17f63296e1cc7fd93ee538bfba0893492a7
m68knommu: fix undefined reference to `_init_sp'

[ Upstream commit a71b9e66fee47c59b3ec34e652b5c23bc6550794 ]

When configuring a nommu classic m68k system enabling the uboot parameter
passing support (CONFIG_UBOOT) will produce the following compile error:

   m68k-linux-ld: arch/m68k/kernel/uboot.o: in function `process_uboot_commandline':
   uboot.c:(.init.text+0x32): undefined reference to `_init_sp'

The logic to support this option is only used on ColdFire based platforms
(in its head.S startup code). So make the selection of this option
depend on building for a ColdFire based platform.

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/m68k/Kconfig.machine