]> xenbits.xensource.com Git - libvirt.git/commitdiff
node_device: Move DMI_DEVPATH into node_device_udev.c
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Oct 2022 08:19:46 +0000 (10:19 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Oct 2022 06:47:32 +0000 (08:47 +0200)
The DMI_DEVPATH macro is used exclusively within
node_device_udev.c. There's no need to expose it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/node_device/node_device_udev.c
src/node_device/node_device_udev.h

index 07c10f0d88be9c816c8d4e9c83f98c54641d17c1..24ef1c25a93f40ffa8f030e4abc9c881aefe51b6 100644 (file)
@@ -52,6 +52,8 @@ VIR_LOG_INIT("node_device.node_device_udev");
 # define TYPE_RAID 12
 #endif
 
+#define DMI_DEVPATH "/sys/devices/virtual/dmi/id"
+
 typedef struct _udevEventData udevEventData;
 struct _udevEventData {
     virObjectLockable parent;
index fac0caf5fb855a4f70e69a25c79d85421bcbee72..911eda2c80fbe968952e2eb4b6d0ef46b333e586 100644 (file)
@@ -21,5 +21,3 @@
 #pragma once
 
 #include <libudev.h>
-
-#define DMI_DEVPATH "/sys/devices/virtual/dmi/id"