WSL2-Linux-Kernel/arch/sh/boards
Randy Dunlap acaf892ecb sh: fix multiple function definition build errors
Many of the sh CPU-types have their own plat_irq_setup() and
arch_init_clk_ops() functions, so these same (empty) functions in
arch/sh/boards/of-generic.c are not needed and cause build errors.

If there is some case where these empty functions are needed, they can
be retained by marking them as "__weak" while at the same time making
builds that do not need them succeed.

Fixes these build errors:

arch/sh/boards/of-generic.o: In function `plat_irq_setup':
(.init.text+0x134): multiple definition of `plat_irq_setup'
arch/sh/kernel/cpu/sh2/setup-sh7619.o:(.init.text+0x30): first defined here
arch/sh/boards/of-generic.o: In function `arch_init_clk_ops':
(.init.text+0x118): multiple definition of `arch_init_clk_ops'
arch/sh/kernel/cpu/sh2/clock-sh7619.o:(.init.text+0x0): first defined here

Link: http://lkml.kernel.org/r/9ee4e0c5-f100-86a2-bd4d-1d3287ceab31@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-04-05 16:02:31 -10:00
..
mach-ap325rxa memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
mach-cayman sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-dreamcast Merge branch 'akpm' (patches from Andrew) 2018-12-28 16:55:46 -08:00
mach-ecovec24 memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
mach-highlander sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-hp6xx sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-kfr2r09 memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
mach-landisk sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-lboxre2 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-microdev sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-migor memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
mach-r2d sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-rsk sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-sdk7780 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-sdk7786 sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-se memblock: memblock_phys_alloc(): don't panic 2019-03-12 10:04:01 -07:00
mach-sh03 Merge branch 'akpm' (patches from Andrew) 2018-12-28 16:55:46 -08:00
mach-sh7763rdp sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
mach-x3proto sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
Kconfig PCI: consolidate PCI config entry in drivers/pci 2018-11-23 11:45:34 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-apsh4a3a.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-apsh4ad0a.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-edosk7705.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-edosk7760.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-espt.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-magicpanelr2.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-polaris.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-secureedge5410.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-sh2007.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-sh7757lcr.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-sh7785lcr.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-shmin.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board-titan.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
board-urquell.c sh: boards: convert to SPDX identifiers 2018-12-28 12:11:44 -08:00
of-generic.c sh: fix multiple function definition build errors 2019-04-05 16:02:31 -10:00