Re: [PATCH] mm: fix __page_to_pfn for a const struct page argument

From: Rik van Riel
Date: Wed Aug 17 2011 - 15:03:15 EST


On 08/17/2011 12:40 PM, Ian Campbell wrote:
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<ian.campbell@xxxxxxxxxx>
Cc: Andrea Arcangeli<aarcange@xxxxxxxxxx>
Cc: Rik van Riel<riel@xxxxxxxxxx>
Cc: Michel Lespinasse<walken@xxxxxxxxxx>
Cc: Mel Gorman<mel@xxxxxxxxx>
Cc: Andrew Morton<akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: Linus Torvalds<torvalds@xxxxxxxxxxxxxxxxxxxx>

Acked-by: Rik van Riel <riel@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/