OSDN Git Service

mips: unify prom_putchar() declarations
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 13 Jul 2018 15:51:56 +0000 (17:51 +0200)
committerPaul Burton <paul.burton@mips.com>
Tue, 17 Jul 2018 16:40:17 +0000 (09:40 -0700)
commit5c93316c8c2276323af2d98e9676efda7d055bee
tree44f48d7a8b8b371f6bea8a9764384a90e732b9de
parent4936084c2ee227524c242d790a9fbad7650320c7
mips: unify prom_putchar() declarations

prom_putchar() is used centrally in early printk infrastructure therefore
at least MIPS should agree on the function return type.

[paul.burton@mips.com:
  - Include linux/types.h in asm/setup.h to gain the bool typedef before
    we start include asm/setup.h elsewhere.
  - Include asm/setup.h in all files that use or define prom_putchar().
  - Also standardise on signed rather than unsigned char argument.]

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/19842/
Cc: linux-mips@linux-mips.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Jonas Gorski <jonas.gorski@gmail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: Philippe Ombredanne <pombredanne@nexb.com>
28 files changed:
arch/mips/alchemy/board-gpr.c
arch/mips/alchemy/board-mtx1.c
arch/mips/alchemy/board-xxs1500.c
arch/mips/alchemy/devboards/platform.c
arch/mips/ar7/prom.c
arch/mips/ath25/early_printk.c
arch/mips/ath79/early_printk.c
arch/mips/bcm63xx/early_printk.c
arch/mips/boot/compressed/uart-prom.c
arch/mips/cavium-octeon/setup.c
arch/mips/fw/arc/arc_con.c
arch/mips/fw/arc/promlib.c
arch/mips/fw/sni/sniprom.c
arch/mips/include/asm/setup.h
arch/mips/include/asm/sgialib.h
arch/mips/include/asm/txx9/generic.h
arch/mips/kernel/early_printk.c
arch/mips/kernel/early_printk_8250.c
arch/mips/lantiq/early_printk.c
arch/mips/lasat/prom.c
arch/mips/loongson64/common/early_printk.c
arch/mips/netlogic/common/earlycons.c
arch/mips/paravirt/serial.c
arch/mips/pic32/pic32mzda/early_console.c
arch/mips/ralink/early_printk.c
arch/mips/sgi-ip27/ip27-console.c
arch/mips/sibyte/common/cfe.c
arch/mips/txx9/generic/setup.c