[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1481171829-116496-2-git-send-email-arei.gonglei@huawei.com>
Date: Thu, 8 Dec 2016 12:37:08 +0800
From: Gonglei <arei.gonglei@...wei.com>
To: <linux-kernel@...r.kernel.org>, <qemu-devel@...gnu.org>,
<virtio-dev@...ts.oasis-open.org>,
<virtualization@...ts.linux-foundation.org>,
<linux-crypto@...r.kernel.org>
CC: <luonengjun@...wei.com>, <mst@...hat.com>, <stefanha@...hat.com>,
<weidong.huang@...wei.com>, <wu.wubin@...wei.com>,
<xin.zeng@...el.com>, <claudio.fontana@...wei.com>,
<herbert@...dor.apana.org.au>, <pasic@...ux.vnet.ibm.com>,
<davem@...emloft.net>, <jianjay.zhou@...wei.com>,
<hanweidong@...wei.com>, <arei.gonglei@...mail.com>,
<cornelia.huck@...ibm.com>, <xuquan8@...wei.com>,
<longpeng2@...wei.com>, <wanzongshun@...wei.com>,
Gonglei <arei.gonglei@...wei.com>,
Sam Ravnborg <sam@...nborg.org>, <sparclinux@...r.kernel.org>
Subject: [PATCH v6 1/2] sparc: fix a building error reported by kbuild
>> arch/sparc/include/asm/topology_64.h:44:44:
error: implicit declaration of function 'cpu_data'
[-Werror=implicit-function-declaration]
#define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id)
^
Let's include cpudata.h in topology_64.h.
Cc: Sam Ravnborg <sam@...nborg.org>
Cc: David S. Miller <davem@...emloft.net>
Cc: sparclinux@...r.kernel.org
Suggested-by: Sam Ravnborg <sam@...nborg.org>
Signed-off-by: Gonglei <arei.gonglei@...wei.com>
---
arch/sparc/include/asm/topology_64.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index 7b4898a..2255430 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -4,6 +4,7 @@
#ifdef CONFIG_NUMA
#include <asm/mmzone.h>
+#include <asm/cpudata.h>
static inline int cpu_to_node(int cpu)
{
--
1.8.3.1
Powered by blists - more mailing lists