Skip to contentSkip to conversation

fs: fix doc warnings in ioctl.c

PATCH New Baokun Li 1 participant 1 message Jun 8, 2021

Subsystems (2)
lore
Share & tools
lore

Baokun Li

author
#0 lore raw

PATCH 1/1 fs: fix doc warnings in ioctl.c

Fixes the following W=1 kernel build warning(s):

fs/ioctl.c:1101: warning: Function parameter or
member 'file' not described in 'compat_ptr_ioctl'
fs/ioctl.c:1101: warning: Function parameter or
member 'cmd' not described in 'compat_ptr_ioctl'
fs/ioctl.c:1101: warning: Function parameter or
member 'arg' not described in 'compat_ptr_ioctl'

---
 fs/ioctl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/ioctl.c +3 -1
index 1e2204fa9963..b0ef5089ff29 100644
@@ -1076,7 +1076,9 @@ SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg)
 #ifdef CONFIG_COMPAT
 /**
  * compat_ptr_ioctl - generic implementation of .compat_ioctl file operation
- *
+ * @file:	open file to invoke ioctl method on
+ * @cmd:	ioctl command to execute
+ * @arg:	command-specific argument for ioctl
  * This is not normally called as a function, but instead set in struct
  * file_operations as
  *
Signature · 1 line
2.31.1