From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 997F28F49 for ; Sat, 28 Oct 2023 09:08:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PVP4ltN4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698484097; x=1730020097; h=date:from:to:cc:subject:message-id:mime-version; bh=W2JjgmeupKQlw2bwNDG7w1cN4OQAgg9uXL2e4Y1ESVg=; b=PVP4ltN4Gj+FwDBjhS5wvr+RmjpXpsVwuw2Y8LEm+Wb6A3QJh1C/Cmn2 ttcxVR3oM+OIo+ZUI8GWdyeF1ZY45VdrOxo1ZT5XhFfpziYSZmt8xdBtC C8cW9xTa32sJlCgsYnVv2fp3NJIypzoGe2ew/x3lwjyrndBQuYbwPm9Zn xxLoP9DuoIRN70zhKHQ1sCS1Wpnc/LOfMZsLYvbdD43NfYO2OV4HKjSM8 NskK0KBuFK+tK5nn3SioRxNnLz3RggXGIwOtH26zBukOz6h5b1RYws/4x yKvYvwzTH0GO3XasaRMGeEqWHuGeVJvbtZh6x+eP9ianrTQQTnoZvDy0D w==; X-IronPort-AV: E=McAfee;i="6600,9927,10876"; a="454357218" X-IronPort-AV: E=Sophos;i="6.03,258,1694761200"; d="scan'208";a="454357218" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2023 02:08:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10876"; a="709634755" X-IronPort-AV: E=Sophos;i="6.03,258,1694761200"; d="scan'208";a="709634755" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 28 Oct 2023 02:08:15 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qwfIj-000Bb3-0W; Sat, 28 Oct 2023 09:08:13 +0000 Date: Sat, 28 Oct 2023 17:07:46 +0800 From: kernel test robot To: oe-kbuild@lists.linux.dev Cc: lkp@intel.com Subject: [tip:x86/percpu 21/22] arch/x86/include/asm/current.h:46:38: sparse: sparse: too many errors Message-ID: <202310281610.GPrDg3Gj-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline :::::: :::::: Manual check reason: "low confidence static check warning: arch/x86/include/asm/current.h:46:38: sparse: sparse: too many errors" :::::: BCC: lkp@intel.com CC: oe-kbuild-all@lists.linux.dev CC: linux-kernel@vger.kernel.org CC: x86@kernel.org TO: Uros Bizjak CC: Ingo Molnar CC: Nadav Amit tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/percpu head: 0548eb067ed664b93043e033295ca71e3e706245 commit: ed2f752e0e0a21d941ca0ee539ef3d4cd576bc5e [21/22] x86/percpu: Introduce const-qualified const_pcpu_hot to micro-optimize code generation :::::: branch date: 4 days ago :::::: commit date: 5 days ago config: x86_64-randconfig-121-20231028 (https://download.01.org/0day-ci/archive/20231028/202310281610.GPrDg3Gj-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231028/202310281610.GPrDg3Gj-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/r/202310281610.GPrDg3Gj-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) kernel/futex/waitwake.c: note: in included file (through arch/x86/include/asm/cpufeature.h, arch/x86/include/asm/thread_info.h, include/linux/thread_info.h, ...): arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs arch/x86/include/asm/processor.h:504:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/processor.h:504:9: sparse: sparse: got __seg_gs kernel/futex/waitwake.c: note: in included file (through include/linux/preempt.h, include/linux/rcupdate.h, include/linux/rculist.h, ...): arch/x86/include/asm/preempt.h:27:16: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:27:16: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:34:15: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:34:15: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:38:19: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:38:19: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:61:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:61:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:66:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:66:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:71:18: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:71:18: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:80:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:80:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:80:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:80:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:80:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:80:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:85:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:85:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:85:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:85:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:85:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:85:9: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:95:16: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:95:16: sparse: sparse: got __seg_gs arch/x86/include/asm/preempt.h:104:16: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/preempt.h:104:16: sparse: sparse: got __seg_gs kernel/futex/waitwake.c: note: in included file (through include/linux/hrtimer.h, include/linux/sched.h, include/linux/sched/task.h): include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs include/linux/seqlock.h:269:9: sparse: sparse: Expected ) at end of cast operator include/linux/seqlock.h:269:9: sparse: sparse: got __seg_gs kernel/futex/waitwake.c: note: in included file (through arch/x86/include/asm/uaccess.h, include/linux/uaccess.h, include/linux/sched/task.h): arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:180:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:262:45: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:397:19: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:404:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: got __seg_gs arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: Expected ) at end of cast operator arch/x86/include/asm/tlbflush.h:406:9: sparse: sparse: got __seg_gs kernel/futex/waitwake.c: note: in included file (through include/linux/sched.h, include/linux/sched/task.h): arch/x86/include/asm/current.h:46:24: sparse: sparse: undefined identifier 'const_pcpu_hot' arch/x86/include/asm/current.h:46:38: sparse: sparse: expected structure or union arch/x86/include/asm/current.h:46:38: sparse: sparse: expected structure or union >> arch/x86/include/asm/current.h:46:38: sparse: sparse: too many errors vim +46 arch/x86/include/asm/current.h f0766440dda7ac include/asm-x86/current.h Christoph Lameter 2008-05-09 38 ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 39 /* const-qualified alias to pcpu_hot, aliased by linker. */ ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 40 DECLARE_PER_CPU_ALIGNED(const struct pcpu_hot __percpu_seg_override, ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 41 const_pcpu_hot); ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 42 f0766440dda7ac include/asm-x86/current.h Christoph Lameter 2008-05-09 43 static __always_inline struct task_struct *get_current(void) f0766440dda7ac include/asm-x86/current.h Christoph Lameter 2008-05-09 44 { ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 45 if (IS_ENABLED(CONFIG_USE_X86_SEG_SUPPORT)) ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 @46 return const_pcpu_hot.current_task; ed2f752e0e0a21 arch/x86/include/asm/current.h Uros Bizjak 2023-10-20 47 e57ef2ed97c1d0 arch/x86/include/asm/current.h Thomas Gleixner 2022-09-15 48 return this_cpu_read_stable(pcpu_hot.current_task); f0766440dda7ac include/asm-x86/current.h Christoph Lameter 2008-05-09 49 } f0766440dda7ac include/asm-x86/current.h Christoph Lameter 2008-05-09 50 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki