From 1fbddfd8b13ed6fcf321db58e4bee8f32c23c0b0 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 21 May 2025 10:21:49 +0200 Subject: [PATCH] xfree86: xf86.h: unexport xf86FindScreenForEntity() Not used by any external drivers. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 1 - hw/xfree86/common/xf86Bus.h | 1 + hw/xfree86/int10/vbe.c | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index bdfe78e40..067bc9eef 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -105,7 +105,6 @@ extern _X_EXPORT void xf86SetEntityInstanceForScreen(ScrnInfoPtr pScrn, extern _X_EXPORT int xf86GetNumEntityInstances(int entityIndex); extern _X_EXPORT GDevPtr xf86GetDevFromEntity(int entityIndex, int instance); extern _X_EXPORT EntityInfoPtr xf86GetEntityInfo(int entityIndex); -extern _X_EXPORT ScrnInfoPtr xf86FindScreenForEntity(int entityIndex); #define xf86SetLastScrnFlag(e, s) do { } while (0) diff --git a/hw/xfree86/common/xf86Bus.h b/hw/xfree86/common/xf86Bus.h index a6581b470..96c1275e0 100644 --- a/hw/xfree86/common/xf86Bus.h +++ b/hw/xfree86/common/xf86Bus.h @@ -76,5 +76,6 @@ Bool xf86ComparePciBusString(const char *busID, int bus, int device, int func); Bool xf86DriverHasEntities(DriverPtr drvp); void xf86RemoveEntityFromScreen(ScrnInfoPtr pScrn, int entityIndex); Bool xf86IsEntityPrimary(int entityIndex); +ScrnInfoPtr xf86FindScreenForEntity(int entityIndex); #endif /* _XF86_BUS_H */ diff --git a/hw/xfree86/int10/vbe.c b/hw/xfree86/int10/vbe.c index ffaffc81b..01a14be83 100644 --- a/hw/xfree86/int10/vbe.c +++ b/hw/xfree86/int10/vbe.c @@ -15,10 +15,12 @@ #include +#include + #include "xf86.h" #include "xf86Modes.h" #include "vbe.h" -#include +#include "xf86Bus.h" #define VERSION(x) VBE_VERSION_MAJOR(x),VBE_VERSION_MINOR(x)