]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: RB532: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE
authorMatt Redfearn <matt.redfearn@mips.com>
Tue, 14 Nov 2017 15:44:22 +0000 (15:44 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 10 Jan 2018 15:38:11 +0000 (16:38 +0100)
commit2055247dfff6586b13f636407719fc67755ca352
treee44219421a900ab6c7d0d81e5e22d3da79cd1785
parent1a2c4adedae8456e051f6a196f817d226c8a90fe
MIPS: RB532: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE

Currently MIPS allnoconfig with CONFIG_MIKROTIK_RB532=y fails to link due to
missing support for early_serial_setup():

  LD      vmlinux
arch/mips/rb532/serial.o: In function `setup_serial_port':
serial.c:(.init.text+0x14): undefined reference to `early_serial_setup'

Rather than adding dependencies to the platform to force inclusion of
SERIAL_8250_CONSOLE together with it's dependencies like TTY, HAS_IOMEM,
etc, just exclude arch/mips/rb532/serial.c from the build when it's
dependency is not selected in the kernel config.

Reported-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Cc: James Hogan <james.hogan@mips.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/17701/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/rb532/Makefile