1
linux/arch/m68k/hp300
Geert Uytterhoeven 85725449f3 serial: 8250: Move hp300_setup_serial_console() to <linux/serial_8250.h>
If CONFIG_SERIAL_8250_HP300=y and CONFIG_SERIAL_8250_CONSOLE=y (e.g.
m68k/allyesconfig):

    drivers/tty/serial/8250/8250_hp300.c:91:12: error: no previous prototype for ‘hp300_setup_serial_console’ [-Werror=missing-prototypes]
       91 | int __init hp300_setup_serial_console(void)
	  |            ^~~~~~~~~~~~~~~~~~~~~~~~~~

Fix this by moving the existing prototype in arch/m68k/hp300/config.c to
<linux/serial_8250.h>, so it is visible to both caller and implementor.
While at it, provide a dummy in case CONFIG_SERIAL_8250_CONSOLE is not
enabled, to reduce #ifdef clutter in the caller.

Exposed by commit 0fcb70851f ("Makefile.extrawarn: turn on
missing-prototypes globally").

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/c17469f8e47b2ef49234a85a7a14882ddf374e41.1704892597.git.geert@linux-m68k.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-27 19:01:39 -08:00
..
config.c serial: 8250: Move hp300_setup_serial_console() to <linux/serial_8250.h> 2024-01-27 19:01:39 -08:00
hp300map.map
Makefile
README.hp300
reboot.S
time.c m68k: hp300: Include "time.h" for hp300_sched_init() 2023-10-06 10:03:03 +02:00
time.h

HP300 notes
-----------

The Linux/HP web page is at <http://www.tazenda.demon.co.uk/phil/linux-hp/>

Currently only 9000/340 machines have been tested.  Any amount of RAM should
work now but I've only tried 16MB and 12MB.

The serial console is probably broken at the moment but the Topcat/HIL keyboard
combination seems to work for me.  Your mileage may vary.

The LANCE driver works after a fashion but only if you reset the chip before
every packet.  This doesn't make for very speedy operation.