[PATCH] delete_module.2: SYNOPSIS: Fix prototype parameter types
From: Alejandro Colomar <hidden>
Date: 2020-12-30 21:42:54
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Alejandro Colomar <hidden>
Date: 2020-12-30 21:42:54
Subsystem:
the rest · Maintainer:
Linus Torvalds
The Linux kernel uses 'unsigned int' instead of 'int' for the
'flags' parameter. As glibc provides no wrapper, use the same
type the kernel uses.
......
$ syscall='delete_module';
$ find linux/ -type f -name '*.c' \
|xargs pcregrep -Mn "(?s)^[\w_]*SYSCALL_DEFINE.\(${syscall},.*?\)";
linux/kernel/module.c:977:
SYSCALL_DEFINE2(delete_module, const char __user *, name_user,
unsigned int, flags)
Signed-off-by: Alejandro Colomar <redacted>
---
man2/delete_module.2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man2/delete_module.2 b/man2/delete_module.2
index e63545d51..1030e9698 100644
--- a/man2/delete_module.2
+++ b/man2/delete_module.2@@ -27,7 +27,7 @@ delete_module \- unload a kernel module .SH SYNOPSIS .nf -.BI "int delete_module(const char *" name ", int " flags ); +.BI "int delete_module(const char *" name ", unsigned int " flags ); .fi .PP .IR Note :
--
2.29.2