Commit 5759b57f authored by Al Viro's avatar Al Viro Committed by Arnd Bergmann

alpha: don't make functions public without a reason

if it's really used only inside the same source file, make it
static...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Acked-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent b973afe9
...@@ -280,7 +280,7 @@ cia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end) ...@@ -280,7 +280,7 @@ cia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end)
#define CIA_BROKEN_TBIA_SIZE 1024 #define CIA_BROKEN_TBIA_SIZE 1024
/* Always called with interrupts disabled */ /* Always called with interrupts disabled */
void static void
cia_pci_tbi_try2(struct pci_controller *hose, cia_pci_tbi_try2(struct pci_controller *hose,
dma_addr_t start, dma_addr_t end) dma_addr_t start, dma_addr_t end)
{ {
...@@ -576,7 +576,7 @@ struct ...@@ -576,7 +576,7 @@ struct
} window[4]; } window[4];
} saved_config __attribute((common)); } saved_config __attribute((common));
void static void
cia_save_srm_settings(int is_pyxis) cia_save_srm_settings(int is_pyxis)
{ {
int i; int i;
...@@ -602,7 +602,7 @@ cia_save_srm_settings(int is_pyxis) ...@@ -602,7 +602,7 @@ cia_save_srm_settings(int is_pyxis)
mb(); mb();
} }
void static void
cia_restore_srm_settings(void) cia_restore_srm_settings(void)
{ {
int i; int i;
......
...@@ -355,7 +355,7 @@ marvel_init_io7(struct io7 *io7) ...@@ -355,7 +355,7 @@ marvel_init_io7(struct io7 *io7)
} }
} }
void __init static void __init
marvel_io7_present(gct6_node *node) marvel_io7_present(gct6_node *node)
{ {
int pe; int pe;
......
...@@ -59,7 +59,7 @@ unsigned long wildfire_pca_mask; ...@@ -59,7 +59,7 @@ unsigned long wildfire_pca_mask;
unsigned long wildfire_cpu_mask; unsigned long wildfire_cpu_mask;
unsigned long wildfire_mem_mask; unsigned long wildfire_mem_mask;
void __init static void __init
wildfire_init_hose(int qbbno, int hoseno) wildfire_init_hose(int qbbno, int hoseno)
{ {
struct pci_controller *hose; struct pci_controller *hose;
...@@ -137,7 +137,7 @@ wildfire_init_hose(int qbbno, int hoseno) ...@@ -137,7 +137,7 @@ wildfire_init_hose(int qbbno, int hoseno)
wildfire_pci_tbi(hose, 0, 0); /* Flush TLB at the end. */ wildfire_pci_tbi(hose, 0, 0); /* Flush TLB at the end. */
} }
void __init static void __init
wildfire_init_pca(int qbbno, int pcano) wildfire_init_pca(int qbbno, int pcano)
{ {
...@@ -154,7 +154,7 @@ wildfire_init_pca(int qbbno, int pcano) ...@@ -154,7 +154,7 @@ wildfire_init_pca(int qbbno, int pcano)
wildfire_init_hose(qbbno, (pcano << 1) + 1); wildfire_init_hose(qbbno, (pcano << 1) + 1);
} }
void __init static void __init
wildfire_init_qbb(int qbbno) wildfire_init_qbb(int qbbno)
{ {
int pcano; int pcano;
...@@ -176,7 +176,7 @@ wildfire_init_qbb(int qbbno) ...@@ -176,7 +176,7 @@ wildfire_init_qbb(int qbbno)
} }
} }
void __init static void __init
wildfire_hardware_probe(void) wildfire_hardware_probe(void)
{ {
unsigned long temp; unsigned long temp;
......
...@@ -870,7 +870,7 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr, ...@@ -870,7 +870,7 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr,
/* /*
* Init call to initialise performance events at kernel startup. * Init call to initialise performance events at kernel startup.
*/ */
int __init init_hw_perf_events(void) static int __init init_hw_perf_events(void)
{ {
pr_info("Performance events: "); pr_info("Performance events: ");
......
...@@ -2430,13 +2430,15 @@ int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char * ...@@ -2430,13 +2430,15 @@ int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char *
} }
#endif #endif
void __init #if SMC_DEBUG
static void __init
SMC37c669_dump_registers(void) SMC37c669_dump_registers(void)
{ {
int i; int i;
for (i = 0; i <= 0x29; i++) for (i = 0; i <= 0x29; i++)
printk("-- CR%02x : %02x\n", i, SMC37c669_read_config(i)); printk("-- CR%02x : %02x\n", i, SMC37c669_read_config(i));
} }
#endif
/*+ /*+
* ============================================================================ * ============================================================================
* = SMC_init - SMC37c669 Super I/O controller initialization = * = SMC_init - SMC37c669 Super I/O controller initialization =
......
...@@ -78,7 +78,7 @@ nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) ...@@ -78,7 +78,7 @@ nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
return irq; return irq;
} }
void static void
nautilus_kill_arch(int mode) nautilus_kill_arch(int mode)
{ {
struct pci_bus *bus = pci_isa_hose->bus; struct pci_bus *bus = pci_isa_hose->bus;
...@@ -127,7 +127,7 @@ naut_sys_machine_check(unsigned long vector, unsigned long la_ptr, ...@@ -127,7 +127,7 @@ naut_sys_machine_check(unsigned long vector, unsigned long la_ptr,
/* Machine checks can come from two sources - those on the CPU and those /* Machine checks can come from two sources - those on the CPU and those
in the system. They are analysed separately but all starts here. */ in the system. They are analysed separately but all starts here. */
void static void
nautilus_machine_check(unsigned long vector, unsigned long la_ptr) nautilus_machine_check(unsigned long vector, unsigned long la_ptr)
{ {
char *mchk_class; char *mchk_class;
...@@ -197,7 +197,7 @@ static struct resource busn_resource = { ...@@ -197,7 +197,7 @@ static struct resource busn_resource = {
.flags = IORESOURCE_BUS, .flags = IORESOURCE_BUS,
}; };
void __init static void __init
nautilus_init_pci(void) nautilus_init_pci(void)
{ {
struct pci_controller *hose = hose_head; struct pci_controller *hose = hose_head;
......
...@@ -310,7 +310,7 @@ alphabook1_init_pci(void) ...@@ -310,7 +310,7 @@ alphabook1_init_pci(void)
outb(0x0f, 0x3ce); outb(orig, 0x3cf); /* (re)lock PR0-4 */ outb(0x0f, 0x3ce); outb(orig, 0x3cf); /* (re)lock PR0-4 */
} }
void static void
sio_kill_arch(int mode) sio_kill_arch(int mode)
{ {
#if defined(ALPHA_RESTORE_SRM_SETUP) #if defined(ALPHA_RESTORE_SRM_SETUP)
......
...@@ -149,7 +149,7 @@ struct agp_bridge_driver alpha_core_agp_driver = { ...@@ -149,7 +149,7 @@ struct agp_bridge_driver alpha_core_agp_driver = {
struct agp_bridge_data *alpha_bridge; struct agp_bridge_data *alpha_bridge;
int __init static int __init
alpha_core_agp_setup(void) alpha_core_agp_setup(void)
{ {
alpha_agp_info *agp = alpha_mv.agp_info(); alpha_agp_info *agp = alpha_mv.agp_info();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment