From e0b143cfd920f5d384692863831fdc3f087abaf5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 May 2025 11:51:16 +0200 Subject: [PATCH] xfree86: fbdevhw: make fbdevHWGetRec() static Not used by any external consumers, only within the same source file, so can become static. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/fbdevhw/fbdevhw.c | 2 +- hw/xfree86/fbdevhw/fbdevhw.h | 1 - hw/xfree86/fbdevhw/fbdevhwstub.c | 6 ------ 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c index 74336087a..7ef13a944 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.c +++ b/hw/xfree86/fbdevhw/fbdevhw.c @@ -83,7 +83,7 @@ enum { FBIOBLANK_UNSUPPORTED = 0, }; -Bool +static Bool fbdevHWGetRec(ScrnInfoPtr pScrn) { if (fbdevHWPrivateIndex < 0) diff --git a/hw/xfree86/fbdevhw/fbdevhw.h b/hw/xfree86/fbdevhw/fbdevhw.h index 4984ccf89..a4d799d65 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.h +++ b/hw/xfree86/fbdevhw/fbdevhw.h @@ -11,7 +11,6 @@ #define FBDEVHW_TEXT 3 /* Text/attributes */ #define FBDEVHW_VGA_PLANES 4 /* EGA/VGA planes */ -extern _X_EXPORT Bool fbdevHWGetRec(ScrnInfoPtr pScrn); extern _X_EXPORT void fbdevHWFreeRec(ScrnInfoPtr pScrn); extern _X_EXPORT int fbdevHWGetFD(ScrnInfoPtr pScrn); diff --git a/hw/xfree86/fbdevhw/fbdevhwstub.c b/hw/xfree86/fbdevhw/fbdevhwstub.c index 097003888..8a489050a 100644 --- a/hw/xfree86/fbdevhw/fbdevhwstub.c +++ b/hw/xfree86/fbdevhw/fbdevhwstub.c @@ -8,12 +8,6 @@ /* Stubs for the static server on platforms that don't support fbdev */ -Bool -fbdevHWGetRec(ScrnInfoPtr pScrn) -{ - return FALSE; -} - void fbdevHWFreeRec(ScrnInfoPtr pScrn) {