All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: fix fs-writeback.c kernel-doc warning
@ 2015-08-10  1:47 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2015-08-10  1:47 UTC (permalink / raw)
  To: Linux FS Devel, Al Viro

From: Randy Dunlap <rdunlap@infradead.org>

Fix kernel-doc warnings in fs/fs-writeback.c by moving a #define macro
to after the function's opening brace. Also #undef this macro at the
end of the function.

Warning(..//fs/fs-writeback.c:1998): Excess function parameter 'inode' description in 'I_DIRTY_INODE'
Warning(..//fs/fs-writeback.c:1998): Excess function parameter 'flags' description in 'I_DIRTY_INODE'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
---
 fs/fs-writeback.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- lnx-42-rc6.orig/fs/fs-writeback.c
+++ lnx-42-rc6/fs/fs-writeback.c
@@ -1996,9 +1996,9 @@ static noinline void block_dump___mark_i
  * page->mapping->host, so the page-dirtying time is recorded in the internal
  * blockdev inode.
  */
-#define I_DIRTY_INODE (I_DIRTY_SYNC | I_DIRTY_DATASYNC)
 void __mark_inode_dirty(struct inode *inode, int flags)
 {
+#define I_DIRTY_INODE (I_DIRTY_SYNC | I_DIRTY_DATASYNC)
 	struct super_block *sb = inode->i_sb;
 	int dirtytime;
 
@@ -2108,6 +2108,7 @@ void __mark_inode_dirty(struct inode *in
 out_unlock_inode:
 	spin_unlock(&inode->i_lock);
 
+#undef I_DIRTY_INODE
 }
 EXPORT_SYMBOL(__mark_inode_dirty);
 

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

only message in thread, other threads:[~2015-08-10  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10  1:47 [PATCH] fs: fix fs-writeback.c kernel-doc warning Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.