[PATCH] hv: make mmio resource local
Stephen Hemminger
stephen at networkplumber.org
Mon Aug 15 17:55:48 UTC 2016
From: Stephen Hemminger <sthemmin at linuxonhyperv.com>
This fixes a sparse warning because hyperv_mmio resources
are only used in this one file and should be static.
Signed-off-by: Stephen Hemminger <sthemmin at linuxonhyperv.com>
--- a/drivers/hv/vmbus_drv.c 2016-08-05 15:19:55.000000000 -0700
+++ b/drivers/hv/vmbus_drv.c 2016-08-15 10:39:30.436494786 -0700
@@ -105,8 +105,8 @@ static struct notifier_block hyperv_pani
static const char *fb_mmio_name = "fb_range";
static struct resource *fb_mmio;
-struct resource *hyperv_mmio;
-DEFINE_SEMAPHORE(hyperv_mmio_lock);
+static struct resource *hyperv_mmio;
+static DEFINE_SEMAPHORE(hyperv_mmio_lock);
static int vmbus_exists(void)
{
More information about the devel
mailing list