diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-03-21 10:29:30 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-18 01:03:11 +0000 |
commit | a0daa6f1fe82be72f6341e0288304d7de8b84dea (patch) | |
tree | acfa00994e72da6e89a2132db9f92321c006604d | |
parent | 8081fe1206af343798db330a72b16996e53b5087 (diff) |
xfree86: x86emu: drop unused stq_u()
fix warning on unused function:
> ../hw/xfree86/x86emu/sys.c:87: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.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/hw/xfree86/x86emu/sys.c b/hw/xfree86/x86emu/sys.c index d3fffa5cf..5622c5fc0 100644 --- a/hw/xfree86/x86emu/sys.c +++ b/hw/xfree86/x86emu/sys.c @@ -84,14 +84,6 @@ ldw_u(u16 * p) /* Elemental unaligned stores */ static __inline__ void -stq_u(u64 val, u64 * p) -{ - struct __una_u64 *ptr = (struct __una_u64 *) p; - - ptr->x = val; -} - -static __inline__ void stl_u(u32 val, u32 * p) { struct __una_u32 *ptr = (struct __una_u32 *) p; @@ -127,14 +119,6 @@ ldw_u(u16 * p) } static __inline__ void -stq_u(u64 val, u64 * p) -{ - u64 tmp = val; - - memmove(p, &tmp, sizeof(*p)); -} - -static __inline__ void stl_u(u32 val, u32 * p) { u32 tmp = val; |