From: Ian Campbell Date: Wed, 17 Aug 2011 16:40:33 +0000 (+0100) Subject: mm: fix __page_to_pfn for a const struct page argument X-Git-Tag: v3.1-rc3~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa462abe8aaf2198d6aef97da20c874ac694a39f;p=pandora-kernel.git mm: fix __page_to_pfn for a const struct page argument This allows the cast in lowmem_page_address (introduced as a warning fixup to 33dd4e0ec911 "mm: make some struct page's const") to be removed. Propagate const'ness to page_to_section() as well since it is required by __page_to_pfn. Signed-off-by: Ian Campbell Acked-by: Rik van Riel Cc: Andrea Arcangeli Cc: Michel Lespinasse Cc: Mel Gorman Cc: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed