OSDN Git Service

staging: rtl8723bs: ignore unused wiphy_wowlan object warnings
authorBryan Brattlof <hello@bryanbrattlof.com>
Thu, 16 Sep 2021 23:19:58 +0000 (23:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Sep 2021 14:27:20 +0000 (16:27 +0200)
commit08ff647b83ebc6fe77b938210fe08c415ade9d49
treeb55707f1123171b66b6da7f3fa3ec54f9baef393
parentea2054baaddccfb04ba216a4f48889f334804483
staging: rtl8723bs: ignore unused wiphy_wowlan object warnings

The wake-on-wlan stub is unused when the device power management
functionality is disabled in the kernel, creating a warning when
building the driver.

drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:50:42: warning: ‘wowlan_stub’ defined but not used [-Wunused-const-variable=]

Add the __maybe_unused annotation to silence this warning.

Signed-off-by: Bryan Brattlof <hello@bryanbrattlof.com>
Link: https://lore.kernel.org/r/20210916231928.2021584-1-hello@bryanbrattlof.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c