summaryrefslogtreecommitdiff
path: root/arch/um/include
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@pefoley.com>2023-01-12 23:49:07 -0500
committerRichard Weinberger <richard@nod.at>2023-02-10 21:36:58 +0100
commit2f2be5102480b1058182fa6c4b1e5c1732d6760c (patch)
tree8c3035e34644e60491a558cddfa8d20e05e0c206 /arch/um/include
parent5541992e512de8c9133110809f767bd1b54ee10d (diff)
um: Make the definition of cpu_data more compatible
Match the x86 implementation to improve build errors. Noticed when building allyesconfig. e.g. ../arch/um/include/asm/processor-generic.h:94:19: error: called object is not a function or function pointer 94 | #define cpu_data (&boot_cpu_data) | ~^~~~~~~~~~~~~~~ ../drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2157:16: note: in expansion of macro ‘cpu_data’ 2157 | return cpu_data(first_cpu_of_numa_node).apicid; Signed-off-by: Peter Foley <pefoley2@pefoley.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include')
-rw-r--r--arch/um/include/asm/processor-generic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/asm/processor-generic.h b/arch/um/include/asm/processor-generic.h
index bb5f06480da9..7414154b8e9a 100644
--- a/arch/um/include/asm/processor-generic.h
+++ b/arch/um/include/asm/processor-generic.h
@@ -91,7 +91,7 @@ struct cpuinfo_um {
extern struct cpuinfo_um boot_cpu_data;
-#define cpu_data (&boot_cpu_data)
+#define cpu_data(cpu) boot_cpu_data
#define current_cpu_data boot_cpu_data
#define cache_line_size() (boot_cpu_data.cache_alignment)