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 31635C43334 for ; Sat, 9 Jul 2022 04:26:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229492AbiGIE01 (ORCPT ); Sat, 9 Jul 2022 00:26:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbiGIE0Z (ORCPT ); Sat, 9 Jul 2022 00:26:25 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 390D2D50 for ; Fri, 8 Jul 2022 21:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657340784; x=1688876784; h=date:from:to:cc:subject:message-id:mime-version; bh=R9lpdO6d7dc8bmTi02r5PxOF4eUgUx629qhFRb1Dn6U=; b=S3PKVy1QLCtTSWelRlKopR/Lp9bSaxiAVCxKMMdxVA2HjTYDoRJWR4wM /rVTjSPocA7idLg5POdjprQe9DDYOrcRoMlQ2MlyYlf+XcHYn7SwLLd9G Mrvq1HeYSWtEE9namNWfLoYa7z9V9cEfdEDpYbNW2ksGxOubEyk1Wml8f bPQ78bA4wFKu3WjJBhOtfFlLnUMhQegQVX3Jyscni8a2imjIPXsgrVNIe DJ5leazRo+XSfaCPk7CGN0mwIf4oC71y0838zA8WZg+E7iwXv5CD5Xrvx tRIZ/dJ3HsdeqTJ9iB5eAn1O8tXmKdyN46Mi4QXPDFyZgCH0Xam4Ana4y w==; X-IronPort-AV: E=McAfee;i="6400,9594,10402"; a="285533598" X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="285533598" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 21:26:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="544431426" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 08 Jul 2022 21:26:22 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1oA22v-000OIU-W4; Sat, 09 Jul 2022 04:26:22 +0000 Date: Sat, 9 Jul 2022 12:25:28 +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: <202207091236.sHmaQn6M-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: e5524c2a1fc4002a52e16236659e779767617a4f commit: b3dc549986eb7b38eba4a144e979dc93f386751f drm/amdgpu: Disable PCIE_DPM on Intel RKL Platform date: 10 months ago config: um-allyesconfig (https://download.01.org/0day-ci/archive/20220709/202207091236.sHmaQn6M-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 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