x86: Fix sparse non-ANSI function warnings in smpboot.c
authorRandy Dunlap <randy.dunlap@oracle.com>
Sun, 9 Jan 2011 03:59:14 +0000 (19:59 -0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Jan 2011 09:15:19 +0000 (10:15 +0100)
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'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
LKML-Reference: <20110108195914.95d366ea.randy.dunlap@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot.c

index ee886fe10ef4eb8515ae1d2431c0ce8ad3e8dd89..5fdc0950da1db2f9f9a77b7cb1e5d0286d448d2b 100644 (file)
@@ -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);
 }