[PATCH 4/5] hppa: Drop special handling of fanotify syscalls on parisc

Helge Deller deller at gmx.de
Sun Jan 29 21:08:52 UTC 2023


The fanotify syscall in the parisc kernel has been fixed and now behaves
like the other architectures, so drop the special workaround for hppa.

Signed-off-by: Helge Deller <deller at gmx.de>
---
 src/fanotify.c        | 4 ----
 tests/fanotify_mark.c | 5 -----
 2 files changed, 9 deletions(-)

diff --git a/src/fanotify.c b/src/fanotify.c
index 65cc41cc3..8c66325bd 100644
--- a/src/fanotify.c
+++ b/src/fanotify.c
@@ -58,10 +58,6 @@ SYS_FUNC(fanotify_mark)
 	 */
 	unsigned long long mask = 0;
 	unsigned int argn = getllval(tcp, &mask, 2);
-#ifdef HPPA
-	/* Parsic is weird.  See arch/parisc/kernel/sys_parisc32.c.  */
-	mask = (mask << 32) | (mask >> 32);
-#endif
 	printflags64(fan_event_flags, mask, "FAN_???");
 	tprint_arg_next();

diff --git a/tests/fanotify_mark.c b/tests/fanotify_mark.c
index c22e1f495..c8d58386e 100644
--- a/tests/fanotify_mark.c
+++ b/tests/fanotify_mark.c
@@ -51,12 +51,7 @@ do_call(kernel_ulong_t fd, kernel_ulong_t flags, const char *flags_str,
    || defined LINUX_MIPSN32
 		mask,
 #  else
-/* arch/parisc/kernel/sys_parisc32.c, commit ab8a261b */
-#   ifdef HPPA
-		LL_VAL_TO_PAIR((mask << 32) | (mask >> 32)),
-#   else
 		LL_VAL_TO_PAIR(mask),
-#   endif
 #  endif
 		dirfd, path);

--
2.38.1



More information about the Strace-devel mailing list