projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acff7fd
)
sparc: fix a building error reported by kbuild
author
Gonglei \(Arei\)
<
[email protected]
>
Thu, 8 Dec 2016 04:37:08 +0000
(12:37 +0800)
committer
David S. Miller
<
[email protected]
>
Mon, 12 Dec 2016 02:25:20 +0000
(18:25 -0800)
>> 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 <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Cc:
[email protected]
Suggested-by: Sam Ravnborg <
[email protected]
>
Signed-off-by: Gonglei <
[email protected]
>
Acked-by: Sam Ravnborg <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
arch/sparc/include/asm/topology_64.h
patch
|
blob
|
history
diff --git
a/arch/sparc/include/asm/topology_64.h
b/arch/sparc/include/asm/topology_64.h
index 7b4898a36eee8e09c125e3619188b9ba5916c6d4..225543000122777847f686d418c62e6e6b92d1a5 100644
(file)
--- 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)
{