Skip to contentSkip to conversation

fs: get rid of warnings when built with W=1

PATCH New Xiaofei Tan 1 participant 1 message Sep 5, 2020 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: get rid of warnings when built with W=1

There are two warnings when built with W=1:

fs/open.c:887: warning: Excess function parameter 'opened' description in 'finish_open' fs/open.c:929: warning: Excess function parameter 'cred' description in 'vfs_open'

As there are two comments for deleted parameters, remove them.

---
 fs/open.c | 2 --
 1 file changed, 2 deletions(-)
fs/open.c +0 -2
index 9af548f..3f6df10 100644
@@ -869,7 +869,6 @@ static int do_dentry_open(struct file *f,
  * @file: file pointer
  * @dentry: pointer to dentry
  * @open: open callback
- * @opened: state of open
  *
  * This can be used to finish opening a file passed to i_op->atomic_open().
  *
@@ -923,7 +922,6 @@ EXPORT_SYMBOL(file_path);
  * vfs_open - open the file at the given path
  * @path: path to open
  * @file: newly allocated file with f_flag initialized
- * @cred: credentials to use
  */
 int vfs_open(const struct path *path, struct file *file)
 {
Signature · 1 line
2.8.1