diff options
author | Arnd Bergmann <[email protected]> | 2020-04-08 20:53:51 +0200 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2020-04-14 15:45:36 +0300 |
commit | 7dc7c41607d192ff660ba4ea82d517745c1d7523 (patch) | |
tree | 2add58ca447565e8b3abbbf4af5c23d44641867a /scripts/bpf_helpers_doc.py | |
parent | c9be1a642a7b9ec021e3f32e084dc781b3e5216d (diff) |
rtw88: avoid unused function warnings
The rtw88 driver defines emtpy functions with multiple indirections
but gets one of these wrong:
drivers/net/wireless/realtek/rtw88/pci.c:1347:12: error: 'rtw_pci_resume' defined but not used [-Werror=unused-function]
1347 | static int rtw_pci_resume(struct device *dev)
| ^~~~~~~~~~~~~~
drivers/net/wireless/realtek/rtw88/pci.c:1342:12: error: 'rtw_pci_suspend' defined but not used [-Werror=unused-function]
1342 | static int rtw_pci_suspend(struct device *dev)
Better simplify it to rely on the conditional reference in
SIMPLE_DEV_PM_OPS(), and mark the functions as __maybe_unused to avoid
warning about it.
I'm not sure if these are needed at all given that the functions
don't do anything, but they were only recently added.
Fixes: 44bc17f7f5b3 ("rtw88: support wowlan feature for 8822c")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions