From 8081fe1206af343798db330a72b16996e53b5087 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 20 Mar 2024 19:54:06 +0100 Subject: [PATCH] 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 Part-of: --- hw/xfree86/x86emu/sys.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/hw/xfree86/x86emu/sys.c b/hw/xfree86/x86emu/sys.c index 6a648bf39..d3fffa5cf 100644 --- a/hw/xfree86/x86emu/sys.c +++ b/hw/xfree86/x86emu/sys.c @@ -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) {