Author: sephe
Date: Tue May 31 05:10:20 2016
New Revision: 301018
URL: https://svnweb.freebsd.org/changeset/base/301018

Log:
  hyperv/vmbus: Move global vmbus id array to stack.
  
  MFC after:    1 week
  Sponsored by: Microsoft OSTC
  Differential Revision:        https://reviews.freebsd.org/D6603

Modified:
  head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c

Modified: head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c    Tue May 31 05:01:43 
2016        (r301017)
+++ head/sys/dev/hyperv/vmbus/hv_vmbus_drv_freebsd.c    Tue May 31 05:10:20 
2016        (r301018)
@@ -70,8 +70,6 @@ __FBSDID("$FreeBSD$");
 
 struct vmbus_softc     *vmbus_sc;
 
-static char *vmbus_ids[] = { "VMBUS", NULL };
-
 extern inthand_t IDTVEC(vmbus_isr);
 
 static void
@@ -569,7 +567,9 @@ hv_vmbus_child_device_unregister(struct 
 static int
 vmbus_probe(device_t dev)
 {
-       if (ACPI_ID_PROBE(device_get_parent(dev), dev, vmbus_ids) == NULL ||
+       char *id[] = { "VMBUS", NULL };
+
+       if (ACPI_ID_PROBE(device_get_parent(dev), dev, id) == NULL ||
            device_get_unit(dev) != 0 || vm_guest != VM_GUEST_HV ||
            (hyperv_features & CPUID_HV_MSR_SYNIC) == 0)
                return (ENXIO);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to