mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
It is possible to select INPUT_M68K_BEEP in a nommu configuration. This results in the following link error: drivers/input/misc/m68kspkr.o: In function `m68kspkr_event': m68kspkr.c:(.text+0x3a): undefined reference to `mach_beep' m68kspkr.c:(.text+0x5e): undefined reference to `mach_beep' m68kspkr.c:(.text+0x78): undefined reference to `mach_beep' drivers/input/misc/m68kspkr.o: In function `m68kspkr_init': m68kspkr.c:(.init.text+0x4): undefined reference to `mach_beep' Pull the mach_beep definition in setup.c to avoid it. Signed-off-by: Alexandre Belloni <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
12 lines
231 B
C
12 lines
231 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#ifdef CONFIG_MMU
|
|
#include "setup_mm.c"
|
|
#else
|
|
#include "setup_no.c"
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
|
|
void (*mach_beep)(unsigned int, unsigned int);
|
|
EXPORT_SYMBOL(mach_beep);
|
|
#endif
|