]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix __page_to_pfn for a const struct page argument
authorIan Campbell <ian.campbell@citrix.com>
Wed, 17 Aug 2011 16:40:33 +0000 (17:40 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Aug 2011 20:00:20 +0000 (13:00 -0700)
commit42fe8147877a09c4c39f5e09c200cb58940d355d
treef7c1b4e82fe8eeaad8ce61a5e9e4d301accaf32b
parentb760efca2dcc6dca10ad8012e76bbd678fe0d1cb
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 ec4ef1564f2b "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 <ian.campbell@citrix.com>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Michel Lespinasse <walken@google.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/memory_model.h
include/linux/mm.h