Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on a15a20acc980342c97d804c5fae1cfc0cd7712a9] url: https://github.com/0day-ci/linux/commits/Ajay-Kathat-microchip-com/wilc1000-move-out-of-staging/20200623-190333 base: a15a20acc980342c97d804c5fae1cfc0cd7712a9 config: ia64-allmodconfig (attached as .config) compiler: ia64-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 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): drivers/net/wireless/microchip/wilc1000/mon.c: In function 'wilc_wfi_init_mon_interface': >> drivers/net/wireless/microchip/wilc1000/mon.c:232:2: warning: 'strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 232 | strncpy(wl->monitor_dev->name, name, IFNAMSIZ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/strncpy +232 drivers/net/wireless/microchip/wilc1000/mon.c daf8b5f14a7066 Ajay Singh 2020-06-23 216 daf8b5f14a7066 Ajay Singh 2020-06-23 217 struct net_device *wilc_wfi_init_mon_interface(struct wilc *wl, daf8b5f14a7066 Ajay Singh 2020-06-23 218 const char *name, daf8b5f14a7066 Ajay Singh 2020-06-23 219 struct net_device *real_dev) daf8b5f14a7066 Ajay Singh 2020-06-23 220 { daf8b5f14a7066 Ajay Singh 2020-06-23 221 struct wilc_wfi_mon_priv *priv; daf8b5f14a7066 Ajay Singh 2020-06-23 222 daf8b5f14a7066 Ajay Singh 2020-06-23 223 /* If monitor interface is already initialized, return it */ daf8b5f14a7066 Ajay Singh 2020-06-23 224 if (wl->monitor_dev) daf8b5f14a7066 Ajay Singh 2020-06-23 225 return wl->monitor_dev; daf8b5f14a7066 Ajay Singh 2020-06-23 226 daf8b5f14a7066 Ajay Singh 2020-06-23 227 wl->monitor_dev = alloc_etherdev(sizeof(struct wilc_wfi_mon_priv)); daf8b5f14a7066 Ajay Singh 2020-06-23 228 if (!wl->monitor_dev) daf8b5f14a7066 Ajay Singh 2020-06-23 229 return NULL; daf8b5f14a7066 Ajay Singh 2020-06-23 230 daf8b5f14a7066 Ajay Singh 2020-06-23 231 wl->monitor_dev->type = ARPHRD_IEEE80211_RADIOTAP; daf8b5f14a7066 Ajay Singh 2020-06-23 @232 strncpy(wl->monitor_dev->name, name, IFNAMSIZ); daf8b5f14a7066 Ajay Singh 2020-06-23 233 wl->monitor_dev->name[IFNAMSIZ - 1] = 0; daf8b5f14a7066 Ajay Singh 2020-06-23 234 wl->monitor_dev->netdev_ops = &wilc_wfi_netdev_ops; daf8b5f14a7066 Ajay Singh 2020-06-23 235 wl->monitor_dev->needs_free_netdev = true; daf8b5f14a7066 Ajay Singh 2020-06-23 236 daf8b5f14a7066 Ajay Singh 2020-06-23 237 if (register_netdevice(wl->monitor_dev)) { daf8b5f14a7066 Ajay Singh 2020-06-23 238 netdev_err(real_dev, "register_netdevice failed\n"); daf8b5f14a7066 Ajay Singh 2020-06-23 239 return NULL; daf8b5f14a7066 Ajay Singh 2020-06-23 240 } daf8b5f14a7066 Ajay Singh 2020-06-23 241 priv = netdev_priv(wl->monitor_dev); daf8b5f14a7066 Ajay Singh 2020-06-23 242 if (!priv) daf8b5f14a7066 Ajay Singh 2020-06-23 243 return NULL; daf8b5f14a7066 Ajay Singh 2020-06-23 244 daf8b5f14a7066 Ajay Singh 2020-06-23 245 priv->real_ndev = real_dev; daf8b5f14a7066 Ajay Singh 2020-06-23 246 daf8b5f14a7066 Ajay Singh 2020-06-23 247 return wl->monitor_dev; daf8b5f14a7066 Ajay Singh 2020-06-23 248 } daf8b5f14a7066 Ajay Singh 2020-06-23 249 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip
_______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel