Skip to content

Commit 5759b57

Browse files
Al Viroarndb
authored andcommitted
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: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent b973afe commit 5759b57

8 files changed

Lines changed: 17 additions & 15 deletions

File tree

arch/alpha/kernel/core_cia.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ cia_pci_tbi(struct pci_controller *hose, dma_addr_t start, dma_addr_t end)
280280
#define CIA_BROKEN_TBIA_SIZE 1024
281281

282282
/* Always called with interrupts disabled */
283-
void
283+
static void
284284
cia_pci_tbi_try2(struct pci_controller *hose,
285285
dma_addr_t start, dma_addr_t end)
286286
{
@@ -576,7 +576,7 @@ struct
576576
} window[4];
577577
} saved_config __attribute((common));
578578

579-
void
579+
static void
580580
cia_save_srm_settings(int is_pyxis)
581581
{
582582
int i;
@@ -602,7 +602,7 @@ cia_save_srm_settings(int is_pyxis)
602602
mb();
603603
}
604604

605-
void
605+
static void
606606
cia_restore_srm_settings(void)
607607
{
608608
int i;

arch/alpha/kernel/core_marvel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ marvel_init_io7(struct io7 *io7)
355355
}
356356
}
357357

358-
void __init
358+
static void __init
359359
marvel_io7_present(gct6_node *node)
360360
{
361361
int pe;

arch/alpha/kernel/core_wildfire.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ unsigned long wildfire_pca_mask;
5959
unsigned long wildfire_cpu_mask;
6060
unsigned long wildfire_mem_mask;
6161

62-
void __init
62+
static void __init
6363
wildfire_init_hose(int qbbno, int hoseno)
6464
{
6565
struct pci_controller *hose;
@@ -137,7 +137,7 @@ wildfire_init_hose(int qbbno, int hoseno)
137137
wildfire_pci_tbi(hose, 0, 0); /* Flush TLB at the end. */
138138
}
139139

140-
void __init
140+
static void __init
141141
wildfire_init_pca(int qbbno, int pcano)
142142
{
143143

@@ -154,7 +154,7 @@ wildfire_init_pca(int qbbno, int pcano)
154154
wildfire_init_hose(qbbno, (pcano << 1) + 1);
155155
}
156156

157-
void __init
157+
static void __init
158158
wildfire_init_qbb(int qbbno)
159159
{
160160
int pcano;
@@ -176,7 +176,7 @@ wildfire_init_qbb(int qbbno)
176176
}
177177
}
178178

179-
void __init
179+
static void __init
180180
wildfire_hardware_probe(void)
181181
{
182182
unsigned long temp;

arch/alpha/kernel/perf_event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr,
870870
/*
871871
* Init call to initialise performance events at kernel startup.
872872
*/
873-
int __init init_hw_perf_events(void)
873+
static int __init init_hw_perf_events(void)
874874
{
875875
pr_info("Performance events: ");
876876

arch/alpha/kernel/smc37c669.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2430,13 +2430,15 @@ int __init smcc669_write( struct FILE *fp, int size, int number, unsigned char *
24302430
}
24312431
#endif
24322432

2433-
void __init
2433+
#if SMC_DEBUG
2434+
static void __init
24342435
SMC37c669_dump_registers(void)
24352436
{
24362437
int i;
24372438
for (i = 0; i <= 0x29; i++)
24382439
printk("-- CR%02x : %02x\n", i, SMC37c669_read_config(i));
24392440
}
2441+
#endif
24402442
/*+
24412443
* ============================================================================
24422444
* = SMC_init - SMC37c669 Super I/O controller initialization =

arch/alpha/kernel/sys_nautilus.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ nautilus_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
7878
return irq;
7979
}
8080

81-
void
81+
static void
8282
nautilus_kill_arch(int mode)
8383
{
8484
struct pci_bus *bus = pci_isa_hose->bus;
@@ -127,7 +127,7 @@ naut_sys_machine_check(unsigned long vector, unsigned long la_ptr,
127127
/* Machine checks can come from two sources - those on the CPU and those
128128
in the system. They are analysed separately but all starts here. */
129129

130-
void
130+
static void
131131
nautilus_machine_check(unsigned long vector, unsigned long la_ptr)
132132
{
133133
char *mchk_class;
@@ -197,7 +197,7 @@ static struct resource busn_resource = {
197197
.flags = IORESOURCE_BUS,
198198
};
199199

200-
void __init
200+
static void __init
201201
nautilus_init_pci(void)
202202
{
203203
struct pci_controller *hose = hose_head;

arch/alpha/kernel/sys_sio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ alphabook1_init_pci(void)
310310
outb(0x0f, 0x3ce); outb(orig, 0x3cf); /* (re)lock PR0-4 */
311311
}
312312

313-
void
313+
static void
314314
sio_kill_arch(int mode)
315315
{
316316
#if defined(ALPHA_RESTORE_SRM_SETUP)

drivers/char/agp/alpha-agp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ struct agp_bridge_driver alpha_core_agp_driver = {
149149

150150
struct agp_bridge_data *alpha_bridge;
151151

152-
int __init
152+
static int __init
153153
alpha_core_agp_setup(void)
154154
{
155155
alpha_agp_info *agp = alpha_mv.agp_info();

0 commit comments

Comments
 (0)