Skip to contentSkip to conversation

i386/x86_64: make __reserve_evntsel_nmi() static

PATCH In review Adrian Bunk 2 participants 2 messages Apr 4, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i386/x86_64: make __reserve_evntsel_nmi() static

__reserve_evntsel_nmi() can become static.

---

 arch/i386/kernel/nmi.c   |    2 +-
 arch/x86_64/kernel/nmi.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/i386/kernel/nmi.c renamed from arch/i386/kernel/nmi.c.old +1 -1
@@ -194,7 +194,7 @@
 	}
 }
 
-int __reserve_evntsel_nmi(int cpu, unsigned int msr)
+static int __reserve_evntsel_nmi(int cpu, unsigned int msr)
 {
 	unsigned int counter;
 	if (cpu < 0)
arch/x86_64/kernel/nmi.c renamed from arch/x86_64/kernel/nmi.c.old +1 -1
@@ -182,7 +182,7 @@
 		__release_perfctr_nmi(cpu, msr);
 }
 
-int __reserve_evntsel_nmi(int cpu, unsigned int msr)
+static int __reserve_evntsel_nmi(int cpu, unsigned int msr)
 {
 	unsigned int counter;
 	if (cpu < 0)
#1 lore raw
Quoted 1 line · Adrian Bunk

__reserve_evntsel_nmi() can become static.

It's going to die in .22 anyways, just a temporary .21 kludge.

-Andi