From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gnuweeb.org (Postfix) with ESMTPS id A12647E71F for ; Tue, 29 Mar 2022 14:23:17 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=R3o9Ht2P; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648563797; x=1680099797; h=date:from:to:cc:subject:message-id:mime-version; bh=B/mI38jzlU1f00eDjZ9lzNKZw+RbKTIw6WEAubkNXAg=; b=R3o9Ht2PTsRi1QNR0MGCxfhRJVOarGWwwD4BdOlLmLc/79wE8YFpCu3k t13xaAB+7f73N338okIgWDU4cGy8rLiaCaUexK649BHgp2ZwIKcqH8gkv D1snQJ8hjQQ2p6vxhgbqt07nzd3u7ZsTYsU2RKLsVKInNoGiUhM7U3i87 QGwJRgtptknHSp4hGYIidd0zofpidbdfTeFzIMFWgfnPa7O4rDvxJ6qqZ qdLBnyz3XQOkySybkpNHDBuvC2dUNOUNF8QHWItdtidJM7JoTOPQcaNWM tc8l/0Kfhl57TXOCA+DkhVzldv34ar871reGPm41kCNvTlgv+ztmU199s g==; X-IronPort-AV: E=McAfee;i="6200,9189,10301"; a="258089658" X-IronPort-AV: E=Sophos;i="5.90,220,1643702400"; d="scan'208";a="258089658" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Mar 2022 07:23:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,220,1643702400"; d="scan'208";a="521456716" Received: from lkp-server01.sh.intel.com (HELO 3965e2759b93) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 29 Mar 2022 07:23:14 -0700 Received: from kbuild by 3965e2759b93 with local (Exim 4.92) (envelope-from ) id 1nZCkc-0000Jo-4m; Tue, 29 Mar 2022 14:23:14 +0000 Date: Tue, 29 Mar 2022 22:23:07 +0800 From: kernel test robot To: Borislav Petkov Cc: kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Kees Cook Subject: [ammarfaizi2-block:bp/bp/rc0+ 6/11] arch/x86/kernel/cpu/common.c:1415:10: error: 'x86_cap_flags' undeclared; did you mean 'x86_cap_flag'? Message-ID: <202203292206.ICsY2RKX-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) List-Id: tree: https://github.com/ammarfaizi2/linux-block bp/bp/rc0+ head: 2d784fc7295963360594f3de64446aa32841c694 commit: c3b9dcd01973935375ca9d0c67044bea7333d4ef [6/11] x86/cpu: Allow feature bit names from /proc/cpuinfo in clearcpuid= config: i386-tinyconfig (https://download.01.org/0day-ci/archive/20220329/202203292206.ICsY2RKX-lkp@intel.com/config) compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/c3b9dcd01973935375ca9d0c67044bea7333d4ef git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block bp/bp/rc0+ git checkout c3b9dcd01973935375ca9d0c67044bea7333d4ef # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): arch/x86/kernel/cpu/common.c: In function 'cpu_parse_early_param': >> arch/x86/kernel/cpu/common.c:1415:10: error: 'x86_cap_flags' undeclared (first use in this function); did you mean 'x86_cap_flag'? 1415 | if (!x86_cap_flags[bit]) | ^~~~~~~~~~~~~ | x86_cap_flag arch/x86/kernel/cpu/common.c:1415:10: note: each undeclared identifier is reported only once for each function it appears in vim +1415 arch/x86/kernel/cpu/common.c 1385 1386 if (cmdline_find_option_bool(boot_command_line, "noxsave")) 1387 setup_clear_cpu_cap(X86_FEATURE_XSAVE); 1388 1389 if (cmdline_find_option_bool(boot_command_line, "noxsaveopt")) 1390 setup_clear_cpu_cap(X86_FEATURE_XSAVEOPT); 1391 1392 if (cmdline_find_option_bool(boot_command_line, "noxsaves")) 1393 setup_clear_cpu_cap(X86_FEATURE_XSAVES); 1394 1395 arglen = cmdline_find_option(boot_command_line, "clearcpuid", arg, sizeof(arg)); 1396 if (arglen <= 0) 1397 return; 1398 1399 pr_info("Clearing CPUID bits:"); 1400 1401 while (argptr) { 1402 bool found __maybe_unused = false; 1403 unsigned int bit; 1404 1405 opt = strsep(&argptr, ","); 1406 1407 /* 1408 * Handle naked numbers first for feature flags which don't 1409 * have names. 1410 */ 1411 if (!kstrtouint(opt, 10, &bit)) { 1412 if (bit < NCAPINTS * 32) { 1413 1414 /* empty-string, i.e., ""-defined feature flags */ > 1415 if (!x86_cap_flags[bit]) 1416 pr_cont(" " X86_CAP_FMT_NUM, x86_cap_flag_num(bit)); 1417 else 1418 pr_cont(" " X86_CAP_FMT, x86_cap_flag(bit)); 1419 1420 setup_clear_cpu_cap(bit); 1421 taint++; 1422 } 1423 /* 1424 * The assumption is that there are no feature names with only 1425 * numbers in the name thus go to the next argument. 1426 */ 1427 continue; 1428 } 1429 -- 0-DAY CI Kernel Test Service https://01.org/lkp