netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next:master 904/905] drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44: sparse: incorrect type in argument 1 (different base types)
@ 2015-08-18  1:16 kbuild test robot
  2015-08-18  4:23 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2015-08-18  1:16 UTC (permalink / raw)
  To: Achiad Shochat; +Cc: kbuild-all, netdev

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   9cd3778cd7e8f165675705511cfcd4ea6eb88d27
commit: bbceefce9adfc9cf7b4110727c96c841ba8c7964 [904/905] net/mlx5e: Support RX CHECKSUM_COMPLETE
reproduce:
  # apt-get install sparse
  git checkout bbceefce9adfc9cf7b4110727c96c841ba8c7964
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44: sparse: incorrect type in argument 1 (different base types)
   drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44:    expected restricted __sum16 [usertype] n
   drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44:    got restricted __be16 [usertype] check_sum

vim +173 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c

   157	
   158		return (ethertype == htons(ETH_P_IP) || ethertype == htons(ETH_P_IPV6));
   159	}
   160	
   161	static inline void mlx5e_handle_csum(struct net_device *netdev,
   162					     struct mlx5_cqe64 *cqe,
   163					     struct mlx5e_rq *rq,
   164					     struct sk_buff *skb)
   165	{
   166		if (unlikely(!(netdev->features & NETIF_F_RXCSUM)))
   167			goto csum_none;
   168	
   169		if (likely(cqe->hds_ip_ext & CQE_L4_OK)) {
   170			skb->ip_summed = CHECKSUM_UNNECESSARY;
   171		} else if (is_first_ethertype_ip(skb)) {
   172			skb->ip_summed = CHECKSUM_COMPLETE;
 > 173			skb->csum = csum_unfold(cqe->check_sum);
   174			rq->stats.csum_sw++;
   175		} else {
   176			goto csum_none;
   177		}
   178	
   179		return;
   180	
   181	csum_none:

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-18  4:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18  1:16 [net-next:master 904/905] drivers/net/ethernet/mellanox/mlx5/core/en_rx.c:173:44: sparse: incorrect type in argument 1 (different base types) kbuild test robot
2015-08-18  4:23 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).