[PATCH 4/5] node_device: Move fwd declaration of udevNodeRegister() into correct header file

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

 



Currently, udevNodeRegister() is forward declared in
node_device_driver.h even though the function is implemented in
node_device_udev.c which warrants node_device_udev.h header file.
Move the declaration into the correct file.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 src/node_device/node_device_driver.c | 3 +++
 src/node_device/node_device_driver.h | 6 ------
 src/node_device/node_device_udev.h   | 3 +++
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/node_device/node_device_driver.c b/src/node_device/node_device_driver.c
index 8e93b0dd6f..5bde05d593 100644
--- a/src/node_device/node_device_driver.c
+++ b/src/node_device/node_device_driver.c
@@ -35,6 +35,9 @@
 #include "node_device_conf.h"
 #include "node_device_event.h"
 #include "node_device_driver.h"
+#if WITH_UDEV
+# include "node_device_udev.h"
+#endif
 #include "virvhba.h"
 #include "viraccessapicheck.h"
 #include "virutil.h"
diff --git a/src/node_device/node_device_driver.h b/src/node_device/node_device_driver.h
index 7311b603ac..6f835bc71a 100644
--- a/src/node_device/node_device_driver.h
+++ b/src/node_device/node_device_driver.h
@@ -28,12 +28,6 @@
 
 #define LINUX_NEW_DEVICE_WAIT_TIME 60
 
-#ifdef WITH_UDEV
-int
-udevNodeRegister(void);
-#endif
-
-
 typedef enum {
     MDEVCTL_CMD_START,
     MDEVCTL_CMD_STOP,
diff --git a/src/node_device/node_device_udev.h b/src/node_device/node_device_udev.h
index 8f60cbfe1b..3d1a156863 100644
--- a/src/node_device/node_device_udev.h
+++ b/src/node_device/node_device_udev.h
@@ -19,3 +19,6 @@
  */
 
 #pragma once
+
+int
+udevNodeRegister(void);
-- 
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