Skip to content

Commit a854028

Browse files
committed
wifi: ath9k: fix ath9k_use_msi declaration
Sparse warns: drivers/net/wireless/ath/ath9k/init.c:79:5: warning: symbol 'ath9k_use_msi' was not declared. Should it be static? Move the extern to ath9k.h so that it's visible in init.c. Compile tested only. Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> Link: https://msgid.link/20240320170656.3534265-3-kvalo@kernel.org
1 parent e5f6c85 commit a854028

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/net/wireless/ath/ath9k/ath9k.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ extern int ath9k_modparam_nohwcrypt;
3939
extern int ath9k_led_blink;
4040
extern bool is_ath9k_unloaded;
4141
extern int ath9k_use_chanctx;
42+
extern int ath9k_use_msi;
4243

4344
/*************************/
4445
/* Descriptor Management */

drivers/net/wireless/ath/ath9k/pci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
#include <linux/module.h>
2222
#include "ath9k.h"
2323

24-
extern int ath9k_use_msi;
25-
2624
static const struct pci_device_id ath_pci_id_table[] = {
2725
{ PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI */
2826
{ PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */

0 commit comments

Comments
 (0)