Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263070
b: refs/heads/master
c: f991879
h: refs/heads/master
v: v3
  • Loading branch information
Ian Campbell authored and Linus Torvalds committed Aug 17, 2011
1 parent e77df9b commit 79cdbb6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72ed62bdc46d76c965fb95aecb5d0bf97c976723
refs/heads/master: f991879473828f320a714e9494fb37a26ccd6b66
2 changes: 1 addition & 1 deletion trunk/include/linux/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions trunk/mm/highmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)];
}
Expand All @@ -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;
Expand Down

0 comments on commit 79cdbb6

Please sign in to comment.