Hi Jason,

I love your patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    
https://github.com/0day-ci/linux/commits/Jason-Wang/XDP-transmission-for-tuntap/20180101-105946
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)


vim +1274 drivers/net/tun.c

  1270  
  1271  static void tun_xdp_flush(struct net_device *dev)
  1272  {
  1273          struct tun_struct *tun = netdev_priv(dev);
> 1274          struct tun_file *tfile = tun->tfiles[0];
  1275  
  1276          /* Notify and wake up reader process */
  1277          if (tfile->flags & TUN_FASYNC)
  1278                  kill_fasync(&tfile->fasync, SIGIO, POLL_IN);
  1279          tfile->socket.sk->sk_data_ready(tfile->socket.sk);
  1280  }
  1281  

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

Reply via email to