From da32a8b91ae10a81626a3d2ebd0dd60e9309b6c9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 21 May 2025 11:08:47 +0200 Subject: [PATCH] xfree86: xf86.h: unexport xf86ModeStatusToString() Not used by any external drivers. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 2 -- hw/xfree86/common/xf86Mode.c | 2 +- hw/xfree86/common/xf86_priv.h | 3 +++ hw/xfree86/int10/vbeModes.c | 2 +- hw/xfree86/modes/xf86Modes.c | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index f700c9144..59c782cb5 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -243,8 +243,6 @@ xf86GetBppFromDepth(ScrnInfoPtr pScrn, int depth); /* xf86Mode.c */ -extern _X_EXPORT const char * -xf86ModeStatusToString(ModeStatus status); extern _X_EXPORT ModeStatus xf86CheckModeForMonitor(DisplayModePtr mode, MonPtr monitor); extern _X_EXPORT ModeStatus diff --git a/hw/xfree86/common/xf86Mode.c b/hw/xfree86/common/xf86Mode.c index ae50ab1ae..0aa4ea3e0 100644 --- a/hw/xfree86/common/xf86Mode.c +++ b/hw/xfree86/common/xf86Mode.c @@ -93,7 +93,7 @@ #include "os.h" #include "servermd.h" #include "globals.h" -#include "xf86.h" +#include "xf86_priv.h" #include "xf86Priv.h" #include "edid.h" diff --git a/hw/xfree86/common/xf86_priv.h b/hw/xfree86/common/xf86_priv.h index 337840033..a00351e95 100644 --- a/hw/xfree86/common/xf86_priv.h +++ b/hw/xfree86/common/xf86_priv.h @@ -28,4 +28,7 @@ void xf86EnableInputDeviceForVTSwitch(InputInfoPtr pInfo); void xf86DeleteDriver(int drvIndex); void xf86DeleteScreen(ScrnInfoPtr pScrn); +/* xf86Mode.c */ +const char * xf86ModeStatusToString(ModeStatus status); + #endif /* _XSERVER_XF86_PRIV_H */ diff --git a/hw/xfree86/int10/vbeModes.c b/hw/xfree86/int10/vbeModes.c index 0cfaf3519..107eae2ee 100644 --- a/hw/xfree86/int10/vbeModes.c +++ b/hw/xfree86/int10/vbeModes.c @@ -38,7 +38,7 @@ #include "os/log_priv.h" -#include "xf86.h" +#include "xf86_priv.h" #include "vbe.h" #include "vbeModes.h" diff --git a/hw/xfree86/modes/xf86Modes.c b/hw/xfree86/modes/xf86Modes.c index fdcd26a31..eb958c3c4 100644 --- a/hw/xfree86/modes/xf86Modes.c +++ b/hw/xfree86/modes/xf86Modes.c @@ -31,6 +31,7 @@ #include +#include "xf86_priv.h" #include "xf86Config.h" #include "xf86Modes.h" #include "xf86Priv.h"