lkml.org 
[lkml]   [2010]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] arch/sh: Fix wrong function prototype for native_cpu_disable
Date
From: Peter Huewe <peterhuewe@gmx.de>

This patch fixes the prototype of native_cpu_disable if
CONFIG_HOTPLUG_CPU is not set, and thus fixes a build failure[1]

References:
[1] http://kisskb.ellerman.id.au/kisskb/buildresult/2536296/

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
KernelVersion: linux-next-20100429

arch/sh/kernel/smp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index 86cd6f9..509b36b 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -161,7 +161,7 @@ int __cpu_disable(void)
return 0;
}
#else /* ... !CONFIG_HOTPLUG_CPU */
-int native_cpu_disable(void)
+int native_cpu_disable(unsigned int cpu)
{
return -ENOSYS;
}
--
1.6.4.4


\
 
 \ /
  Last update: 2010-04-29 02:59    [W:0.291 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site