* [-mm patch] init/calibrate.c: make a function static
@ 2005-05-06 21:29 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-05-06 21:29 UTC (permalink / raw)
To: Venkatesh Pallipadi; +Cc: linux-kernel
This patch makes a needlessly global function static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc3-mm2-full/init/calibrate.c.old 2005-05-03 07:30:39.000000000 +0200
+++ linux-2.6.12-rc3-mm2-full/init/calibrate.c 2005-05-03 07:31:15.000000000 +0200
@@ -29,7 +29,7 @@
#define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100))
#define MAX_DIRECT_CALIBRATION_RETRIES 5
-unsigned long __devinit calibrate_delay_direct(void)
+static unsigned long __devinit calibrate_delay_direct(void)
{
unsigned long pre_start, start, post_start;
unsigned long pre_end, end, post_end;
@@ -102,7 +102,7 @@
return 0;
}
#else
-unsigned long __devinit calibrate_delay_direct(void) {return 0;}
+static unsigned long __devinit calibrate_delay_direct(void) {return 0;}
#endif
/*
^ permalink raw reply [flat|nested] 2+ messages in thread
* [-mm patch] init/calibrate.c: make a function static
@ 2005-05-13 0:47 Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-05-13 0:47 UTC (permalink / raw)
To: Andrew Morton; +Cc: Venkatesh Pallipadi, linux-kernel
This patch makes a needlessly global function static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 6 May 2005
--- linux-2.6.12-rc3-mm2-full/init/calibrate.c.old 2005-05-03 07:30:39.000000000 +0200
+++ linux-2.6.12-rc3-mm2-full/init/calibrate.c 2005-05-03 07:31:15.000000000 +0200
@@ -29,7 +29,7 @@
#define DELAY_CALIBRATION_TICKS ((HZ < 100) ? 1 : (HZ/100))
#define MAX_DIRECT_CALIBRATION_RETRIES 5
-unsigned long __devinit calibrate_delay_direct(void)
+static unsigned long __devinit calibrate_delay_direct(void)
{
unsigned long pre_start, start, post_start;
unsigned long pre_end, end, post_end;
@@ -102,7 +102,7 @@
return 0;
}
#else
-unsigned long __devinit calibrate_delay_direct(void) {return 0;}
+static unsigned long __devinit calibrate_delay_direct(void) {return 0;}
#endif
/*
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-13 0:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 0:47 [-mm patch] init/calibrate.c: make a function static Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-05-06 21:29 Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox