m68k: pull mach_beep in setup.c
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 28 Sep 2017 09:44:52 +0000 (11:44 +0200)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 5 Nov 2017 22:25:21 +0000 (08:25 +1000)
commit375bc91e634195b094aa4acb30e1d19807122eca
treef261bbc20fda53e343d2bd999e736311230277b3
parentb47c7b6f9f97f3e5596c348bea433ed09cad131d
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>
arch/m68k/kernel/setup.c
arch/m68k/kernel/setup_mm.c