From: kernel test robot <lkp@intel.com>
To: Chelsy Ratnawat <chelsyratnawat2001@gmail.com>,
dhowells@redhat.com, davem@davemloft.net,
marc.dionne@auristor.com
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org,
Chelsy Ratnawat <chelsyratnawat2001@gmail.com>
Subject: Re: [PATCH] net/rxrpc: Simplify rxrpcpeerseq_next()
Date: Fri, 16 Oct 2026 13:59:41 +0800 [thread overview]
Message-ID: <202610161338.9QHAZ7bn-lkp@intel.com> (raw)
In-Reply-To: <20261015200115.59571-1-chelsyratnawat2001@gmail.com>
Hi Chelsy,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
[also build test WARNING on net/main linus/master dhowells-fs/fscache-next dhowells-fs/keys-next v7.3-rc7 next-20261012]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Chelsy-Ratnawat/net-rxrpc-Simplify-rxrpcpeerseq_next/20261015-130115
base: net-next/main
patch link: https://lore.kernel.org/r/20261015200115.59571-1-chelsyratnawat2001%40gmail.com
patch subject: [PATCH] net/rxrpc: Simplify rxrpcpeerseq_next()
config: nios2-randconfig-1000-20261016 (https://download.01.org/0day-ci/archive/20261016/202610161338.9QHAZ7bn-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261016/202610161338.9QHAZ7bn-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/202610161338.9QHAZ7bn-lkp@intel.com/
All warnings (new ones prefixed by >>):
net/rxrpc/proc.c: In function 'rxrpc_peer_seq_next':
>> net/rxrpc/proc.c:355:30: warning: unused variable 'n' [-Wunused-variable]
355 | unsigned int bucket, n;
| ^
vim +/n +355 net/rxrpc/proc.c
bc0e7cf43370a8e David Howells 2018-10-15 351
bc0e7cf43370a8e David Howells 2018-10-15 352 static void *rxrpc_peer_seq_next(struct seq_file *seq, void *v, loff_t *_pos)
bc0e7cf43370a8e David Howells 2018-10-15 353 {
bc0e7cf43370a8e David Howells 2018-10-15 354 struct rxrpc_net *rxnet = rxrpc_net(seq_file_net(seq));
bc0e7cf43370a8e David Howells 2018-10-15 @355 unsigned int bucket, n;
bc0e7cf43370a8e David Howells 2018-10-15 356 unsigned int shift = 32 - HASH_BITS(rxnet->peer_hash);
bc0e7cf43370a8e David Howells 2018-10-15 357 void *p;
bc0e7cf43370a8e David Howells 2018-10-15 358
bc0e7cf43370a8e David Howells 2018-10-15 359 if (*_pos >= UINT_MAX)
bc0e7cf43370a8e David Howells 2018-10-15 360 return NULL;
bc0e7cf43370a8e David Howells 2018-10-15 361
bc0e7cf43370a8e David Howells 2018-10-15 362 bucket = *_pos >> shift;
bc0e7cf43370a8e David Howells 2018-10-15 363
bc0e7cf43370a8e David Howells 2018-10-15 364 p = seq_hlist_next_rcu(v, &rxnet->peer_hash[bucket], _pos);
bc0e7cf43370a8e David Howells 2018-10-15 365 if (p)
bc0e7cf43370a8e David Howells 2018-10-15 366 return p;
bc0e7cf43370a8e David Howells 2018-10-15 367
bc0e7cf43370a8e David Howells 2018-10-15 368 for (;;) {
bc0e7cf43370a8e David Howells 2018-10-15 369 bucket++;
da940c1bf91ae9e Chelsy Ratnawat 2026-10-15 370 *_pos = (bucket << shift) | 1;
bc0e7cf43370a8e David Howells 2018-10-15 371
bc0e7cf43370a8e David Howells 2018-10-15 372 if (bucket >= HASH_SIZE(rxnet->peer_hash)) {
bc0e7cf43370a8e David Howells 2018-10-15 373 *_pos = UINT_MAX;
bc0e7cf43370a8e David Howells 2018-10-15 374 return NULL;
bc0e7cf43370a8e David Howells 2018-10-15 375 }
bc0e7cf43370a8e David Howells 2018-10-15 376
da940c1bf91ae9e Chelsy Ratnawat 2026-10-15 377 p = seq_hlist_start_rcu(&rxnet->peer_hash[bucket], 0);
bc0e7cf43370a8e David Howells 2018-10-15 378 if (p)
bc0e7cf43370a8e David Howells 2018-10-15 379 return p;
bc0e7cf43370a8e David Howells 2018-10-15 380 }
bc0e7cf43370a8e David Howells 2018-10-15 381 }
bc0e7cf43370a8e David Howells 2018-10-15 382
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-10-16 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-15 20:01 [PATCH] net/rxrpc: Simplify rxrpcpeerseq_next() Chelsy Ratnawat
2026-10-16 5:59 ` kernel test robot [this message]
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=202610161338.9QHAZ7bn-lkp@intel.com \
--to=lkp@intel.com \
--cc=chelsyratnawat2001@gmail.com \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=marc.dionne@auristor.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox