All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: kernel/futex/core.c:62:16: sparse: sparse: cast truncates bits from constant value (123456789abcdef becomes 89abcdef)
Date: Thu, 02 Jul 2026 15:10:09 +0800	[thread overview]
Message-ID: <202607021439.koGQ9S5r-lkp@intel.com> (raw)

:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/UPDATE-20260702-004403/K-Prateek-Nayak/x86-runtime-const-Introduce-runtime_const_mask_32/20260630-130124, commit: b6e8471b174f2264b132157c6a5b58fd8935e1c9"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Peter Zijlstra <peterz@infradead.org>
CC: 0day robot <lkp@intel.com>
CC: K Prateek Nayak <kprateek.nayak@amd.com>

Hi Peter,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://github.com/intel-lab-lkp/linux/commits/UPDATE-20260702-004403/K-Prateek-Nayak/x86-runtime-const-Introduce-runtime_const_mask_32/20260630-130124
head:   c5019a5edc81040af1fdd5cb6685672b7d09cf6e
commit: b6e8471b174f2264b132157c6a5b58fd8935e1c9 futex: Use runtime constants for __futex_hash() hot path
date:   14 hours ago
:::::: branch date: 14 hours ago
:::::: commit date: 14 hours ago
config: i386-randconfig-r112-20260702 (https://download.01.org/0day-ci/archive/20260702/202607021439.koGQ9S5r-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607021439.koGQ9S5r-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/202607021439.koGQ9S5r-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   kernel/futex/core.c:532:38: sparse: sparse: cast removes address space '__user' of expression
   kernel/futex/core.c:532:51: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int [noderef] [usertype] __user *naddr @@     got void * @@
   kernel/futex/core.c:532:51: sparse:     expected unsigned int [noderef] [usertype] __user *naddr
   kernel/futex/core.c:532:51: sparse:     got void *
   kernel/futex/core.c:548:38: sparse: sparse: cast removes address space '__user' of expression
   kernel/futex/core.c:548:51: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected unsigned int [noderef] [usertype] __user *naddr @@     got void * @@
   kernel/futex/core.c:548:51: sparse:     expected unsigned int [noderef] [usertype] __user *naddr
   kernel/futex/core.c:548:51: sparse:     got void *
>> kernel/futex/core.c:62:16: sparse: sparse: cast truncates bits from constant value (123456789abcdef becomes 89abcdef)

vim +62 kernel/futex/core.c

cec199c5e39bde7 kernel/futex/core.c Peter Zijlstra  2025-04-16  59  
b6e8471b174f226 kernel/futex/core.c Peter Zijlstra  2026-06-30  60  static __always_inline struct futex_hash_bucket **futex_queues(void)
b6e8471b174f226 kernel/futex/core.c Peter Zijlstra  2026-06-30  61  {
b6e8471b174f226 kernel/futex/core.c Peter Zijlstra  2026-06-30 @62  	return runtime_const_ptr(__futex_queues);
b6e8471b174f226 kernel/futex/core.c Peter Zijlstra  2026-06-30  63  }
a52b89ebb6d4499 kernel/futex.c      Davidlohr Bueso 2014-01-12  64  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-07-02  7:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-02  7:10 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-09-11  0:57 kernel/futex/core.c:62:16: sparse: sparse: cast truncates bits from constant value (123456789abcdef becomes 89abcdef) 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=202607021439.koGQ9S5r-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.