[linux-stable-rc:linux-5.4.y 1142/1473] drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:61:42: warning: unused variable 'wowlan_support'

From: kernel test robot
Date: Tue Aug 31 2021 - 02:41:22 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: e32f4fa1b24d825b2560ca9cfbfd9df44a4310b4
commit: 62353048e2d4e398cfc22dbee3e1a7f6f535dcc1 [1142/1473] kbuild: support LLVM=1 to switch the default tools to Clang/LLVM
config: hexagon-randconfig-r045-20210830 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4b1fde8a2b681dad2ce0c082a5d6422caa06b0bc)
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://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=62353048e2d4e398cfc22dbee3e1a7f6f535dcc1
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout 62353048e2d4e398cfc22dbee3e1a7f6f535dcc1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon

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/staging/wilc1000/wilc_wfi_cfgoperations.c:61:42: warning: unused variable 'wowlan_support' [-Wunused-const-variable]
static const struct wiphy_wowlan_support wowlan_support = {
^
1 warning generated.

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for FRAME_POINTER
Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
Selected by
- LOCKDEP && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && !MIPS && !PPC && !ARM && !S390 && !MICROBLAZE && !ARC && !X86


vim +/wowlan_support +61 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

15162fbc78a74a5 Arnd Bergmann 2015-11-16 60
73584a40d7484f1 Glen Lee 2016-01-25 @61 static const struct wiphy_wowlan_support wowlan_support = {
73584a40d7484f1 Glen Lee 2016-01-25 62 .flags = WIPHY_WOWLAN_ANY
73584a40d7484f1 Glen Lee 2016-01-25 63 };
73584a40d7484f1 Glen Lee 2016-01-25 64

:::::: The code at line 61 was first introduced by commit
:::::: 73584a40d7484f199a98893e97dcea8b2cbe4986 staging: wilc1000: add ops resuem/suspend/wakeup in cfg80211

:::::: TO: Glen Lee <glen.lee@xxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip