[PATCH] mm: fix fatal kernel-doc error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Wednesday, August 11, 2010 - 12:10 pm

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix a fatal kernel-doc error due to a #define coming between a
function's kernel-doc notation and the function signature.
(kernel-doc cannot handle this)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 mm/page-writeback.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.35-git10.orig/mm/page-writeback.c
+++ linux-2.6.35-git10/mm/page-writeback.c
@@ -825,10 +825,10 @@ void __init page_writeback_init(void)
 /*
  * We tag pages in batches of WRITEBACK_TAG_BATCH to reduce tree_lock latency.
  */
-#define WRITEBACK_TAG_BATCH 4096
 void tag_pages_for_writeback(struct address_space *mapping,
 			     pgoff_t start, pgoff_t end)
 {
+#define WRITEBACK_TAG_BATCH 4096
 	unsigned long tagged;
 
 	do {

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mm: fix fatal kernel-doc error, Randy Dunlap, (Wed Aug 11, 12:10 pm)