* [jlayton:pool-mode 6/6] net/sunrpc/svc.c:235:39: sparse: sparse: dereference of noderef expression
@ 2026-06-30 7:08 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-30 7:08 UTC (permalink / raw)
To: Jeff Layton; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git pool-mode
head: cdfad06a7ec5f3b374eac6e7614134474ca39c2b
commit: cdfad06a7ec5f3b374eac6e7614134474ca39c2b [6/6] sunrpc: protect the svc_pool_map pool_to[] array with RCU
config: sparc-randconfig-r132-20260630 (https://download.01.org/0day-ci/archive/20260630/202606301410.EvwcD3VP-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/202606301410.EvwcD3VP-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/oe-kbuild-all/202606301410.EvwcD3VP-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/sunrpc/svc.c:235:39: sparse: sparse: dereference of noderef expression
vim +235 net/sunrpc/svc.c
d8903ab12c8e90 Jeff Layton 2026-04-23 226
bfd241600a3b0d Greg Banks 2006-10-02 227 /*
9867d76ca16b3f Jeff Layton 2008-06-10 228 * Set the given thread's cpus_allowed mask so that it
bfd241600a3b0d Greg Banks 2006-10-02 229 * will only run on cpus in the given pool.
bfd241600a3b0d Greg Banks 2006-10-02 230 */
9867d76ca16b3f Jeff Layton 2008-06-10 231 static inline void
9867d76ca16b3f Jeff Layton 2008-06-10 232 svc_pool_map_set_cpumask(struct task_struct *task, unsigned int pidx)
bfd241600a3b0d Greg Banks 2006-10-02 233 {
bfd241600a3b0d Greg Banks 2006-10-02 234 struct svc_pool_map *m = &svc_pool_map;
9867d76ca16b3f Jeff Layton 2008-06-10 @235 unsigned int node = m->pool_to[pidx];
bfd241600a3b0d Greg Banks 2006-10-02 236
bfd241600a3b0d Greg Banks 2006-10-02 237 /*
bfd241600a3b0d Greg Banks 2006-10-02 238 * The caller checks for sv_nrpools > 1, which
42a7fc4a659822 Greg Banks 2007-03-06 239 * implies that we've been initialized.
bfd241600a3b0d Greg Banks 2006-10-02 240 */
1bd58aaff44485 Weston Andros Adamson 2012-10-23 241 WARN_ON_ONCE(m->count == 0);
1bd58aaff44485 Weston Andros Adamson 2012-10-23 242 if (m->count == 0)
1bd58aaff44485 Weston Andros Adamson 2012-10-23 243 return;
bfd241600a3b0d Greg Banks 2006-10-02 244
a70f730282019f Rusty Russell 2009-03-13 245 set_cpus_allowed_ptr(task, cpumask_of_node(node));
c5f59f0833df94 Mike Travis 2008-04-04 246 }
bfd241600a3b0d Greg Banks 2006-10-02 247
:::::: The code at line 235 was first introduced by commit
:::::: 9867d76ca16b3f455f9ca83861f4ce5c94a25928 knfsd: convert knfsd to kthread API
:::::: TO: Jeff Layton <jlayton@redhat.com>
:::::: CC: J. Bruce Fields <bfields@citi.umich.edu>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-30 7:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30 7:08 [jlayton:pool-mode 6/6] net/sunrpc/svc.c:235:39: sparse: sparse: dereference of noderef expression kernel test robot
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.