The patch titled mm-make-some-struct-pages-const-fix has been added to the -mm tree. Its filename is mm-make-some-struct-pages-const-fix.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-make-some-struct-pages-const-fix From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> In file included from include/linux/suspend.h:8, from arch/x86/kernel/asm-offsets.c:12: include/linux/mm.h: In function 'lowmem_page_address': include/linux/mm.h:723: warning: initialization discards qualifiers from pointer target type In file included from include/linux/ring_buffer.h:5, from include/linux/ftrace_event.h:4, from include/trace/syscall.h:6, from include/linux/syscalls.h:77, from fs/aio.c:17: include/linux/mm.h: In function 'lowmem_page_address': include/linux/mm.h:723: warning: initialization discards qualifiers from pointer target type Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Ian Campbell <ian.campbell@xxxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Cc: Michel Lespinasse <walken@xxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/mm.h~mm-make-some-struct-pages-const-fix include/linux/mm.h --- a/include/linux/mm.h~mm-make-some-struct-pages-const-fix +++ a/include/linux/mm.h @@ -720,7 +720,7 @@ static inline void set_page_links(struct static __always_inline void *lowmem_page_address(const struct page *page) { - return __va(PFN_PHYS(page_to_pfn(page))); + return __va(PFN_PHYS(page_to_pfn((struct page *)page))); } #if defined(CONFIG_HIGHMEM) && !defined(WANT_PAGE_VIRTUAL) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are origin.patch hugetlb-add-phys-addr-to-struct-huge_bootmem_page-fix.patch mm-make-some-struct-pages-const-fix.patch mm-use-const-struct-page-for-r-o-page-flag-accessor-methods-checkpatch-fixes.patch xtensa-prevent-arbitrary-read-in-ptrace-fix.patch mm-extend-memory-hotplug-api-to-allow-memory-hotplug-in-virtual-machines-fix.patch pagewalk-add-locking-rule-comments-fix.patch mm-memoryc-remove-zap_block_size.patch mm-memblockc-avoid-abuse-of-red_inactive.patch mm-preallocate-page-before-lock_page-at-filemap-cow.patch mm-futex-fix-futex-writes-on-archs-with-sw-tracking-of-dirty-young-checkpatch-fixes.patch mm-futex-fix-futex-writes-on-archs-with-sw-tracking-of-dirty-young-fix.patch drivers-misc-add-support-the-fsa9480-usb-switch-fix.patch lib-make-_tolower-public-checkpatch-fixes.patch checkpatch-suggest-using-min_t-or-max_t-v2.patch checkpatch-add-a-prefer-__aligned-check.patch init-skip-calibration-delay-if-previously-done-fix.patch init-skip-calibration-delay-if-previously-done-fix-fix.patch init-skip-calibration-delay-if-previously-done-4.patch drivers-rtc-add-support-for-qualcomm-pmic8xxx-rtc-fix.patch drivers-connector-cn_procc-remove-unused-local.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