• Peter Foley's avatar
    um: Make the definition of cpu_data more compatible · 2f2be510
    Peter Foley authored
    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: default avatarPeter Foley <pefoley2@pefoley.com>
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    2f2be510
processor-generic.h 2.02 KB