From 1749a8bdfd501389de7299af5247a6d91389dfd6 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 10 Nov 2025 11:19:37 +0100 Subject: [PATCH] config: unexport config_init() and config_fini() Those aren't used by any drivers, so no need to keep them public. Signed-off-by: Enrico Weigelt, metux IT consult --- config/hotplug_priv.h | 4 +++- hw/kdrive/src/kinput.c | 2 +- hw/xfree86/os-support/xf86_os_support.h | 2 -- include/hotplug.h | 5 ----- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/config/hotplug_priv.h b/config/hotplug_priv.h index 426c2abd67..2aebba3dd9 100644 --- a/config/hotplug_priv.h +++ b/config/hotplug_priv.h @@ -31,7 +31,6 @@ #include -#include "hotplug.h" #include "list.h" /* Bump this each time you add something to the struct @@ -84,4 +83,7 @@ xf86_find_platform_device_by_devnum(unsigned int major, unsigned int minor); void config_pre_init(void); +void config_init(void); +void config_fini(void); + #endif /* _XSERVER_HOTPLUG_PRIV_H */ diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index 302b928fd8..30fd28bb78 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -55,7 +55,7 @@ #include "optionstr.h" #if defined(CONFIG_UDEV) || defined(CONFIG_HAL) -#include "hotplug.h" +#include "config/hotplug_priv.h" #endif #ifdef KDRIVE_EVDEV diff --git a/hw/xfree86/os-support/xf86_os_support.h b/hw/xfree86/os-support/xf86_os_support.h index b9aebb0a27..9076eba0d4 100644 --- a/hw/xfree86/os-support/xf86_os_support.h +++ b/hw/xfree86/os-support/xf86_os_support.h @@ -52,8 +52,6 @@ typedef struct { void xf86OSInitVidMem(VidMemInfoPtr); #ifdef XSERVER_PLATFORM_BUS -#include "hotplug.h" - struct OdevAttributes; void diff --git a/include/hotplug.h b/include/hotplug.h index 1b9e63c043..6e0b0ace22 100644 --- a/include/hotplug.h +++ b/include/hotplug.h @@ -26,9 +26,4 @@ #ifndef HOTPLUG_H #define HOTPLUG_H -#include - -extern _X_EXPORT void config_init(void); -extern _X_EXPORT void config_fini(void); - #endif /* HOTPLUG_H */