mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
c50b1fc110
When building with W=1: arch/m68k/sun3/idprom.c:86:6: warning: no previous prototype for ‘sun3_get_model’ [-Wmissing-prototypes] 86 | void sun3_get_model(char *model) | ^~~~~~~~~~~~~~ arch/m68k/sun3/config.c:53:24: warning: no previous prototype for ‘sun3_init’ [-Wmissing-prototypes] 53 | asmlinkage void __init sun3_init(void) | ^~~~~~~~~ arch/m68k/sun3/mmu_emu.c:117:6: warning: no previous prototype for ‘print_pte_vaddr’ [-Wmissing-prototypes] 117 | void print_pte_vaddr (unsigned long vaddr) | ^~~~~~~~~~~~~~~ arch/m68k/sun3/mmu_emu.c:126:13: warning: no previous prototype for ‘mmu_emu_init’ [-Wmissing-prototypes] 126 | void __init mmu_emu_init(unsigned long bootmem_end) | ^~~~~~~~~~~~ arch/m68k/sun3/mmu_emu.c:353:5: warning: no previous prototype for ‘mmu_emu_handle_fault’ [-Wmissing-prototypes] 353 | int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault) | ^~~~~~~~~~~~~~~~~~~~ arch/m68k/sun3/leds.c:6:6: warning: no previous prototype for ‘sun3_leds’ [-Wmissing-prototypes] 6 | void sun3_leds(unsigned char byte) | ^~~~~~~~~ arch/m68k/sun3/intersil.c:27:5: warning: no previous prototype for ‘sun3_hwclk’ [-Wmissing-prototypes] 27 | int sun3_hwclk(int set, struct rtc_time *t) | ^~~~~~~~~~ arch/m68k/sun3x/config.c:30:6: warning: no previous prototype for ‘sun3_leds’ [-Wmissing-prototypes] 30 | void sun3_leds(unsigned char byte) | ^~~~~~~~~ Fix this by introducing a new header file "sun3.h" for holding the prototypes of functions implemented in arch/m68k/sun3/ and arch/m68k/sun3x/. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/87856ef9ef8955f459fb691faca921c0a688bc80.1694613528.git.geert@linux-m68k.org
76 lines
1.4 KiB
C
76 lines
1.4 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Setup kernel for a Sun3x machine
|
|
*
|
|
* (C) 1999 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
|
|
*
|
|
* based on code from Oliver Jowett <oliver@jowett.manawatu.gen.nz>
|
|
*/
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/seq_file.h>
|
|
#include <linux/console.h>
|
|
#include <linux/init.h>
|
|
|
|
#include <asm/machdep.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/sun3xprom.h>
|
|
#include <asm/sun3ints.h>
|
|
#include <asm/setup.h>
|
|
#include <asm/oplib.h>
|
|
#include <asm/config.h>
|
|
|
|
#include "time.h"
|
|
#include "../sun3/sun3.h"
|
|
|
|
volatile char *clock_va;
|
|
|
|
void sun3_leds(unsigned char byte)
|
|
{
|
|
|
|
}
|
|
|
|
static void sun3x_get_hardware_list(struct seq_file *m)
|
|
{
|
|
seq_printf(m, "PROM Revision:\t%s\n", romvec->pv_monid);
|
|
}
|
|
|
|
/*
|
|
* Setup the sun3x configuration info
|
|
*/
|
|
void __init config_sun3x(void)
|
|
{
|
|
|
|
sun3x_prom_init();
|
|
|
|
mach_sched_init = sun3x_sched_init;
|
|
mach_init_IRQ = sun3_init_IRQ;
|
|
|
|
mach_reset = sun3x_reboot;
|
|
|
|
mach_hwclk = sun3x_hwclk;
|
|
mach_get_model = sun3_get_model;
|
|
mach_get_hardware_list = sun3x_get_hardware_list;
|
|
|
|
sun3_intreg = (unsigned char *)SUN3X_INTREG;
|
|
|
|
/* only the serial console is known to work anyway... */
|
|
#if 0
|
|
switch (*(unsigned char *)SUN3X_EEPROM_CONS) {
|
|
case 0x10:
|
|
serial_console = 1;
|
|
conswitchp = NULL;
|
|
break;
|
|
case 0x11:
|
|
serial_console = 2;
|
|
conswitchp = NULL;
|
|
break;
|
|
default:
|
|
serial_console = 0;
|
|
break;
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|