]> xenbits.xensource.com Git - libvirt.git/commitdiff
udev: Don't try to dump DMI on non-intel archs
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Jul 2011 14:48:49 +0000 (16:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 20 Jul 2011 08:03:09 +0000 (10:03 +0200)
DMI is Intel & Intel-compatible specific. Don't try to dump information
on non-compatible architectures, which results only in error message in
logs.

src/node_device/node_device_udev.c

index a6b5b2e8b8b96a211faeaa75f9cee1bfb4af2065..2c5d0160e8cdb588dbea884938298794f99ac114 100644 (file)
@@ -1477,6 +1477,8 @@ out:
 }
 
 
+/* DMI is intel-compatible specific */
+#if defined(__x86_64__) || defined(__i386__) || defined(__amd64__)
 static void
 udevGetDMIData(union _virNodeDevCapData *data)
 {
@@ -1549,6 +1551,7 @@ out:
     }
     return;
 }
+#endif
 
 
 static int udevSetupSystemDev(void)
@@ -1573,7 +1576,9 @@ static int udevSetupSystemDev(void)
         goto out;
     }
 
+#if defined(__x86_64__) || defined(__i386__) || defined(__amd64__)
     udevGetDMIData(&def->caps->data);
+#endif
 
     dev = virNodeDeviceAssignDef(&driverState->devs, def);
     if (dev == NULL) {