Enrico Weigelt, metux IT consult
57a7253fd2
( !1705 ) xwin: drop wrapping on ScreenRec->CreateWindow()
...
Instead of complicated wrapping, just call fbCreateWindow directly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
467b254497
( !1705 ) xwin: drop wrapping on ScreenRec->PositionWindow()
...
Instead of complicated wrapping, just call fbPositionWindow directly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
390e3aa0d4
( !1705 ) xwin: drop wrapping on ScreenRec->DestroyWindow()
...
Instead of complicated wrapping, just call fbDestroyWindow directly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
6329391415
( !1949 ) xfree86: modeset: call miCreateScreenResources() directly
...
No need for complicated wrapping/unwrapping: it's always just
miCreateResources() anyway - so we can call it directly.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
2c90bc5ab6
( !1950 ) xfixes: use embedded private instead of pointer
...
The private struct is pretty small and it needs to be allocated anyways,
so save an extra allocation by directly embedding it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
b9d7c4dd42
( !1952 ) xfree86: fbdevhw: drop unused FBDEVHW_PLANES
...
Not used anywhere, neither internal nor external.
(BTW, those defines are only used within xf86-video-fbdev, so they maybe
could be moved over there.)
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
5ac0ed1e8a
( !1952 ) xfree86: fbdevhw: drop unused fbdevHWSaveScreenWeak()
...
Not used anywhere, neither internal nor external (drivers), so no need
to keep it any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
9a99a5bd5e
( !1952 ) xfree86: fbdevhw: drop unused fbdevHWEnterVTWeak()
...
Not used anywhere, neither internal nor external (drivers), so no need
to keep it any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
9f5d3ae282
( !1952 ) xfree86: fbdevhw: drop unused fbdevHWGetBuildinMode()
...
Not used anywhere, neither internal nor external (drivers), so no need
to keep it any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
141b8aecdf
( !1952 ) xfree86: fbdevhw: drop unused fbdevHWGetFD()
...
Not used anywhere, neither internal nor external (drivers), so no need
to keep it any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
292bd173fc
( !1952 ) xfree86: fbdevhw: drop unused fbdevHWFreeRec()
...
Not used anywhere, neither internal nor external (drivers), so no need
to keep it any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
fa9ec23054
( !1952 ) 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 <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
f3de3f669d
( !1954 ) fb: unexport fbGetScreenPixmap() macro
...
No external users, so no need to keep it exported any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
f1439509b4
( !1954 ) fb: unexport fbGetGCPrivate() macro
...
Not used by drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
91aa8fe959
( !1954 ) fb: unexport FbDash*() macros
...
No external users, so no need to keep them exported.
(note that xf86-video-intel has it's own copies of them)
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
4b5815f147
( !1954 ) fb: unexport FbMaskBits() macro
...
No external users, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
6af649e47e
( !1954 ) fb: unexport FB_HEAD_BITS and FB_TAIL_BITS macros
...
Not used by any driver, so no need to keep them exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
57f44edaae
( !1954 ) fb: unexport FbBitsStrideToStipStride() macro
...
Not used by any drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
d8ea47aefa
( !1954 ) fb: move FbStipStrideToBitsStride() to fbblt.c
...
It's only consumer is fbblt.c, so move it there.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
803da17903
( !1954 ) fb: move MEMCPY_WRAPPED() and MEMSET_WRAPPED() into fbblt.c
...
Only used inside fbblt.c, so we can move them into there.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
a51a624d80
( !1954 ) fb: unexport fbListInstalledColormaps()
...
Not used by any drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
94beaee763
( !1954 ) fb: unexport fbAllocatePrivates()
...
Only used inside fb/, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
8c4ea8a0c0
( !1954 ) fb: unexport fbSetBits()
...
Only used within fb/, not by any driver, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
b827c9d1f1
( !1954 ) fb: unexport fbInitializeDrawable() and make it static
...
Only used inside fbpixmap.c (where it's defined), so can be static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
ee55cce7bf
( !1954 ) fb: unexport fbValidateDrawable()
...
Not used by any drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
7f7aeb250b
( !1954 ) fb: make fbGCFuncs static
...
Not used outside fbgc.c, so can be made static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
6ad16e7ee9
( !1954 ) fb: make fbGCOps static
...
Not used anywhere outside fbgc.c, so can be static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
f16747ecc8
( !1954 ) fb: drop obsolete fbPolyFillArc and fbPolyRectangle defines
...
Those aliases haven't been used (outside fb core itself), since XAA removal
back 17 years ago, no no need to carry them in public interface any longer.
See: 703a9645f3
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
6c14b6c00e
( !1954 ) fb: drop obsolete fbGetExpose() macro
...
Hasn't been used since 15 years so, probably should was forgotten to clean up.
See: bbbf795e6b
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
54c7518f29
( !1954 ) fb: drop obsolete FbLaneCase*() macros
...
They haven't been used for over a decade now, so no need to keem'em any longer.
(note: xf86-video-intel has it's own copy of them)
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
302fe77714
( !1954 ) fb: drop obsolete FbMaskStip macro
...
Hasn't been used since 24bpp support was dropped, almost a decade ago.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
5c0d729702
( !1954 ) fb: drop obsolete fbFillPolygon define
...
Hasn't been used since XAA removal, back 17 years ago. Probably just had been
forgotten to clean up.
See: 703a9645f3
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
f7039fa5ed
( !1954 ) fb: drop FbRotStipLeft, FbRotRight, FbRotStipRight macros
...
Not used anywhere, so can be dropped. Doesn't seem to be ever used
since added over two decades ago.
See: 9508a382f8
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
702db19fd9
( !1954 ) fb: drop commented-out FbLeftBits and FbLeftBits macros
...
Not used anywhere, so can be dropped. They always have been commented-out
since added over two decades ago.
See: 9508a382f8
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
fe9e806629
( !1954 ) fb: drop obsolete FB_STIP_ODDSTRIDE and FB_STIP_ODDPTR macro()
...
Those haven't been used for over a decade now, so no need to keep
it around any longer.
See: a198373685
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
0ffb306357
( !1955 ) Xext: geext: drop obsolete geext.h
...
This header has now become obsolete. There're also no external consumers
(drivers, etc) left, so it now finally can be dropped entirely.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
0dcd2c9692
( !1955 ) Xext: geext: unexport GERegisterExtension() and document it
...
Not used by any external module (eg drivers), so no need to keep it
exported. Also documenting it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
7236406761
( !1956 ) dri3: unexport VERIFY_DRI3_SYNCOBJ() macro
...
Not used by any drivers, so no need to keep it exported.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
66b17a99cc
( !1956 ) dri3: move dri3_syncobj_type to non-public header
...
The symbol isn't exported, thus not accessible to modules.
No need to keep it in public header.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
fac193d471
( !1957 ) fb: overlay: drop unused fbOverlaySetupScreen()
...
Not used anywhere, neither internal nor drivers, so no need to keep
it around any longer.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
0ee9f0ada6
( !1957 ) fb: overlay: make fbOverlayWindowExposures() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
7d9a5d7487
( !1957 ) fb: overlay: make fbOverlayCopyWindow() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
357a6f813e
( !1957 ) fb: overlay: make fbOverlayUpdateLayerRegion() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
ec8d204884
( !1957 ) fb: overlay: make fbOverlayPaintKey() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
160da1abc8
( !1957 ) fb: overlay: make fbOverlayCreateScreenResources() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
d81fba92f4
( !1957 ) fb: overlay: make fbOverlayWindowLayer() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
0cbb7976a9
( !1957 ) fb: overlay: make fbOverlayCloseScreen() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
28a63f6394
( !1957 ) fb: overlay: make fbOverlayCreateWindow() static
...
Not used anywhere outside fboverlay.c, so can become static.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
ca0ef0ce1e
( !1958 ) os: xdmcp: handle allocation failure
...
| ../os/xdmcp.c: In function ‘get_mcast_options’:
| ../os/xdmcp.c:1527:27: warning: dereference of possibly-NULL ‘mcastinfo’ [CWE-690] [-Wanalyzer-possible-null-dereference]
| 1527 | mcastinfo->ai = firstai;
| | ~~~~~~~~~~~~~~^~~~~~~~~
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00
Enrico Weigelt, metux IT consult
9a1302e8ba
( !1958 ) os: util: protect set_font_authorizations() from allocation failure
...
| ../os/utils.c: In function ‘set_font_authorizations’:
| ../os/utils.c:863:14: warning: dereference of possibly-NULL ‘result’ [CWE-690] [-Wanalyzer-possible-null-dereference]
| 863 | *p++ = sizeof(AUTHORIZATION_NAME) >> 8;
| | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:32 +02:00