From: Michal Privoznik Date: Tue, 25 Oct 2022 08:19:46 +0000 (+0200) Subject: node_device: Move DMI_DEVPATH into node_device_udev.c X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a9db75ad3a04ddb3515c8df1bf818e662d673b14;p=libvirt.git node_device: Move DMI_DEVPATH into node_device_udev.c The DMI_DEVPATH macro is used exclusively within node_device_udev.c. There's no need to expose it. Signed-off-by: Michal Privoznik Reviewed-by: Jonathon Jongsma --- 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 - -#define DMI_DEVPATH "/sys/devices/virtual/dmi/id"