mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mm: make HASHED_PAGE_VIRTUAL page_address' struct page argument const.
Followup to 33dd4e0ec9 "mm: make some struct page's const" which missed the
HASHED_PAGE_VIRTUAL case.
Signed-off-by: Ian Campbell <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
72ed62bdc4
commit
f991879473
3 changed files with 4 additions and 4 deletions
|
|
@ -326,7 +326,7 @@ static struct page_address_slot {
|
|||
spinlock_t lock; /* Protect this bucket's list */
|
||||
} ____cacheline_aligned_in_smp page_address_htable[1<<PA_HASH_ORDER];
|
||||
|
||||
static struct page_address_slot *page_slot(struct page *page)
|
||||
static struct page_address_slot *page_slot(const struct page *page)
|
||||
{
|
||||
return &page_address_htable[hash_ptr(page, PA_HASH_ORDER)];
|
||||
}
|
||||
|
|
@ -337,7 +337,7 @@ static struct page_address_slot *page_slot(struct page *page)
|
|||
*
|
||||
* Returns the page's virtual address.
|
||||
*/
|
||||
void *page_address(struct page *page)
|
||||
void *page_address(const struct page *page)
|
||||
{
|
||||
unsigned long flags;
|
||||
void *ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue