Skip to content

Commit 375bc91

Browse files
alexandrebelloniGreg Ungerer
authored andcommitted
m68k: pull mach_beep in setup.c
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 <alexandre.belloni@free-electrons.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
1 parent b47c7b6 commit 375bc91

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎arch/m68k/kernel/setup.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
#else
55
#include "setup_no.c"
66
#endif
7+
8+
#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
9+
void (*mach_beep)(unsigned int, unsigned int);
10+
EXPORT_SYMBOL(mach_beep);
11+
#endif

‎arch/m68k/kernel/setup_mm.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ EXPORT_SYMBOL(mach_heartbeat);
106106
#ifdef CONFIG_M68K_L2_CACHE
107107
void (*mach_l2_flush) (int);
108108
#endif
109-
#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP)
110-
void (*mach_beep)(unsigned int, unsigned int);
111-
EXPORT_SYMBOL(mach_beep);
112-
#endif
113109
#if defined(CONFIG_ISA) && defined(MULTI_ISA)
114110
int isa_type;
115111
int isa_sex;

0 commit comments

Comments
 (0)