From 05d2b20e20bb0e70c47909a7064b9899a1656a98 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 30 Jan 2026 10:25:13 +0100 Subject: [PATCH] xfree86: move xf86_platform_device_odev_attributes() into private header Not used by external drivers, and not part of ABI (just an inline), so no need to keep it it public SDK header. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86platformBus.h | 5 ----- hw/xfree86/common/xf86platformBus_priv.h | 6 ++++++ hw/xfree86/drivers/video/modesetting/driver.c | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/xfree86/common/xf86platformBus.h b/hw/xfree86/common/xf86platformBus.h index 134d2759fa..a594c8105d 100644 --- a/hw/xfree86/common/xf86platformBus.h +++ b/hw/xfree86/common/xf86platformBus.h @@ -37,11 +37,6 @@ struct xf86_platform_device { #define XF86_PDEV_PAUSED 0x04 #ifdef XSERVER_PLATFORM_BUS -static inline struct OdevAttributes * -xf86_platform_device_odev_attributes(struct xf86_platform_device *device) -{ - return device->attribs; -} /* * Define the legacy API only for external builds diff --git a/hw/xfree86/common/xf86platformBus_priv.h b/hw/xfree86/common/xf86platformBus_priv.h index 7326473d6f..756d8fec66 100644 --- a/hw/xfree86/common/xf86platformBus_priv.h +++ b/hw/xfree86/common/xf86platformBus_priv.h @@ -19,6 +19,12 @@ xf86_platform_odev_attributes(int index) return device->attribs; } +static inline struct OdevAttributes * +xf86_platform_device_odev_attributes(struct xf86_platform_device *device) +{ + return device->attribs; +} + int xf86platformProbe(void); int xf86platformProbeDev(DriverPtr drvp); int xf86platformAddGPUDevices(DriverPtr drvp); diff --git a/hw/xfree86/drivers/video/modesetting/driver.c b/hw/xfree86/drivers/video/modesetting/driver.c index c43df83fe1..578eea7882 100644 --- a/hw/xfree86/drivers/video/modesetting/driver.c +++ b/hw/xfree86/drivers/video/modesetting/driver.c @@ -65,7 +65,7 @@ #include "xf86xv.h" #include #ifdef XSERVER_PLATFORM_BUS -#include "xf86platformBus.h" +#include "xf86platformBus_priv.h" #endif #ifdef XSERVER_LIBPCIACCESS #include