[patch] avoid reference to struct page before it's declared

David Mosberger (davidm@napali.hpl.hp.com)
Sat, 28 Sep 2002 13:56:01 -0700


GCC currently warns when page-flags.h gets included before struct page
is declared. Patch below fixes this.

--david

--
Interested in learning more about IA-64 Linux?  Try http://www.lia64.org/book/

===== include/linux/page-flags.h 1.21 vs edited ===== --- 1.21/include/linux/page-flags.h Fri Sep 27 15:52:04 2002 +++ edited/include/linux/page-flags.h Sat Sep 28 12:50:48 2002 @@ -211,6 +211,8 @@ extern struct address_space swapper_space; #define PageSwapCache(page) ((page)->mapping == &swapper_space) +struct page; /* forward declaration */ + int test_clear_page_dirty(struct page *page); static inline void clear_page_dirty(struct page *page)

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