mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] fs: fix doc warnings in ioctl.c
@ 2021-06-08  2:45 Baokun Li
  0 siblings, 0 replies; only message in thread
From: Baokun Li @ 2021-06-08  2:45 UTC (permalink / raw)
  To: viro, linux-fsdevel, linux-kernel
  Cc: weiyongjun1, yuehaibing, yangjihong1, yukuai3, libaokun1

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'

Signed-off-by: Baokun Li <libaokun1@huawei.com>
---
 fs/ioctl.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/fs/ioctl.c b/fs/ioctl.c
index 1e2204fa9963..b0ef5089ff29 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -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
  *
-- 
2.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-08  2:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  2:45 [PATCH -next] fs: fix doc warnings in ioctl.c Baokun Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®