tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
queue-5.10
head: 5198d6ce5c6c0d7bfdf349fe4ee54e46865e2b96
commit: ccce4f71ef007b5d761a61dce5ac9405bd8b3575 [63/68] RDMA/mlx5: Block FDB rules when
not in switchdev mode
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.10
git checkout ccce4f71ef007b5d761a61dce5ac9405bd8b3575
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/infiniband/hw/mlx5/fs.c: In function
'mlx5_ib_handler_MLX5_IB_METHOD_FLOW_MATCHER_CREATE':
> drivers/infiniband/hw/mlx5/fs.c:2140:27: error: passing argument
1 of 'mlx5_eswitch_mode' from incompatible pointer type
[-Werror=incompatible-pointer-types]
2140 | mlx5_eswitch_mode(dev->mdev)
!= MLX5_ESWITCH_OFFLOADS) {
| ~~~^~~~~~
| |
| struct mlx5_core_dev *
In file included from drivers/infiniband/hw/mlx5/fs.c:18:
include/linux/mlx5/eswitch.h:99:43: note: expected 'struct mlx5_eswitch *' but
argument is of type 'struct mlx5_core_dev *'
99 | u8 mlx5_eswitch_mode(struct mlx5_eswitch *esw);
| ~~~~~~~~~~~~~~~~~~~~~^~~
cc1: some warnings being treated as errors
vim +/mlx5_eswitch_mode +2140 drivers/infiniband/hw/mlx5/fs.c
2096
2097 static int UVERBS_HANDLER(MLX5_IB_METHOD_FLOW_MATCHER_CREATE)(
2098 struct uverbs_attr_bundle *attrs)
2099 {
2100 struct ib_uobject *uobj = uverbs_attr_get_uobject(
2101 attrs, MLX5_IB_ATTR_FLOW_MATCHER_CREATE_HANDLE);
2102 struct mlx5_ib_dev *dev = mlx5_udata_to_mdev(&attrs->driver_udata);
2103 struct mlx5_ib_flow_matcher *obj;
2104 int err;
2105
2106 obj = kzalloc(sizeof(struct mlx5_ib_flow_matcher), GFP_KERNEL);
2107 if (!obj)
2108 return -ENOMEM;
2109
2110 obj->mask_len = uverbs_attr_get_len(
2111 attrs, MLX5_IB_ATTR_FLOW_MATCHER_MATCH_MASK);
2112 err = uverbs_copy_from(&obj->matcher_mask,
2113 attrs,
2114 MLX5_IB_ATTR_FLOW_MATCHER_MATCH_MASK);
2115 if (err)
2116 goto end;
2117
2118 obj->flow_type = uverbs_attr_get_enum_id(
2119 attrs, MLX5_IB_ATTR_FLOW_MATCHER_FLOW_TYPE);
2120
2121 if (obj->flow_type == MLX5_IB_FLOW_TYPE_NORMAL) {
2122 err = uverbs_copy_from(&obj->priority,
2123 attrs,
2124 MLX5_IB_ATTR_FLOW_MATCHER_FLOW_TYPE);
2125 if (err)
2126 goto end;
2127 }
2128
2129 err = uverbs_copy_from(&obj->match_criteria_enable,
2130 attrs,
2131 MLX5_IB_ATTR_FLOW_MATCHER_MATCH_CRITERIA);
2132 if (err)
2133 goto end;
2134
2135 err = mlx5_ib_matcher_ns(attrs, obj);
2136 if (err)
2137 goto end;
2138
2139 if (obj->ns_type == MLX5_FLOW_NAMESPACE_FDB &&
2140 mlx5_eswitch_mode(dev->mdev) != MLX5_ESWITCH_OFFLOADS) {
2141 err = -EINVAL;
2142 goto end;
2143 }
2144
2145 uobj->object = obj;
2146 obj->mdev = dev->mdev;
2147 atomic_set(&obj->usecnt, 0);
2148 return 0;
2149
2150 end:
2151 kfree(obj);
2152 return err;
2153 }
2154
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org