summaryrefslogtreecommitdiffstats
path: root/drivers/hv/vmbus_drv.c
diff options
context:
space:
mode:
authorStephen Hemminger <sthemmin@microsoft.com>2016-09-07 14:39:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-07 12:57:55 +0200
commite2e808413425d82c8f162933a30304d10a5df231 (patch)
treec46d30d94ea90be99520e6e8a05a74b7feb82c1c /drivers/hv/vmbus_drv.c
parentRevert "Drivers: hv: ring_buffer: count on wrap around mappings in get_next_p... (diff)
downloadlinux-e2e808413425d82c8f162933a30304d10a5df231.tar.xz
linux-e2e808413425d82c8f162933a30304d10a5df231.zip
Driver: hv: vmbus: Make mmio resource local
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@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
-rw-r--r--drivers/hv/vmbus_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c
index fedf6298ec0b..6cbe07462785 100644
--- a/drivers/hv/vmbus_drv.c
+++ b/drivers/hv/vmbus_drv.c
@@ -105,8 +105,8 @@ static struct notifier_block hyperv_panic_block = {
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)
{