liquidio: make the spinlock octeon_devices_lock static
authorColin Ian King <colin.king@canonical.com>
Thu, 18 May 2017 09:14:01 +0000 (10:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 15:24:32 +0000 (11:24 -0400)
octeon_devices_lock can be made static as it does not need to be
in global scope.

Cleans up sparse warning: "warning: symbol 'octeon_devices_lock'
was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_device.c

index 3cc56675359aeb9065a8b361b017c24f6dfc07ce..b5be7074f3dedfdb95a8ae4388bd41898522d733 100644 (file)
@@ -547,7 +547,7 @@ static atomic_t adapter_refcounts[MAX_OCTEON_DEVICES];
 
 static u32 octeon_device_count;
 /* locks device array (i.e. octeon_device[]) */
-spinlock_t octeon_devices_lock;
+static spinlock_t octeon_devices_lock;
 
 static struct octeon_core_setup core_setup[MAX_OCTEON_DEVICES];