xfree86: x86emu: drop unused ldq_u()

fix warning on unused function:

> ../hw/xfree86/x86emu/sys.c:69:1: warning: unused function 'ldq_u' [-Wunused-function]
> ldq_u(u64 * p)
> ^
> ../hw/xfree86/x86emu/sys.c:95:1: warning: unused function 'stq_u' [-Wunused-function]
> stq_u(u64 val, u64 * p)
> ^

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1428>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-20 19:54:06 +01:00 committed by Marge Bot
parent 1e7085d143
commit 8081fe1206

View File

@ -65,14 +65,6 @@ struct __una_u16 {
/* Elemental unaligned loads */
static __inline__ u64
ldq_u(u64 * p)
{
const struct __una_u64 *ptr = (const struct __una_u64 *) p;
return ptr->x;
}
static __inline__ u32
ldl_u(u32 * p)
{
@ -116,15 +108,6 @@ stw_u(u16 val, u16 * p)
}
#else /* !__GNUC__ */
static __inline__ u64
ldq_u(u64 * p)
{
u64 ret;
memmove(&ret, p, sizeof(*p));
return ret;
}
static __inline__ u32
ldl_u(u32 * p)
{