diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2022-05-24 18:36:19 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-05-30 14:06:27 +0300 |
commit | f86fc57f8ae33435f07c6dbfc308b9ab24e48ea1 (patch) | |
tree | 74b2978807ff47cd06a142842c907f9d14c08052 /drivers/net/wireless/realtek/rtw88/rtw8822ce.h | |
parent | f429298d68fba1d67dbe7016a37417a155be0a52 (diff) | |
download | linux-f86fc57f8ae33435f07c6dbfc308b9ab24e48ea1.tar.xz |
wifi: rtw88: Fix Sparse warning for rtw8822c_hw_spec
Sparse reports the following:
CHECK drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c:5313:22: warning: symbol 'rtw8822c_hw_spec' was not declared. Should it be static?
The warning arises because the external declaration for rtw8822c_hw_spec
occurs in rtw8822ce.h, which is not included in rtw8822c.h. That line is
moved, and the now empty file rtw8822ce.h is deleted.
Symbol 'rtw8822c_hw_spec' can be made constant.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220524153621.19027-3-Larry.Finger@lwfinger.net
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/rtw8822ce.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/rtw8822ce.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822ce.h b/drivers/net/wireless/realtek/rtw88/rtw8822ce.h deleted file mode 100644 index fee32d7a4504..000000000000 --- a/drivers/net/wireless/realtek/rtw88/rtw8822ce.h +++ /dev/null @@ -1,10 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ -/* Copyright(c) 2018-2019 Realtek Corporation - */ - -#ifndef __RTW_8822CE_H_ -#define __RTW_8822CE_H_ - -extern struct rtw_chip_info rtw8822c_hw_spec; - -#endif |