mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
d191723fee
Fix following warnings: setup_32.c:106:15: warning: symbol 'cmdline_memory_size' was not declared. Should it be static? setup_32.c:270:16: warning: symbol 'fake_swapper_regs' was not declared. Should it be static? setup_32.c:368:55: warning: Using plain integer as NULL pointer Add missing declaration of cmdline_memory_size and remove the local one in init_32.c fake_swapper_regs was only used locally - so defined static. When replacing 0 with NULL also add a few spaces around operators Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
49 lines
956 B
C
49 lines
956 B
C
/*
|
|
* Just a place holder.
|
|
*/
|
|
#ifndef _SPARC_SETUP_H
|
|
#define _SPARC_SETUP_H
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <uapi/asm/setup.h>
|
|
|
|
extern char reboot_command[];
|
|
|
|
#ifdef CONFIG_SPARC32
|
|
/* The CPU that was used for booting
|
|
* Only sun4d + leon may have boot_cpu_id != 0
|
|
*/
|
|
extern unsigned char boot_cpu_id;
|
|
|
|
extern unsigned long empty_zero_page;
|
|
|
|
extern int serial_console;
|
|
static inline int con_is_present(void)
|
|
{
|
|
return serial_console ? 0 : 1;
|
|
}
|
|
|
|
/* from irq_32.c */
|
|
extern volatile unsigned char *fdc_status;
|
|
extern char *pdma_vaddr;
|
|
extern unsigned long pdma_size;
|
|
extern volatile int doing_pdma;
|
|
|
|
/* This is software state */
|
|
extern char *pdma_base;
|
|
extern unsigned long pdma_areasize;
|
|
|
|
int sparc_floppy_request_irq(unsigned int irq, irq_handler_t irq_handler);
|
|
|
|
/* setup_32.c */
|
|
extern unsigned long cmdline_memory_size;
|
|
|
|
#endif
|
|
|
|
extern void sun_do_break(void);
|
|
extern int stop_a_enabled;
|
|
extern int scons_pwroff;
|
|
|
|
#endif /* _SPARC_SETUP_H */
|