From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8410124484133014407==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1744:11: error: dereferencing pointer to incomplete type 'struct cpuinfo_x86' Date: Sat, 12 Feb 2022 01:57:17 +0800 Message-ID: <202202111942.s5hvtoIO-lkp@intel.com> List-Id: --===============8410124484133014407== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Koba, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: f1baf68e1383f6ed93eb9cff2866d46562607a43 commit: b3dc549986eb7b38eba4a144e979dc93f386751f drm/amdgpu: Disable PCIE_D= PM on Intel RKL Platform date: 6 months ago config: um-allmodconfig (https://download.01.org/0day-ci/archive/20220211/2= 02202111942.s5hvtoIO-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t/commit/?id=3Db3dc549986eb7b38eba4a144e979dc93f386751f git remote add linus https://git.kernel.org/pub/scm/linux/kernel/gi= t/torvalds/linux.git git fetch --no-tags linus master git checkout b3dc549986eb7b38eba4a144e979dc93f386751f # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Dum SHELL=3D/bin/bash drivers/gpu/dr= m/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/x86/um/asm/processor.h:41, from include/linux/spinlock_up.h:8, from include/linux/spinlock.h:92, from include/linux/mmzone.h:8, from include/linux/gfp.h:6, from include/linux/slab.h:15, from drivers/gpu/drm/amd/amdgpu/../pm/inc/pp_debug.h:35, from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/s= mu7_hwmgr.c:23: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c: In functi= on 'intel_core_rkl_chk': arch/um/include/asm/processor-generic.h:104:19: error: called object is = not a function or function pointer 104 | #define cpu_data (&boot_cpu_data) | ~^~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1742:27: n= ote: in expansion of macro 'cpu_data' 1742 | struct cpuinfo_x86 *c =3D &cpu_data(0); | ^~~~~~~~ >> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1744:11: e= rror: dereferencing pointer to incomplete type 'struct cpuinfo_x86' 1744 | return (c->x86 =3D=3D 6 && c->x86_model =3D=3D INTEL_FAM6_ROCKE= TLAKE); | ^~ drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1748:1: er= ror: control reaches end of non-void function [-Werror=3Dreturn-type] 1748 | } | ^ cc1: some warnings being treated as errors vim +1744 drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c 1738 = 1739 static bool intel_core_rkl_chk(void) 1740 { 1741 #if IS_ENABLED(CONFIG_X86_64) 1742 struct cpuinfo_x86 *c =3D &cpu_data(0); 1743 = > 1744 return (c->x86 =3D=3D 6 && c->x86_model =3D=3D INTEL_FAM6_ROCKETLAK= E); 1745 #else 1746 return false; 1747 #endif 1748 } 1749 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8410124484133014407==--