]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
parisc: sba: Fix compile warning wrt list of SBA devices
authorHelge Deller <deller@gmx.de>
Wed, 30 Aug 2023 06:10:01 +0000 (08:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Oct 2023 19:43:39 +0000 (21:43 +0200)
[ Upstream commit eb3255ee8f6f4691471a28fbf22db5e8901116cd ]

Fix this makecheck warning:
drivers/parisc/sba_iommu.c:98:19: warning: symbol 'sba_list'
was not declared. Should it be static?

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/include/asm/ropes.h
drivers/char/agp/parisc-agp.c

index 8e51c775c80a6f9a8cfd55b12575956082bc9470..62399c7ea94a1cf58906607139fcb9c9cd196fd4 100644 (file)
@@ -86,6 +86,9 @@ struct sba_device {
        struct ioc              ioc[MAX_IOC];
 };
 
+/* list of SBA's in system, see drivers/parisc/sba_iommu.c */
+extern struct sba_device *sba_list;
+
 #define ASTRO_RUNWAY_PORT      0x582
 #define IKE_MERCED_PORT                0x803
 #define REO_MERCED_PORT                0x804
index 1d5510cb6db4e7fe0cad57946d2485c401944d1c..1962ff624b7c5ec6dc62827c25c4a91498f32845 100644 (file)
@@ -385,8 +385,6 @@ find_quicksilver(struct device *dev, void *data)
 static int __init
 parisc_agp_init(void)
 {
-       extern struct sba_device *sba_list;
-
        int err = -1;
        struct parisc_device *sba = NULL, *lba = NULL;
        struct lba_device *lbadev = NULL;