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 0D111C433F5 for ; Sun, 22 May 2022 00:49:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348457AbiEVAtH (ORCPT ); Sat, 21 May 2022 20:49:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344016AbiEVAtA (ORCPT ); Sat, 21 May 2022 20:49:00 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74F544A3F5 for ; Sat, 21 May 2022 17:48:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653180539; x=1684716539; h=date:from:to:cc:subject:message-id:mime-version; bh=VWm2wfsdQ4dIqEDo+Rqj2dg5Q+vUveN53C1XvpOumpo=; b=e4iJycHpmLIvDoN5SzfKqeK7SMjOHrzSatrkkUVP0FvXUIVb2uzvG9To doqhv31BkTj3BIX3xxEKAvRDKYj1WGEhMBQ12W+UYhCMCrBG8HAqo1pdP ffliqctUcJ+xs8Rb4kuu4OHS60RhKHNsJccW5UKAdxWl8Q7MCdH0cSO1/ dUnp7OF0Ao+ogKd6Hz2ZsoYKgrCPUYx+BV1FoPVnMXCQGAuzMU0GYYjSE lQQqgMO//QzPg/eKU9TnOxw/7NlK9GQwNO/Lx7LCTQQWPEc7rrKm7ZyRp PqHbW9ylnaCHlAjSZQqgpkur7KfkxLeQdyvroaZ9UXkzwvhHSmY4tys3c g==; X-IronPort-AV: E=McAfee;i="6400,9594,10354"; a="270503439" X-IronPort-AV: E=Sophos;i="5.91,243,1647327600"; d="scan'208";a="270503439" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2022 17:48:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,243,1647327600"; d="scan'208";a="571448091" Received: from lkp-server02.sh.intel.com (HELO 242b25809ac7) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 21 May 2022 17:48:57 -0700 Received: from kbuild by 242b25809ac7 with local (Exim 4.95) (envelope-from ) id 1nsZmC-0006nM-MJ; Sun, 22 May 2022 00:48:56 +0000 Date: Sun, 22 May 2022 08:48:23 +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:18: error: invalid use of undefined type 'struct cpuinfo_x86' Message-ID: <202205220819.oeCFzZ1A-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 6c3f5bec9b40b9437410abb08eccd5cdd1598a3c commit: b3dc549986eb7b38eba4a144e979dc93f386751f drm/amdgpu: Disable PCIE_DPM on Intel RKL Platform date: 9 months ago config: um-allyesconfig (https://download.01.org/0day-ci/archive/20220522/202205220819.oeCFzZ1A-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-1) 11.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 mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=um SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable 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:34: 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:18: error: invalid use of undefined 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:1744:33: error: invalid use of undefined 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 https://01.org/lkp