Skip to content

Commit 64ead52

Browse files
Wang Haitorvalds
authored andcommitted
nilfs2: fix some kernel-doc warnings for nilfs2
Fixes the following W=1 kernel build warning(s): fs/nilfs2/bmap.c:378: warning: Excess function parameter 'bhp' description in 'nilfs_bmap_assign' fs/nilfs2/cpfile.c:907: warning: Excess function parameter 'status' description in 'nilfs_cpfile_change_cpmode' fs/nilfs2/cpfile.c:946: warning: Excess function parameter 'stat' description in 'nilfs_cpfile_get_stat' fs/nilfs2/page.c:76: warning: Excess function parameter 'inode' description in 'nilfs_forget_buffer' fs/nilfs2/sufile.c:563: warning: Excess function parameter 'stat' description in 'nilfs_sufile_get_stat' Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/1601386269-2423-1-git-send-email-konishi.ryusuke@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 589f6b5 commit 64ead52

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

fs/nilfs2/bmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *bmap,
355355
/**
356356
* nilfs_bmap_assign - assign a new block number to a block
357357
* @bmap: bmap
358-
* @bhp: pointer to buffer head
358+
* @bh: pointer to buffer head
359359
* @blocknr: block number
360360
* @binfo: block information
361361
*

fs/nilfs2/cpfile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ int nilfs_cpfile_is_snapshot(struct inode *cpfile, __u64 cno)
889889
* nilfs_cpfile_change_cpmode - change checkpoint mode
890890
* @cpfile: inode of checkpoint file
891891
* @cno: checkpoint number
892-
* @status: mode of checkpoint
892+
* @mode: mode of checkpoint
893893
*
894894
* Description: nilfs_change_cpmode() changes the mode of the checkpoint
895895
* specified by @cno. The mode @mode is NILFS_CHECKPOINT or NILFS_SNAPSHOT.
@@ -930,12 +930,12 @@ int nilfs_cpfile_change_cpmode(struct inode *cpfile, __u64 cno, int mode)
930930
/**
931931
* nilfs_cpfile_get_stat - get checkpoint statistics
932932
* @cpfile: inode of checkpoint file
933-
* @stat: pointer to a structure of checkpoint statistics
933+
* @cpstat: pointer to a structure of checkpoint statistics
934934
*
935935
* Description: nilfs_cpfile_get_stat() returns information about checkpoints.
936936
*
937937
* Return Value: On success, 0 is returned, and checkpoints information is
938-
* stored in the place pointed by @stat. On error, one of the following
938+
* stored in the place pointed by @cpstat. On error, one of the following
939939
* negative error codes is returned.
940940
*
941941
* %-EIO - I/O error.

fs/nilfs2/page.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ struct buffer_head *nilfs_grab_buffer(struct inode *inode,
6969

7070
/**
7171
* nilfs_forget_buffer - discard dirty state
72-
* @inode: owner inode of the buffer
7372
* @bh: buffer head of the buffer to be discarded
7473
*/
7574
void nilfs_forget_buffer(struct buffer_head *bh)

fs/nilfs2/sufile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,13 @@ int nilfs_sufile_set_segment_usage(struct inode *sufile, __u64 segnum,
546546
/**
547547
* nilfs_sufile_get_stat - get segment usage statistics
548548
* @sufile: inode of segment usage file
549-
* @stat: pointer to a structure of segment usage statistics
549+
* @sustat: pointer to a structure of segment usage statistics
550550
*
551551
* Description: nilfs_sufile_get_stat() returns information about segment
552552
* usage.
553553
*
554554
* Return Value: On success, 0 is returned, and segment usage information is
555-
* stored in the place pointed by @stat. On error, one of the following
555+
* stored in the place pointed by @sustat. On error, one of the following
556556
* negative error codes is returned.
557557
*
558558
* %-EIO - I/O error.

0 commit comments

Comments
 (0)