From: Mark Rustad <[email protected]>

Use diagnostic control macros to ignore nested-externs warnings
in this case.

CC: Andrew Morton <[email protected]>
CC: <[email protected]>
CC: Brian Norris <[email protected]>
Signed-off-by: Mark Rustad <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
---
 include/linux/mm.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 8981cc8..9bf2c7e 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1623,7 +1623,9 @@ static inline void mark_page_reserved(struct page *page)
  */
 static inline unsigned long free_initmem_default(int poison)
 {
+       DIAG_PUSH DIAG_IGNORE(nested-externs)
        extern char __init_begin[], __init_end[];
+       DIAG_POP
 
        return free_reserved_area(&__init_begin, &__init_end,
                                  poison, "unused kernel");
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to