lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sat, 24 Jul 2021 05:11:07 +0800
From:   kernel test robot <lkp@...el.com>
To:     Yevgeny Kliteynik <kliteyn@...dia.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Saeed Mahameed <saeedm@...dia.com>,
        Alex Vesker <valex@...dia.com>
Subject: drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c:855
 dr_ste_v1_build_src_gvmi_qpn_tag() warn: inconsistent indenting

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1d597682d3e669ec7021aa33d088ed3d136a5149
commit: 10b69418641062b4dc7fabe3c6f2e12432ec6987 net/mlx5: DR, Add HW STEv1 match logic
date:   6 months ago
config: x86_64-randconfig-m001-20210723 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

smatch warnings:
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c:855 dr_ste_v1_build_src_gvmi_qpn_tag() warn: inconsistent indenting

vim +855 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c

   832	
   833	static int dr_ste_v1_build_src_gvmi_qpn_tag(struct mlx5dr_match_param *value,
   834						    struct mlx5dr_ste_build *sb,
   835						    u8 *tag)
   836	{
   837		struct mlx5dr_match_misc *misc = &value->misc;
   838		struct mlx5dr_cmd_vport_cap *vport_cap;
   839		struct mlx5dr_domain *dmn = sb->dmn;
   840		struct mlx5dr_cmd_caps *caps;
   841		u8 *bit_mask = sb->bit_mask;
   842	
   843		DR_STE_SET_TAG(src_gvmi_qp_v1, tag, source_qp, misc, source_sqn);
   844	
   845		if (sb->vhca_id_valid) {
   846			/* Find port GVMI based on the eswitch_owner_vhca_id */
   847			if (misc->source_eswitch_owner_vhca_id == dmn->info.caps.gvmi)
   848				caps = &dmn->info.caps;
   849			else if (dmn->peer_dmn && (misc->source_eswitch_owner_vhca_id ==
   850						   dmn->peer_dmn->info.caps.gvmi))
   851				caps = &dmn->peer_dmn->info.caps;
   852			else
   853				return -EINVAL;
   854	
 > 855			 misc->source_eswitch_owner_vhca_id = 0;
   856		} else {
   857			caps = &dmn->info.caps;
   858		}
   859	
   860		if (!MLX5_GET(ste_src_gvmi_qp_v1, bit_mask, source_gvmi))
   861			return 0;
   862	
   863		vport_cap = mlx5dr_get_vport_cap(caps, misc->source_port);
   864		if (!vport_cap) {
   865			mlx5dr_err(dmn, "Vport 0x%x is disabled or invalid\n",
   866				   misc->source_port);
   867			return -EINVAL;
   868		}
   869	
   870		if (vport_cap->vport_gvmi)
   871			MLX5_SET(ste_src_gvmi_qp_v1, tag, source_gvmi, vport_cap->vport_gvmi);
   872	
   873		misc->source_port = 0;
   874		return 0;
   875	}
   876	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (39521 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ