node_device: Move fwd declaration of udevNodeRegister() into correct header file

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>
This commit is contained in:
Michal Privoznik 2022-10-25 16:27:14 +02:00
parent 6283e10062
commit 6f45d2c181
3 changed files with 6 additions and 6 deletions

View 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"

View File

@ -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,

View File

@ -19,3 +19,6 @@
*/
#pragma once
int
udevNodeRegister(void);