* [PATCH] x86: fix sparse non-ANSI function warnings in smpboot.c
@ 2011-01-09 3:59 Randy Dunlap
2011-01-09 21:12 ` [tip:x86/urgent] x86: Fix " tip-bot for Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2011-01-09 3:59 UTC (permalink / raw)
To: lkml; +Cc: x86
From: Randy Dunlap <randy.dunlap@oracle.com>
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>
Cc: x86@kernel.org
---
arch/x86/kernel/smpboot.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- lnx0107.orig/arch/x86/kernel/smpboot.c
+++ lnx0107/arch/x86/kernel/smpboot.c
@@ -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);
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [tip:x86/urgent] x86: Fix sparse non-ANSI function warnings in smpboot.c
2011-01-09 3:59 [PATCH] x86: fix sparse non-ANSI function warnings in smpboot.c Randy Dunlap
@ 2011-01-09 21:12 ` tip-bot for Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Randy Dunlap @ 2011-01-09 21:12 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, tglx, randy.dunlap, mingo
Commit-ID: 91d88ce22bca3dcf269661b54d4ea75576dc4e29
Gitweb: http://git.kernel.org/tip/91d88ce22bca3dcf269661b54d4ea75576dc4e29
Author: Randy Dunlap <randy.dunlap@oracle.com>
AuthorDate: Sat, 8 Jan 2011 19:59:14 -0800
Committer: Ingo Molnar <mingo@elte.hu>
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'
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 | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index ee886fe..5fdc095 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -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);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-09 21:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-09 3:59 [PATCH] x86: fix sparse non-ANSI function warnings in smpboot.c Randy Dunlap
2011-01-09 21:12 ` [tip:x86/urgent] x86: Fix " tip-bot for Randy Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.