diff mbox

sh: Fix implicit declaration of function numa_node_id

Message ID 1314335141-15887-1-git-send-email-nobuhiro.iwamatsu.yj@renesas.com (mailing list archive)
State Accepted
Headers show

Commit Message

Nobuhiro Iwamatsu Aug. 26, 2011, 5:05 a.m. UTC
CC      arch/sh/kernel/topology.o
  arch/sh/kernel/topology.c: In function ‘topology_init’:
  arch/sh/kernel/topology.c:77: error: implicit declaration of function ‘numa_node_id’

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
 arch/sh/kernel/topology.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Paul Mundt Aug. 29, 2011, 6:46 a.m. UTC | #1
On Fri, Aug 26, 2011 at 02:05:41PM +0900, Nobuhiro Iwamatsu wrote:
>   CC      arch/sh/kernel/topology.o
>   arch/sh/kernel/topology.c: In function ???topology_init???:
>   arch/sh/kernel/topology.c:77: error: implicit declaration of function ???numa_node_id???
> 
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>

Against what tree? I don't have anything this applies to.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Nobuhiro Iwamatsu Sept. 1, 2011, 9:05 p.m. UTC | #2
2011/8/29 Paul Mundt <lethal@linux-sh.org>:
> On Fri, Aug 26, 2011 at 02:05:41PM +0900, Nobuhiro Iwamatsu wrote:
>>   CC      arch/sh/kernel/topology.o
>>   arch/sh/kernel/topology.c: In function ???topology_init???:
>>   arch/sh/kernel/topology.c:77: error: implicit declaration of function ???numa_node_id???
>>
>> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
>
> Against what tree? I don't have anything this applies to.

From linux-next.  This problem is caused by the commit
d497d16880f15b3798c6e9c078ce7f9d70bbd6bc.
However, this patch is not yet applied in Linus-tree. Please apply in
my patch if applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/sh/kernel/topology.c b/arch/sh/kernel/topology.c
index ab37955..3297150 100644
--- a/arch/sh/kernel/topology.c
+++ b/arch/sh/kernel/topology.c
@@ -7,6 +7,7 @@ 
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  */
+
 #include <linux/cpu.h>
 #include <linux/cpumask.h>
 #include <linux/init.h>
@@ -14,6 +15,7 @@ 
 #include <linux/node.h>
 #include <linux/nodemask.h>
 #include <linux/export.h>
+#include <linux/topology.h>
 
 static DEFINE_PER_CPU(struct cpu, cpu_devices);