[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201807162013.mrdB6EJ0%fengguang.wu@intel.com>
Date: Mon, 16 Jul 2018 20:45:14 +0800
From: kbuild test robot <lkp@...el.com>
To: Boris Pismenny <borisp@...lanox.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org,
Ilya Lesokhin <ilyal@...lanox.com>
Subject: [net-next:master 714/721]
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to
restricted __be64
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: aea06eb276d99590f400c877ca2bd74b4db91330
commit: ab412e1dd7db132c2abeb9385b4bf0dc8e6c5a65 [714/721] net/mlx5: Accel, add TLS rx offload routines
reproduce:
# apt-get install sparse
git checkout ab412e1dd7db132c2abeb9385b4bf0dc8e6c5a65
make ARCH=x86_64 allmodconfig
make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:227:51: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:227:51: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:227:51: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:227:51: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:227:51: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:227:51: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:231:9: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:231:9: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:231:9: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:231:9: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:231:9: sparse: cast to restricted __be32
drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:231:9: sparse: cast to restricted __be32
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: cast to restricted __be64
>> drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c:232:9: sparse: too many warnings
vim +232 drivers/net/ethernet/mellanox/mlx5/core/fpga/tls.c
210
211 int mlx5_fpga_tls_resync_rx(struct mlx5_core_dev *mdev, u32 handle, u32 seq,
212 u64 rcd_sn)
213 {
214 struct mlx5_fpga_dma_buf *buf;
215 int size = sizeof(*buf) + MLX5_TLS_COMMAND_SIZE;
216 void *flow;
217 void *cmd;
218 int ret;
219
220 buf = kzalloc(size, GFP_ATOMIC);
221 if (!buf)
222 return -ENOMEM;
223
224 cmd = (buf + 1);
225
226 rcu_read_lock();
> 227 flow = idr_find(&mdev->fpga->tls->rx_idr, ntohl(handle));
228 rcu_read_unlock();
229 mlx5_fpga_tls_flow_to_cmd(flow, cmd);
230
231 MLX5_SET(tls_cmd, cmd, swid, ntohl(handle));
> 232 MLX5_SET64(tls_cmd, cmd, tls_rcd_sn, be64_to_cpu(rcd_sn));
233 MLX5_SET(tls_cmd, cmd, tcp_sn, seq);
234 MLX5_SET(tls_cmd, cmd, command_type, CMD_RESYNC_RX);
235
236 buf->sg[0].data = cmd;
237 buf->sg[0].size = MLX5_TLS_COMMAND_SIZE;
238 buf->complete = mlx_tls_kfree_complete;
239
240 ret = mlx5_fpga_sbu_conn_sendmsg(mdev->fpga->tls->conn, buf);
241
242 return ret;
243 }
244
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Powered by blists - more mailing lists