* [shenki:microwatt-5.11 16/17] drivers/net/ethernet/litex/litex_liteeth.c:350:18: warning: variable 'priv' set but not used
@ 2021-02-16 17:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-16 17:57 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2233 bytes --]
tree: https://github.com/shenki/linux microwatt-5.11
head: 752e38b97203f6617ac188ccf789c880947f58a5
commit: 04f15e4b7c4214c61eaff30bddcd659b0c466460 [16/17] net: Driver for LiteETH network interface
config: sh-allmodconfig (attached as .config)
compiler: sh4-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
# https://github.com/shenki/linux/commit/04f15e4b7c4214c61eaff30bddcd659b0c466460
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki microwatt-5.11
git checkout 04f15e4b7c4214c61eaff30bddcd659b0c466460
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/net/ethernet/litex/litex_liteeth.c: In function 'liteeth_remove':
>> drivers/net/ethernet/litex/litex_liteeth.c:350:18: warning: variable 'priv' set but not used [-Wunused-but-set-variable]
350 | struct liteeth *priv;
| ^~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_ATMEL_SOC_PDC
Depends on SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && HAS_DMA
Selected by
- SND_ATMEL_SOC_SSC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC
- SND_ATMEL_SOC_SSC_PDC && SOUND && !UML && SND && SND_SOC && SND_ATMEL_SOC && ATMEL_SSC
vim +/priv +350 drivers/net/ethernet/litex/litex_liteeth.c
346
347 static int liteeth_remove(struct platform_device *pdev)
348 {
349 struct net_device *netdev;
> 350 struct liteeth *priv;
351
352 netdev = platform_get_drvdata(pdev);
353 priv = netdev_priv(netdev);
354
355 unregister_netdev(netdev);
356
357 free_netdev(netdev);
358
359 return 0;
360 }
361
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 54009 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-16 17:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 17:57 [shenki:microwatt-5.11 16/17] drivers/net/ethernet/litex/litex_liteeth.c:350:18: warning: variable 'priv' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.