public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Felix Maurer <fmaurer@redhat.com>, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, davem@davemloft.net,
	edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
	horms@kernel.org, jkarrenpalo@gmail.com, tglx@linutronix.de,
	mingo@kernel.org, allison.henderson@oracle.com, petrm@nvidia.com,
	antonio@openvpn.net, bigeasy@linutronix.de,
	Yoann Congal <yoann.congal@smile.fr>
Subject: Re: [PATCH net-next 6/9] hsr: Implement more robust duplicate discard for HSR
Date: Thu, 22 Jan 2026 05:52:14 +0800	[thread overview]
Message-ID: <202601220557.VfSPsAdo-lkp@intel.com> (raw)
In-Reply-To: <a58f3b542fd8564c5d9576a10a9d6c9a7f318931.1769001553.git.fmaurer@redhat.com>

Hi Felix,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Felix-Maurer/selftests-hsr-Add-ping-test-for-PRP/20260121-221431
base:   net-next/main
patch link:    https://lore.kernel.org/r/a58f3b542fd8564c5d9576a10a9d6c9a7f318931.1769001553.git.fmaurer%40redhat.com
patch subject: [PATCH net-next 6/9] hsr: Implement more robust duplicate discard for HSR
config: alpha-randconfig-r073-20260122 (https://download.01.org/0day-ci/archive/20260122/202601220557.VfSPsAdo-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 12.5.0
smatch version: v0.5.0-8985-g2614ff1a
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260122/202601220557.VfSPsAdo-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/202601220557.VfSPsAdo-lkp@intel.com/

All warnings (new ones prefixed by >>):

   net/hsr/hsr_framereg.c: In function 'fill_last_seq_nrs':
>> net/hsr/hsr_framereg.c:781:22: warning: variable 'block_off' set but not used [-Wunused-but-set-variable]
     781 |         unsigned int block_off;
         |                      ^~~~~~~~~


vim +/block_off +781 net/hsr/hsr_framereg.c

   773	
   774	/* Fill the last sequence number that has been received from node on if1 by
   775	 * finding the last sequence number sent on port B; accordingly get the last
   776	 * received sequence number for if2 using sent sequence numbers on port A.
   777	 */
   778	static void fill_last_seq_nrs(struct hsr_node *node, u16 *if1_seq, u16 *if2_seq)
   779	{
   780		struct hsr_seq_block *block;
 > 781		unsigned int block_off;
   782		size_t block_sz;
   783		u16 seq_bit;
   784	
   785		spin_lock_bh(&node->seq_out_lock);
   786	
   787		// Get last inserted block
   788		block_off = (node->next_block - 1) & (HSR_MAX_SEQ_BLOCKS - 1);
   789		block_sz = hsr_seq_block_size(node);
   790		block = node->block_buf + node->next_block * block_sz;
   791	
   792		if (!bitmap_empty(block->seq_nrs[HSR_PT_SLAVE_B - 1],
   793				  HSR_SEQ_BLOCK_SIZE)) {
   794			seq_bit = find_last_bit(block->seq_nrs[HSR_PT_SLAVE_B - 1],
   795						HSR_SEQ_BLOCK_SIZE);
   796			*if1_seq = (block->block_idx << HSR_SEQ_BLOCK_SHIFT) | seq_bit;
   797		}
   798		if (!bitmap_empty(block->seq_nrs[HSR_PT_SLAVE_A - 1],
   799				  HSR_SEQ_BLOCK_SIZE)) {
   800			seq_bit = find_last_bit(block->seq_nrs[HSR_PT_SLAVE_A - 1],
   801						HSR_SEQ_BLOCK_SIZE);
   802			*if2_seq = (block->block_idx << HSR_SEQ_BLOCK_SHIFT) | seq_bit;
   803		}
   804		spin_unlock_bh(&node->seq_out_lock);
   805	}
   806	

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

  reply	other threads:[~2026-01-21 21:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-21 13:32 [PATCH net-next 0/9] hsr: Implement more robust duplicate discard algorithm Felix Maurer
2026-01-21 13:33 ` [PATCH net-next 1/9] selftests: hsr: Add ping test for PRP Felix Maurer
2026-01-21 13:33 ` [PATCH net-next 2/9] selftests: hsr: Check duplicates on HSR with VLAN Felix Maurer
2026-01-21 13:33 ` [PATCH net-next 3/9] selftests: hsr: Add tests for faulty links Felix Maurer
2026-01-21 13:37 ` [PATCH net-next 4/9] hsr: Implement more robust duplicate discard for PRP Felix Maurer
2026-01-21 13:37 ` [PATCH net-next 5/9] selftests: hsr: Add tests for more link faults with PRP Felix Maurer
2026-01-21 13:37 ` [PATCH net-next 6/9] hsr: Implement more robust duplicate discard for HSR Felix Maurer
2026-01-21 21:52   ` kernel test robot [this message]
2026-01-21 13:37 ` [PATCH net-next 7/9] selftests: hsr: Add more link fault tests " Felix Maurer
2026-01-21 13:37 ` [PATCH net-next 8/9] hsr: Update PRP duplicate discard KUnit test for new algorithm Felix Maurer
2026-01-21 13:37 ` [PATCH net-next 9/9] MAINTAINERS: Assign hsr selftests to HSR Felix Maurer

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=202601220557.VfSPsAdo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=allison.henderson@oracle.com \
    --cc=antonio@openvpn.net \
    --cc=bigeasy@linutronix.de \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=fmaurer@redhat.com \
    --cc=horms@kernel.org \
    --cc=jkarrenpalo@gmail.com \
    --cc=kuba@kernel.org \
    --cc=mingo@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=petrm@nvidia.com \
    --cc=tglx@linutronix.de \
    --cc=yoann.congal@smile.fr \
    /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