From 989c46fc9d2c22b340ae14988f775f380e3e3755 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 28 Jun 2024 11:38:58 +0200 Subject: [PATCH] dix: unexport FakeAllocColor() Not used by any driver/module, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- dix/colormap_priv.h | 3 +++ hw/xfree86/ramdac/xf86HWCurs.c | 6 +++--- include/colormap.h | 3 --- mi/misprite.c | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/dix/colormap_priv.h b/dix/colormap_priv.h index 6e7dff8aa..c348b0408 100644 --- a/dix/colormap_priv.h +++ b/dix/colormap_priv.h @@ -6,6 +6,7 @@ #define _XSERVER_DIX_COLORMAP_PRIV_H #include +#include #include "dix/screenint_priv.h" #include "include/colormap.h" @@ -28,4 +29,6 @@ int CopyColormapAndFree(Colormap mid, ColormapPtr pSrc, int client); int AllocColor(ColormapPtr pmap, unsigned short *pred, unsigned short *pgreen, unsigned short *pblue, Pixel *pPix, int client ); +void FakeAllocColor(ColormapPtr pmap, xColorItem *item); + #endif /* _XSERVER_DIX_COLORMAP_PRIV_H */ diff --git a/hw/xfree86/ramdac/xf86HWCurs.c b/hw/xfree86/ramdac/xf86HWCurs.c index eba503d51..4ccd55eaa 100644 --- a/hw/xfree86/ramdac/xf86HWCurs.c +++ b/hw/xfree86/ramdac/xf86HWCurs.c @@ -4,12 +4,13 @@ #endif #include +#include + +#include "dix/colormap_priv.h" #include "misc.h" #include "xf86.h" #include "xf86_OSproc.h" - -#include #include "scrnintstr.h" #include "pixmapstr.h" #include "windowstr.h" @@ -19,7 +20,6 @@ #include "mipointer.h" #include "randrstr.h" #include "xf86CursorPriv.h" - #include "servermd.h" static void diff --git a/include/colormap.h b/include/colormap.h index 5279998f8..14cec9b91 100644 --- a/include/colormap.h +++ b/include/colormap.h @@ -74,9 +74,6 @@ typedef CARD32 Pixel; /* moved to screenint.h: typedef struct _ColormapRec *ColormapPtr */ typedef struct _colorResource *colorResourcePtr; -extern _X_EXPORT void FakeAllocColor(ColormapPtr /*pmap */ , - xColorItem * /*item */ ); - extern _X_EXPORT void FakeFreeColor(ColormapPtr /*pmap */ , Pixel /*pixel */ ); diff --git a/mi/misprite.c b/mi/misprite.c index e0af13ad9..87e6fbe8e 100644 --- a/mi/misprite.c +++ b/mi/misprite.c @@ -35,7 +35,10 @@ in this Software without prior written authorization from The Open Group. #include #include +#include +#include +#include "dix/colormap_priv.h" #include "dix/dix_priv.h" #include "misc.h" @@ -43,7 +46,6 @@ in this Software without prior written authorization from The Open Group. #include "input.h" #include "mi.h" #include "cursorstr.h" -#include #include "scrnintstr.h" #include "colormapst.h" #include "windowstr.h" @@ -51,7 +53,6 @@ in this Software without prior written authorization from The Open Group. #include "mipointer.h" #include "misprite.h" #include "dixfontstr.h" -#include #include "inputstr.h" #include "damage.h"