Hi Alex,

kernel test robot noticed the following build errors:

[auto build test ERROR on drm-misc/drm-misc-next]
[also build test ERROR on linus/master v7.1-rc3 next-20260508]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    
https://github.com/intel-lab-lkp/linux/commits/Alex-Hung/drm-amdgpu-Remove-UML-build-exclusion-from-Kconfig/20260513-150500
base:   https://gitlab.freedesktop.org/drm/misc/kernel.git drm-misc-next
patch link:    
https://lore.kernel.org/r/20260505162018.1755740-1-alex.hung%40amd.com
patch subject: [PATCH] drm/amdgpu: Remove UML build exclusion from Kconfig
config: um-allyesconfig 
(https://download.01.org/0day-ci/archive/20260514/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): 
(https://download.01.org/0day-ci/archive/20260514/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c: In function 
'kfd_cpumask_to_apic_id':
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2353:16: error: implicit 
>> declaration of function 'cpu_data' [-Wimplicit-function-declaration]
    2353 |         return cpu_data(first_cpu_of_numa_node).topo.apicid;
         |                ^~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2353:48: error: request 
>> for member 'topo' in something not a structure or union
    2353 |         return cpu_data(first_cpu_of_numa_node).topo.apicid;
         |                                                ^
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:2357:1: warning: control 
reaches end of non-void function [-Wreturn-type]
    2357 | }
         | ^
--
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c: In function 
'kfd_fill_iolink_info_for_cpu':
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1830:34: error: implicit 
>> declaration of function 'cpu_data' [-Wimplicit-function-declaration]
    1830 |         struct cpuinfo_x86 *c = &cpu_data(0);
         |                                  ^~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1830:33: error: lvalue 
>> required as unary '&' operand
    1830 |         struct cpuinfo_x86 *c = &cpu_data(0);
         |                                 ^
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1833:14: error: invalid use 
>> of undefined type 'struct cpuinfo_x86'
    1833 |         if (c->x86_vendor == X86_VENDOR_AMD)
         |              ^~
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1833:30: error: 
>> 'X86_VENDOR_AMD' undeclared (first use in this function); did you mean 
>> 'X86_VENDOR_ANY'?
    1833 |         if (c->x86_vendor == X86_VENDOR_AMD)
         |                              ^~~~~~~~~~~~~~
         |                              X86_VENDOR_ANY
   drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_crat.c:1833:30: note: each 
undeclared identifier is reported only once for each function it appears in


vim +/cpu_data +2353 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c

851a645efd0fee7 Felix Kuehling  2017-11-27  2342  
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2343  static int 
kfd_cpumask_to_apic_id(const struct cpumask *cpumask)
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2344  {
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2345        int 
first_cpu_of_numa_node;
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2346  
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2347        if (!cpumask || cpumask 
== cpu_none_mask)
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2348                return -1;
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2349        first_cpu_of_numa_node 
= cpumask_first(cpumask);
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2350        if 
(first_cpu_of_numa_node >= nr_cpu_ids)
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2351                return -1;
df1dd4f4a7271eb Felix Kuehling  2019-01-02  2352  #ifdef CONFIG_X86_64
b9655e702dc5d85 Thomas Gleixner 2023-08-14 @2353        return 
cpu_data(first_cpu_of_numa_node).topo.apicid;
df1dd4f4a7271eb Felix Kuehling  2019-01-02  2354  #else
df1dd4f4a7271eb Felix Kuehling  2019-01-02  2355        return 
first_cpu_of_numa_node;
df1dd4f4a7271eb Felix Kuehling  2019-01-02  2356  #endif
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2357  }
520b8fb755ccfb0 Felix Kuehling  2017-12-08  2358  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Reply via email to