All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Suman Ghosh <sumang@marvell.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Jakub Kicinski <kuba@kernel.org>,
	Ratheesh Kannoth <rkannoth@marvell.com>
Subject: drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c:3736 rvu_dbg_npc_exact_drop_cnt() warn: inconsistent indenting
Date: Thu, 13 Aug 2026 10:14:22 +0800	[thread overview]
Message-ID: <202608131017.oJxQ2cZN-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-08-13  2:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202608131017.oJxQ2cZN-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rkannoth@marvell.com \
    --cc=sumang@marvell.com \
    /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.