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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85054C021B3 for ; Fri, 21 Feb 2025 04:26:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A17526B00B6; Thu, 20 Feb 2025 23:26:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9A0796B00B7; Thu, 20 Feb 2025 23:26:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 819B56B00B8; Thu, 20 Feb 2025 23:26:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 5FD246B00B6 for ; Thu, 20 Feb 2025 23:26:14 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id DA53DB0EB0 for ; Fri, 21 Feb 2025 04:26:13 +0000 (UTC) X-FDA: 83142664626.30.AA8F97A Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by imf29.hostedemail.com (Postfix) with ESMTP id 3B50D120007 for ; Fri, 21 Feb 2025 04:26:10 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ts3bIBEW; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1740111972; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=UX25tfRtfp02f/SKH4E1OuN4Z3jdZsmtzzCxMxfWWqk=; b=6ERWKs8/Kem39/Eq5RaQn4VHCYa2q+UHAzMAk7qt396VeagKamYYrL5PAZWFof0VCbqmkh 7eDShbDBGoRfscXyugzlCLqmxGM9/z4y/Kej5v2NFldprsB9KxB1ZD2j0PbXtcXGnFDnb+ 64Ukzbc5g21CfNaSqlnuOufp8qQJ+4k= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ts3bIBEW; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.198.163.14 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1740111972; a=rsa-sha256; cv=none; b=7q5Plv3ID0k8v32Sj0ImmYUCly5oBh3OQFJa38HK7s980rQeCUx6Abf6ytK8xbaOupILT2 XNhVykNifLgwDEaffPBcGYCVSMA4c+d729o5QAR1BzTQh711a8iyNXwOXMHNiDsUl9V4Gv wMi63aDuCRy1eUrPJdzC4bh1qhQY7u0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740111971; x=1771647971; h=date:from:to:cc:subject:message-id:mime-version; bh=bt02CuM4KdhyT164TSON2y8X1yWDPYrWXVid/i7x2NY=; b=Ts3bIBEWV7aHycmfmfg/iG/ViAVXU5dnH/e6AY0MeHCa7wZCKgS86dx9 MKOzZd9cCZx4hJEuhUrB03a/oQG32YWU9PPBaZNGnL0zOGoaXzll1Y4Q5 X3uSVruEWpG8mpqBupwJJWRYf4IYv2LL7KKvKkwOMifY6NVm05vCj+VzS HWSrc/aigfJbnxnocFWvzjIhhOxfuL4LrPQZek0XTjqqYRsLYr/ICRYAe lLwuE8sUlwfRmTxSZruvdZPGsnsjbMDjfDi+HtaEbL0lpgF67rdaNzDVs qMw5gBH6uU9ogsUnF5/HOQRwYEdx+yO8XJEonEfF8cOodUt9cdJC306Y0 Q==; X-CSE-ConnectionGUID: fNDD6gB9Tx6tqGhx9/OS4g== X-CSE-MsgGUID: IQwqjfrcQ7GCyEgev2h4Fw== X-IronPort-AV: E=McAfee;i="6700,10204,11351"; a="41182295" X-IronPort-AV: E=Sophos;i="6.13,303,1732608000"; d="scan'208";a="41182295" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2025 20:26:09 -0800 X-CSE-ConnectionGUID: T9LgCSM5R02IK+Tqy/p1Pw== X-CSE-MsgGUID: zqlqrFpYTQGeo+v3yGenoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,303,1732608000"; d="scan'208";a="115452539" Received: from lkp-server02.sh.intel.com (HELO 76cde6cc1f07) ([10.239.97.151]) by fmviesa008.fm.intel.com with ESMTP; 20 Feb 2025 20:26:08 -0800 Received: from kbuild by 76cde6cc1f07 with local (Exim 4.96) (envelope-from ) id 1tlKc1-00056o-1f; Fri, 21 Feb 2025 04:26:05 +0000 Date: Fri, 21 Feb 2025 12:25:33 +0800 From: kernel test robot To: Shuai Xue Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [linux-next:master 4579/5164] arch/x86/kernel/cpu/mce/severity.c:305:15: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations Message-ID: <202502211226.wBvLAdwM-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 3B50D120007 X-Stat-Signature: q9ecxkmbkun8cfdwwmm71qfiw5axpe3d X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1740111970-101801 X-HE-Meta: U2FsdGVkX1/sX7jt3Y7WCLIfhL71sn52UeRvCzY4comEk+ulQM34H87s/95iM52Nntj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pCfWlS0fk7AnL+Pmvp9MweCxiwXmm4VYmKyG+jGU3+naz1xWRdQUjTHcxNTJi8mDk/NdivrHVaAexllFIdIybBioBiWi3WVdLfsepW9yZhpk5qLFOQ4C5D+RKRBidvpsXp8YqmrgtRWd1hMNHC3CWnwNdlbO1cqdApQWO0dR+TltOLG0N0ziyoaanYuDu3bnceQvueR9Xmsne04NLMMYPjKUanH3sqClsXyzEpT+02Jp/8hCalpmrfW91LHYZr+Joj/XQ8ZQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 50a0c754714aa3ea0b0e62f3765eb666a1579f24 commit: 599382062e7b91fb049e339db93c3a0b840d2b6e [4579/5164] x86/mce: add EX_TYPE_EFAULT_REG as in-kernel recovery context to fix copy-from-user operations regression config: i386-buildonly-randconfig-006-20250221 (https://download.01.org/0day-ci/archive/20250221/202502211226.wBvLAdwM-lkp@intel.com/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250221/202502211226.wBvLAdwM-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202502211226.wBvLAdwM-lkp@intel.com/ Note: the linux-next/master HEAD 50a0c754714aa3ea0b0e62f3765eb666a1579f24 builds fine. It may have been fixed somewhere. All errors (new ones prefixed by >>): In file included from arch/x86/kernel/cpu/mce/severity.c:16: In file included from arch/x86/include/asm/traps.h:6: In file included from include/linux/kprobes.h:28: In file included from include/linux/ftrace.h:13: In file included from include/linux/kallsyms.h:13: In file included from include/linux/mm.h:2318: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> arch/x86/kernel/cpu/mce/severity.c:305:15: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 305 | fixup_type = FIELD_GET(EX_DATA_TYPE_MASK, e->data); | ^ 1 warning and 1 error generated. vim +/FIELD_GET +305 arch/x86/kernel/cpu/mce/severity.c 275 276 /* 277 * If mcgstatus indicated that ip/cs on the stack were 278 * no good, then "m->cs" will be zero and we will have 279 * to assume the worst case (IN_KERNEL) as we actually 280 * have no idea what we were executing when the machine 281 * check hit. 282 * If we do have a good "m->cs" (or a faked one in the 283 * case we were executing in VM86 mode) we can use it to 284 * distinguish an exception taken in user from from one 285 * taken in the kernel. 286 */ 287 static noinstr int error_context(struct mce *m, struct pt_regs *regs) 288 { 289 const struct exception_table_entry *e; 290 int fixup_type, imm; 291 bool copy_user; 292 293 if ((m->cs & 3) == 3) 294 return IN_USER; 295 296 if (!mc_recoverable(m->mcgstatus)) 297 return IN_KERNEL; 298 299 e = search_exception_tables(m->ip); 300 if (!e) 301 return IN_KERNEL; 302 303 /* Allow instrumentation around external facilities usage. */ 304 instrumentation_begin(); > 305 fixup_type = FIELD_GET(EX_DATA_TYPE_MASK, e->data); 306 imm = FIELD_GET(EX_DATA_IMM_MASK, e->data); 307 copy_user = is_copy_from_user(regs); 308 instrumentation_end(); 309 310 switch (fixup_type) { 311 case EX_TYPE_UACCESS: 312 if (!copy_user) 313 return IN_KERNEL; 314 m->kflags |= MCE_IN_KERNEL_COPYIN | MCE_IN_KERNEL_RECOV; 315 return IN_KERNEL_RECOV; 316 case EX_TYPE_IMM_REG: 317 if (!copy_user || imm != -EFAULT) 318 return IN_KERNEL; 319 m->kflags |= MCE_IN_KERNEL_COPYIN | MCE_IN_KERNEL_RECOV; 320 return IN_KERNEL_RECOV; 321 case EX_TYPE_FAULT_MCE_SAFE: 322 case EX_TYPE_DEFAULT_MCE_SAFE: 323 m->kflags |= MCE_IN_KERNEL_RECOV; 324 return IN_KERNEL_RECOV; 325 326 default: 327 return IN_KERNEL; 328 } 329 } 330 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki