]> Git Repo - J-linux.git/commitdiff
wifi: ath9k: fix ath9k_use_msi declaration
authorKalle Valo <[email protected]>
Wed, 20 Mar 2024 17:06:55 +0000 (19:06 +0200)
committerKalle Valo <[email protected]>
Mon, 25 Mar 2024 10:51:37 +0000 (12:51 +0200)
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 <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://msgid.link/[email protected]
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/pci.c

index 668fc07b30735c1549342380a2f7d3080c900fd6..29ca65a732a66c9452b19ad184f513f92e4c8c2c 100644 (file)
@@ -39,6 +39,7 @@ extern int ath9k_modparam_nohwcrypt;
 extern int ath9k_led_blink;
 extern bool is_ath9k_unloaded;
 extern int ath9k_use_chanctx;
+extern int ath9k_use_msi;
 
 /*************************/
 /* Descriptor Management */
index e655cd8bbf94e1499bc6482ab50ea4404894f030..1ff53520f0a30c338243a6b6ea6c2d09d1fb5780 100644 (file)
@@ -21,8 +21,6 @@
 #include <linux/module.h>
 #include "ath9k.h"
 
-extern int ath9k_use_msi;
-
 static const struct pci_device_id ath_pci_id_table[] = {
        { PCI_VDEVICE(ATHEROS, 0x0023) }, /* PCI   */
        { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */
This page took 0.057935 seconds and 4 git commands to generate.