summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-03-20 19:54:06 +0100
committerMarge Bot <emma+marge@anholt.net>2024-04-18 01:03:11 +0000
commit8081fe1206af343798db330a72b16996e53b5087 (patch)
treeb473668e85ef7bac949c80ae73aec4fad324d7b0
parent1e7085d143765d51fb06130ca737180bc13131a2 (diff)
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>
-rw-r--r--hw/xfree86/x86emu/sys.c17
1 files changed, 0 insertions, 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)
{