]> xenbits.xensource.com Git - libvirt.git/commitdiff
node_device: Move fwd declaration of udevNodeRegister() into correct header file
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Oct 2022 14:27:14 +0000 (16:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 26 Oct 2022 06:48:23 +0000 (08:48 +0200)
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@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/node_device/node_device_driver.c
src/node_device/node_device_driver.h
src/node_device/node_device_udev.h

index 8e93b0dd6fcb3c40aeed99ebbf3213b7af7cc495..5bde05d5935744651d2bd87ce397d50ba02fd61a 100644 (file)
@@ -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"
index 7311b603ac16a853e53621bc931d5bf2d5cb4557..6f835bc71a6c61b52349e62ddfc7db9eed119cf2 100644 (file)
 
 #define LINUX_NEW_DEVICE_WAIT_TIME 60
 
-#ifdef WITH_UDEV
-int
-udevNodeRegister(void);
-#endif
-
-
 typedef enum {
     MDEVCTL_CMD_START,
     MDEVCTL_CMD_STOP,
index 8f60cbfe1b3920debcbfd2a1594ce116179239dd..3d1a156863339afb1e202a6717aa543fda483d98 100644 (file)
@@ -19,3 +19,6 @@
  */
 
 #pragma once
+
+int
+udevNodeRegister(void);