From 149f52dc9c8212a5a5e00ab3d2e1432b861cec23 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 21 May 2025 09:43:54 +0200 Subject: [PATCH] xfree86: xf86.h: unexport xf86ConfigDRI field Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 2 -- hw/xfree86/common/xf86Config.h | 2 ++ hw/xfree86/dri/dri.c | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index 7f3bd277b..02988aee3 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -72,8 +72,6 @@ extern _X_EXPORT Bool sbusSlotClaimed; extern _X_EXPORT int platformSlotClaimed; #endif -extern _X_EXPORT confDRIRec xf86ConfigDRI; - #define XF86SCRNINFO(p) xf86ScreenToScrn(p) #define XF86FLIP_PIXELS() \ diff --git a/hw/xfree86/common/xf86Config.h b/hw/xfree86/common/xf86Config.h index be5c2bbfa..7be9f3ed7 100644 --- a/hw/xfree86/common/xf86Config.h +++ b/hw/xfree86/common/xf86Config.h @@ -69,4 +69,6 @@ GDevPtr autoConfigDevice(GDevPtr preconf_device); void xf86SetVerbosity(int verb); void xf86SetLogVerbosity(int verb); +extern confDRIRec xf86ConfigDRI; + #endif /* _xf86_config_h */ diff --git a/hw/xfree86/dri/dri.c b/hw/xfree86/dri/dri.c index ab3b2fc30..8eb9e62c9 100644 --- a/hw/xfree86/dri/dri.c +++ b/hw/xfree86/dri/dri.c @@ -73,6 +73,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "inputstr.h" #include "xf86VGAarbiter_priv.h" #include "xf86Extensions.h" +#include "xf86Config.h" static int DRIEntPrivIndex = -1; static DevPrivateKeyRec DRIScreenPrivKeyRec;