serial: core: Fix ifdef for serial base console functions
authorTony Lindgren <tony@atomide.com>
Sat, 13 Apr 2024 10:33:41 +0000 (13:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2024 10:44:03 +0000 (12:44 +0200)
commitb20172ca6bf489534892b801a5db41bbf5ceec75
treed92e7e815991b8c973d58608b3d22013dfabb7cc
parent1b743485e27f3d874695434cc8103f557dfdf4b9
serial: core: Fix ifdef for serial base console functions

If CONFIG_SERIAL_CORE_CONSOLE is not set, we get build errors.
Let's fix the issue by moving the endif after the serial base console
functions.

Fixes: 4547cd76f08a ("serial: 8250: Fix add preferred console for serial8250_isa_init_ports()")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404131416.VJljwvkS-lkp@intel.com/
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20240413103343.24231-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_base_bus.c