From: kernel test robot <lkp@intel.com>
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
Date: Sat, 28 Oct 2023 17:07:46 +0800 [thread overview]
Message-ID: <202310281610.GPrDg3Gj-lkp@intel.com> (raw)
::::::
:::::: 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 <ubizjak@gmail.com>
CC: Ingo Molnar <mingo@kernel.org>
CC: Nadav Amit <namit@vmware.com>
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 <lkp@intel.com>
| 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
next reply other threads:[~2023-10-28 9:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-28 9:07 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-04 5:40 [tip:x86/percpu 21/22] arch/x86/include/asm/current.h:46:38: sparse: sparse: too many errors kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202310281610.GPrDg3Gj-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.