The patch titled mm: use const struct page for r/o page-flag accessor methods has been added to the -mm tree. Its filename is mm-use-const-struct-page-for-r-o-page-flag-accessor-methods.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: use const struct page for r/o page-flag accessor methods From: Ian Campbell <ian.campbell@xxxxxxxxxx> In a subsquent patch I have a const struct page in my hand... Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Martin Schwidefsky <schwidefsky@xxxxxxxxxx> Cc: Michel Lespinasse <walken@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/page-flags.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/page-flags.h~mm-use-const-struct-page-for-r-o-page-flag-accessor-methods include/linux/page-flags.h --- a/include/linux/page-flags.h~mm-use-const-struct-page-for-r-o-page-flag-accessor-methods +++ a/include/linux/page-flags.h @@ -135,7 +135,7 @@ enum pageflags { * Macros to create function definitions for page flags */ #define TESTPAGEFLAG(uname, lname) \ -static inline int Page##uname(struct page *page) \ +static inline int Page##uname(const struct page *page) \ { return test_bit(PG_##lname, &page->flags); } #define SETPAGEFLAG(uname, lname) \ @@ -173,7 +173,7 @@ static inline int __TestClearPage##uname __SETPAGEFLAG(uname, lname) __CLEARPAGEFLAG(uname, lname) #define PAGEFLAG_FALSE(uname) \ -static inline int Page##uname(struct page *page) \ +static inline int Page##uname(const struct page *page) \ { return 0; } #define TESTSCFLAG(uname, lname) \ _ Patches currently in -mm which might be from ian.campbell@xxxxxxxxxx are mm-make-some-struct-pages-const.patch mm-use-const-struct-page-for-r-o-page-flag-accessor-methods.patch linux-next.patch mm-extend-memory-hotplug-api-to-allow-memory-hotplug-in-virtual-machines.patch mm-extend-memory-hotplug-api-to-allow-memory-hotplug-in-virtual-machines-fix.patch xen-balloon-memory-hotplug-support-for-xen-balloon-driver.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html