From 5db19b55732cff0258ae7bd6fb20a88e80218233 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 22 Apr 2025 20:01:21 +0200 Subject: [PATCH] dri: unexport dri3_send_open_reply() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- dri3/dri3.h | 3 --- dri3/dri3_priv.h | 3 +++ hw/xwayland/xwayland-glamor-gbm.c | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dri3/dri3.h b/dri3/dri3.h index 14f9a1efa..33a91ecfb 100644 --- a/dri3/dri3.h +++ b/dri3/dri3.h @@ -142,9 +142,6 @@ typedef struct dri3_screen_info { extern _X_EXPORT Bool dri3_screen_init(ScreenPtr screen, const dri3_screen_info_rec *info); -extern _X_EXPORT int -dri3_send_open_reply(ClientPtr client, int fd); - extern _X_EXPORT uint32_t drm_format_for_depth(uint32_t depth, uint32_t bpp); diff --git a/dri3/dri3_priv.h b/dri3/dri3_priv.h index 71d2da957..b1e0639fd 100644 --- a/dri3/dri3_priv.h +++ b/dri3/dri3_priv.h @@ -105,4 +105,7 @@ dri3_get_supported_modifiers(ScreenPtr screen, DrawablePtr drawable, int dri3_import_syncobj(ClientPtr client, ScreenPtr screen, XID id, int fd); +int +dri3_send_open_reply(ClientPtr client, int fd); + #endif /* _DRI3PRIV_H_ */ diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index 05668b8e9..b8bf4e137 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -55,6 +55,8 @@ #include #include "drm-client-protocol.h" +#include "dri3/dri3_priv.h" + #include "xwayland-glamor.h" #include "xwayland-glamor-gbm.h" #include "xwayland-pixmap.h"