Files
linux-stable-mirror/include/linux
Arnd Bergmann f910aee90b syscalls: fix sys_fanotify_mark prototype
[ Upstream commit 63e2f40c9e ]

My earlier fix missed an incorrect function prototype that shows up on
native 32-bit builds:

In file included from fs/notify/fanotify/fanotify_user.c:14:
include/linux/syscalls.h:248:25: error: conflicting types for 'sys_fanotify_mark'; have 'long int(int,  unsigned int,  u32,  u32,  int,  const char *)' {aka 'long int(int,  unsigned int,  unsigned int,  unsigned int,  int,  const char *)'}
 1924 | SYSCALL32_DEFINE6(fanotify_mark,
      | ^~~~~~~~~~~~~~~~~
include/linux/syscalls.h:862:17: note: previous declaration of 'sys_fanotify_mark' with type 'long int(int,  unsigned int,  u64,  int, const char *)' {aka 'long int(int,  unsigned int,  long long unsigned int,  int,  const char *)'}

On x86 and powerpc, the prototype is also wrong but hidden in an #ifdef,
so it never caused problems.

Add another alternative declaration that matches the conditional function
definition.

Fixes: 403f17a330 ("parisc: use generic sys_fanotify_mark implementation")
Cc: stable@vger.kernel.org
Reported-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-07-05 09:31:59 +02:00
..
2023-07-19 16:21:11 +02:00
2024-06-12 11:03:08 +02:00
2024-02-23 09:12:51 +01:00
2024-07-05 09:31:59 +02:00
2023-12-20 17:00:20 +01:00
2024-03-26 18:21:02 -04:00
2024-01-10 17:10:30 +01:00
2024-05-17 11:55:52 +02:00
2024-06-21 14:35:40 +02:00
2024-05-25 16:21:31 +02:00
2024-04-03 15:19:44 +02:00
2023-10-10 22:00:35 +02:00
2023-05-30 14:03:22 +01:00
2023-11-20 11:51:55 +01:00
2024-04-03 15:19:34 +02:00
2024-01-25 15:27:20 -08:00
2024-06-12 11:03:21 +02:00
2023-11-28 17:07:03 +00:00
2023-10-19 23:08:50 +02:00
2023-10-19 23:08:50 +02:00
2023-07-19 16:21:54 +02:00
2023-12-13 18:39:08 +01:00
2023-08-16 18:27:20 +02:00