[PATCH 2/5] node_device: Move DMI_DEVPATH into node_device_udev.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/node_device/node_device_udev.c | 2 ++
 src/node_device/node_device_udev.h | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/node_device/node_device_udev.c b/src/node_device/node_device_udev.c
index 07c10f0d88..24ef1c25a9 100644
--- a/src/node_device/node_device_udev.c
+++ b/src/node_device/node_device_udev.c
@@ -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;
diff --git a/src/node_device/node_device_udev.h b/src/node_device/node_device_udev.h
index fac0caf5fb..911eda2c80 100644
--- a/src/node_device/node_device_udev.h
+++ b/src/node_device/node_device_udev.h
@@ -21,5 +21,3 @@
 #pragma once
 
 #include <libudev.h>
-
-#define DMI_DEVPATH "/sys/devices/virtual/dmi/id"
-- 
2.37.4




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux