diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-08-17 13:45:09 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-08-17 13:00:20 -0700 |
commit | f991879473828f320a714e9494fb37a26ccd6b66 (patch) | |
tree | 349fee2f3c0d9b10340f2fbdb03fa63c2570dbfa /include | |
parent | 72ed62bdc46d76c965fb95aecb5d0bf97c976723 (diff) | |
download | linux-3.10-f991879473828f320a714e9494fb37a26ccd6b66.tar.gz linux-3.10-f991879473828f320a714e9494fb37a26ccd6b66.tar.bz2 linux-3.10-f991879473828f320a714e9494fb37a26ccd6b66.zip |
mm: make HASHED_PAGE_VIRTUAL page_address' struct page argument const.
Followup to 33dd4e0ec911 "mm: make some struct page's const" which missed the
HASHED_PAGE_VIRTUAL case.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hash.h | 2 | ||||
-rw-r--r-- | include/linux/mm.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/hash.h b/include/linux/hash.h index 06d25c189cc..b80506bdd73 100644 --- a/include/linux/hash.h +++ b/include/linux/hash.h @@ -63,7 +63,7 @@ static inline u32 hash_32(u32 val, unsigned int bits) return hash >> (32 - bits); } -static inline unsigned long hash_ptr(void *ptr, unsigned int bits) +static inline unsigned long hash_ptr(const void *ptr, unsigned int bits) { return hash_long((unsigned long)ptr, bits); } diff --git a/include/linux/mm.h b/include/linux/mm.h index fd599f4bb84..c06454d60a3 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -737,7 +737,7 @@ static __always_inline void *lowmem_page_address(const struct page *page) #endif #if defined(HASHED_PAGE_VIRTUAL) -void *page_address(struct page *page); +void *page_address(const struct page *page); void set_page_address(struct page *page, void *virtual); void page_address_init(void); #endif |