[-mm patch] arch/i386/kernel/cpu/: make tons of functions static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 03, 2006 at 12:07:04AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.15-mm4:
>...
> +i386-cpu-hotplug-dont-access-freed-memory.patch
> 
>  init sectoin fix
>...


Functions only used in the files they are defined in should be static.


Signed-off-by: Adrian Bunk <[email protected]>

---

 arch/i386/kernel/cpu/amd.c       |    2 +-
 arch/i386/kernel/cpu/centaur.c   |    2 +-
 arch/i386/kernel/cpu/cyrix.c     |    4 ++--
 arch/i386/kernel/cpu/nexgen.c    |    2 +-
 arch/i386/kernel/cpu/rise.c      |    2 +-
 arch/i386/kernel/cpu/transmeta.c |    2 +-
 arch/i386/kernel/cpu/umc.c       |    2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)

--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/amd.c.old	2006-02-03 16:14:11.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/amd.c	2006-02-03 16:14:24.000000000 +0100
@@ -283,7 +283,7 @@
 
 //early_arch_initcall(amd_init_cpu);
 
-int __init amd_exit_cpu(void)
+static int __init amd_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_AMD] = NULL;
 	return 0;
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/centaur.c.old	2006-02-03 16:14:32.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/centaur.c	2006-02-03 16:14:42.000000000 +0100
@@ -471,7 +471,7 @@
 
 //early_arch_initcall(centaur_init_cpu);
 
-int __init centaur_exit_cpu(void)
+static int __init centaur_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_CENTAUR] = NULL;
 	return 0;
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/cyrix.c.old	2006-02-03 16:15:00.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/cyrix.c	2006-02-03 16:15:21.000000000 +0100
@@ -444,7 +444,7 @@
 
 //early_arch_initcall(cyrix_init_cpu);
 
-int __init cyrix_exit_cpu(void)
+static int __init cyrix_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_CYRIX] = NULL;
 	return 0;
@@ -467,7 +467,7 @@
 
 //early_arch_initcall(nsc_init_cpu);
 
-int __init nsc_exit_cpu(void)
+static int __init nsc_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_NSC] = NULL;
 	return 0;
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/nexgen.c.old	2006-02-03 16:15:38.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/nexgen.c	2006-02-03 16:15:44.000000000 +0100
@@ -62,7 +62,7 @@
 
 //early_arch_initcall(nexgen_init_cpu);
 
-int __init nexgen_exit_cpu(void)
+static int __init nexgen_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_NEXGEN] = NULL;
 	return 0;
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/rise.c.old	2006-02-03 16:15:57.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/rise.c	2006-02-03 16:16:27.000000000 +0100
@@ -52,7 +52,7 @@
 
 //early_arch_initcall(rise_init_cpu);
 
-int __init rise_exit_cpu(void)
+static int __init rise_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_RISE] = NULL;
 	return 0;
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/transmeta.c.old	2006-02-03 16:16:37.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/transmeta.c	2006-02-03 16:16:50.000000000 +0100
@@ -112,7 +112,7 @@
 
 //early_arch_initcall(transmeta_init_cpu);
 
-int __init transmeta_exit_cpu(void)
+static int __init transmeta_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_TRANSMETA] = NULL;
 	return 0;
--- linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/umc.c.old	2006-02-03 16:17:02.000000000 +0100
+++ linux-2.6.16-rc1-mm5-full/arch/i386/kernel/cpu/umc.c	2006-02-03 16:17:12.000000000 +0100
@@ -32,7 +32,7 @@
 
 //early_arch_initcall(umc_init_cpu);
 
-int __init umc_exit_cpu(void)
+static int __init umc_exit_cpu(void)
 {
 	cpu_devs[X86_VENDOR_UMC] = NULL;
 	return 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux