GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
* [ammarfaizi2-block:google/android/kernel/common/android-4.19-q-release 1268/7614] drivers/net/wireless/virt_wifi.c:432:31: warning: variable 'w_priv' set but not used
@ 2023-01-23 21:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-23 21:35 UTC (permalink / raw)
  To: Ammar Faizi, GNU/Weeb Mailing List; +Cc: oe-kbuild-all

tree:   https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-q-release
head:   39793952000376f86462e9cfc33766da2aa57084
commit: 55fabf05a9f648f8b93735bc9d801d662220eca0 [1268/7614] FROMGIT: mac80211-next: rtnetlink wifi simulation device
config: x86_64-randconfig-a011-20230123 (https://download.01.org/0day-ci/archive/20230124/[email protected]/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://github.com/ammarfaizi2/linux-block/commit/55fabf05a9f648f8b93735bc9d801d662220eca0
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-q-release
        git checkout 55fabf05a9f648f8b93735bc9d801d662220eca0
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/wireless/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

>> drivers/net/wireless/virt_wifi.c:432:31: warning: variable 'w_priv' set but not used [-Wunused-but-set-variable]
           struct virt_wifi_wiphy_priv *w_priv;
                                        ^
   1 warning generated.


vim +/w_priv +432 drivers/net/wireless/virt_wifi.c

   427	
   428	/* Called with rtnl lock held. */
   429	static int virt_wifi_net_device_stop(struct net_device *dev)
   430	{
   431		struct virt_wifi_netdev_priv *n_priv = netdev_priv(dev);
 > 432		struct virt_wifi_wiphy_priv *w_priv;
   433	
   434		n_priv->is_up = false;
   435	
   436		if (!dev->ieee80211_ptr)
   437			return 0;
   438		w_priv = wiphy_priv(dev->ieee80211_ptr->wiphy);
   439	
   440		virt_wifi_cancel_scan(dev->ieee80211_ptr->wiphy);
   441		virt_wifi_cancel_connect(dev);
   442		netif_carrier_off(dev);
   443	
   444		return 0;
   445	}
   446	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-23 21:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 21:35 [ammarfaizi2-block:google/android/kernel/common/android-4.19-q-release 1268/7614] drivers/net/wireless/virt_wifi.c:432:31: warning: variable 'w_priv' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox