Skip to contentSkip to conversation

x86: fix sparse non-ANSI function warnings in smpboot.c

PATCH In review Randy Dunlap 1 participant 2 messages Jan 9, 2011 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix sparse non-ANSI function warnings in smpboot.c

From: Randy Dunlap <[email protected]>

Fix sparse warning for non-ANSI function declaration:

arch/x86/kernel/smpboot.c:100:30: warning: non-ANSI function declaration of function 'cpu_hotplug_driver_lock' arch/x86/kernel/smpboot.c:105:32: warning: non-ANSI function declaration of function 'cpu_hotplug_driver_unlock'

---
 arch/x86/kernel/smpboot.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/smpboot.c +2 -2
@@ -97,12 +97,12 @@ static DEFINE_PER_CPU(struct task_struct
  */
 static DEFINE_MUTEX(x86_cpu_hotplug_driver_mutex);
 
-void cpu_hotplug_driver_lock()
+void cpu_hotplug_driver_lock(void)
 {
         mutex_lock(&x86_cpu_hotplug_driver_mutex);
 }
 
-void cpu_hotplug_driver_unlock()
+void cpu_hotplug_driver_unlock(void)
 {
         mutex_unlock(&x86_cpu_hotplug_driver_mutex);
 }
#1 lore raw

[tip:x86/urgent] x86: Fix sparse non-ANSI function warnings in smpboot.c

Commit-ID:  91d88ce22bca3dcf269661b54d4ea75576dc4e29
Gitweb:     http://git.kernel.org/tip/91d88ce22bca3dcf269661b54d4ea75576dc4e29
Author:     Randy Dunlap <[email protected]>
AuthorDate: Sat, 8 Jan 2011 19:59:14 -0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Sun, 9 Jan 2011 10:15:19 +0100

x86: Fix sparse non-ANSI function warnings in smpboot.c

Fix sparse warning for non-ANSI function declaration:

arch/x86/kernel/smpboot.c:100:30: warning: non-ANSI function declaration of function 'cpu_hotplug_driver_lock' arch/x86/kernel/smpboot.c:105:32: warning: non-ANSI function declaration of function 'cpu_hotplug_driver_unlock'

LKML-Reference: <[email protected]>

---
 arch/x86/kernel/smpboot.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/kernel/smpboot.c +2 -2
index ee886fe..5fdc095 100644
@@ -97,12 +97,12 @@ static DEFINE_PER_CPU(struct task_struct *, idle_thread_array);
  */
 static DEFINE_MUTEX(x86_cpu_hotplug_driver_mutex);
 
-void cpu_hotplug_driver_lock()
+void cpu_hotplug_driver_lock(void)
 {
         mutex_lock(&x86_cpu_hotplug_driver_mutex);
 }
 
-void cpu_hotplug_driver_unlock()
+void cpu_hotplug_driver_unlock(void)
 {
         mutex_unlock(&x86_cpu_hotplug_driver_mutex);
 }