Skip to content

Commit

Permalink
sparc: fix a building error reported by kbuild
Browse files Browse the repository at this point in the history
>> 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]>
  • Loading branch information
gongleiarei authored and davem330 committed Dec 12, 2016
1 parent acff7fd commit 541cc39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/include/asm/topology_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#ifdef CONFIG_NUMA

#include <asm/mmzone.h>
#include <asm/cpudata.h>

static inline int cpu_to_node(int cpu)
{
Expand Down

0 comments on commit 541cc39

Please sign in to comment.