syscalls/mprotect04: Remove itanium specific code
This fixes compilation error for itanium which was broken since 94f5be719.
While it'd be trivial to update that code to comply other arch code,
we agreed [2] to keep the fix as this arch is fading out and distros
officially supporting it are going to EOL in ~6 months.
Now, at least, the code compiles on itanium.
Fixes: 94f5be719 ("syscalls/mprotect04: align exec_func to 64 bytes")
[1] https://patchwork.ozlabs.org/patch/1137333/
Signed-off-by: Petr Vorel <pvorel@suse.cz>
diff --git a/testcases/kernel/syscalls/mprotect/mprotect04.c b/testcases/kernel/syscalls/mprotect/mprotect04.c
index a014ab6..1a0fa0e 100644
--- a/testcases/kernel/syscalls/mprotect/mprotect04.c
+++ b/testcases/kernel/syscalls/mprotect/mprotect04.c
@@ -128,33 +128,6 @@
SAFE_MUNMAP(cleanup, addr, page_sz);
}
-#ifdef __ia64__
-
-static char exec_func[] __attribute__ ((aligned (64))) = {
- 0x11, 0x00, 0x00, 0x00, 0x01, 0x00, /* nop.m 0x0 */
- 0x00, 0x00, 0x00, 0x02, 0x00, 0x80, /* nop.i 0x0 */
- 0x08, 0x00, 0x84, 0x00, /* br.ret.sptk.many b0;; */
-};
-
-struct func_desc {
- uint64_t func_addr;
- uint64_t glob_pointer;
-};
-
-static __attribute__((noinline)) void *get_func(void *mem)
-{
- static struct func_desc fdesc;
-
- memcpy(mem, exec_func, sizeof(exec_func));
-
- fdesc.func_addr = (uint64_t)mem;
- fdesc.glob_pointer = 0;
-
- return &fdesc;
-}
-
-#else
-
static void exec_func(void)
{
return;
@@ -251,8 +224,6 @@
return func_copy_start;
}
-#endif
-
static void testfunc_protexec(void)
{
func_ptr_t func;