mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:3736 rvu_dbg_npc_exact_drop_cnt() warn: inconsistent indenting
@ 2026-08-13  2:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-13  2:14 UTC (permalink / raw)
  To: Suman Ghosh; +Cc: oe-kbuild-all, linux-kernel, Jakub Kicinski, Ratheesh Kannoth

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f5bbbfec59b4e2fb7520a91de3df8a6174325d6a
commit: 4e527f1e5c155ce28164ba34cad47b635d16f827 octeontx2-af: npc: cn20k: Add new mailboxes for CN20K silicon
date:   6 months ago
config: arm64-randconfig-r071-20260812 (https://download.01.org/0day-ci/archive/20260813/202608131017.oJxQ2cZN-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 9.5.0
smatch: v0.5.0-9187-g5189e3fb

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
| Fixes: 4e527f1e5c15 ("octeontx2-af: npc: cn20k: Add new mailboxes for CN20K silicon")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608131017.oJxQ2cZN-lkp@intel.com/

New smatch warnings:
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:3736 rvu_dbg_npc_exact_drop_cnt() warn: inconsistent indenting

Old smatch warnings:
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:1376 parse_cmd_buffer_ctx() warn: variable dereferenced before check 'cmd_buf' (see line 1356)

vim +3736 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c

  3705	
  3706	static int rvu_dbg_npc_exact_drop_cnt(struct seq_file *s, void *unused)
  3707	{
  3708		struct npc_exact_table *table;
  3709		struct rvu *rvu = s->private;
  3710		struct npc_key_field *field;
  3711		u64 cfg, cam1, off;
  3712		u16 chan, pcifunc;
  3713		int blkaddr, i;
  3714		char *str;
  3715	
  3716		blkaddr = rvu_get_blkaddr(rvu, BLKTYPE_NPC, 0);
  3717		table = rvu->hw->table;
  3718	
  3719		field = &rvu->hw->mcam.rx_key_fields[NPC_CHAN];
  3720	
  3721		seq_puts(s, "\n\t Exact Hit on drop status\n");
  3722		seq_puts(s, "\npcifunc\tmcam_idx\tHits\tchan\tstatus\n");
  3723	
  3724		for (i = 0; i < table->num_drop_rules; i++) {
  3725			pcifunc = rvu_npc_exact_drop_rule_to_pcifunc(rvu, i);
  3726			cfg = rvu_read64(rvu, blkaddr, NPC_AF_MCAMEX_BANKX_CFG(i, 0));
  3727	
  3728			/* channel will be always in keyword 0 */
  3729			cam1 = rvu_read64(rvu, blkaddr,
  3730					  NPC_AF_MCAMEX_BANKX_CAMX_W0(i, 0, 1));
  3731			chan = field->kw_mask[0] & cam1;
  3732	
  3733			str = (cfg & 1) ? "enabled" : "disabled";
  3734			if (is_cn20k(rvu->pdev)) {
  3735				off = NPC_AF_CN20K_MCAMEX_BANKX_STAT_EXT(i, 0);
> 3736			seq_printf(s, "0x%x\t%d\t\t%llu\t0x%x\t%s\n", pcifunc,
  3737				   i, rvu_read64(rvu, blkaddr, off), chan, str);
  3738			} else {
  3739				off = NPC_AF_MATCH_STATX(table->counter_idx[i]);
  3740				seq_printf(s, "0x%x\t%d\t\t%llu\t0x%x\t%s\n", pcifunc,
  3741					   i, rvu_read64(rvu, blkaddr, off),
  3742					   chan, str);
  3743			}
  3744	
  3745		}
  3746	
  3747		return 0;
  3748	}
  3749	

--
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-08-13  2:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-13  2:14 drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:3736 rvu_dbg_npc_exact_drop_cnt() warn: inconsistent indenting kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®