From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA1C3C433F5 for ; Sat, 15 Jan 2022 17:55:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232492AbiAORzd (ORCPT ); Sat, 15 Jan 2022 12:55:33 -0500 Received: from mga06.intel.com ([134.134.136.31]:49963 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbiAORzc (ORCPT ); Sat, 15 Jan 2022 12:55:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642269332; x=1673805332; h=date:from:to:cc:subject:message-id:mime-version; bh=8s9SVssZxIk+GfXxfhVC5EsiHKVnghpOADH+0R51LjM=; b=AiX0hWhptffSl2VkL4zrKtS6ixkCSzwA9dCDzKfAYinzmMmMC0GmY3NU JfNtFMNmGKgxUnmCoVp9hf0acgsENVx3iIy3ebN9dKcJRNC32EKbXlrZo tV3oZJTuGVeQX8t4gqa60/PupTy6a5cnxdrhwNw+ClGYwRtQh1QJTszT0 zhZ37/41UH8NLMeT0R2FBb73kw3tkZVmYDGYnqUybujnlS0lVsp59mj2u OfUwJV9IjKOAZfP68BQuWeDGK+Txqrx/xniHj+ze2D3p9bRuArgPYZ9vI r8ruYD0bArtIVMJN0OYVGQWTU4rjXN3LQIYvR16UpXA5XhYy/HdQx1TiN Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10228"; a="305161449" X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="305161449" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2022 09:55:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,290,1635231600"; d="scan'208";a="473998225" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 15 Jan 2022 09:55:30 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n8nGz-000ABL-Rf; Sat, 15 Jan 2022 17:55:29 +0000 Date: Sun, 16 Jan 2022 01:54:49 +0800 From: kernel test robot To: Koba Ko Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Alex Deucher Subject: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1744:11: error: dereferencing pointer to incomplete type 'struct cpuinfo_x86' Message-ID: <202201160101.FJp6OaWl-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Koba, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: a33f5c380c4bd3fa5278d690421b72052456d9fe commit: b3dc549986eb7b38eba4a144e979dc93f386751f drm/amdgpu: Disable PCIE_DPM on Intel RKL Platform date: 5 months ago config: um-allmodconfig (https://download.01.org/0day-ci/archive/20220116/202201160101.FJp6OaWl-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b3dc549986eb7b38eba4a144e979dc93f386751f git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/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=1 O=build_dir ARCH=um SHELL=/bin/bash drivers/gpu/drm/ 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/smu7_hwmgr.c:23: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c: In function '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: note: in expansion of macro 'cpu_data' 1742 | struct cpuinfo_x86 *c = &cpu_data(0); | ^~~~~~~~ >> drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1744:11: error: dereferencing pointer to incomplete type 'struct cpuinfo_x86' 1744 | return (c->x86 == 6 && c->x86_model == INTEL_FAM6_ROCKETLAKE); | ^~ drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:1748:1: error: control reaches end of non-void function [-Werror=return-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 = &cpu_data(0); 1743 > 1744 return (c->x86 == 6 && c->x86_model == INTEL_FAM6_ROCKETLAKE); 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@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0261929733422500401==" 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: Sun, 16 Jan 2022 01:54:49 +0800 Message-ID: <202201160101.FJp6OaWl-lkp@intel.com> List-Id: --===============0261929733422500401== 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: a33f5c380c4bd3fa5278d690421b72052456d9fe commit: b3dc549986eb7b38eba4a144e979dc93f386751f drm/amdgpu: Disable PCIE_D= PM on Intel RKL Platform date: 5 months ago config: um-allmodconfig (https://download.01.org/0day-ci/archive/20220116/2= 02201160101.FJp6OaWl-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 --===============0261929733422500401==--