Commit 5c053495 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Do not use cast exprs as lvalues.

parent 9805e1fe
......@@ -38,11 +38,12 @@ static __inline__ void free_pgd_fast(pgd_t *pgd)
preempt_disable();
if (!page->lru.prev) {
(unsigned long *)page->lru.next = pgd_quicklist;
page->lru.next = (void *) pgd_quicklist;
pgd_quicklist = (unsigned long *)page;
}
(unsigned long)page->lru.prev |=
(((unsigned long)pgd & (PAGE_SIZE / 2)) ? 2 : 1);
page->lru.prev = (void *)
(((unsigned long)page->lru.prev) |
(((unsigned long)pgd & (PAGE_SIZE / 2)) ? 2 : 1));
pgd_cache_size++;
preempt_enable();
}
......@@ -62,7 +63,7 @@ static __inline__ pgd_t *get_pgd_fast(void)
off = PAGE_SIZE / 2;
mask &= ~2;
}
(unsigned long)ret->lru.prev = mask;
ret->lru.prev = (void *) mask;
if (!mask)
pgd_quicklist = (unsigned long *)ret->lru.next;
ret = (struct page *)(__page_address(ret) + off);
......@@ -76,10 +77,10 @@ static __inline__ pgd_t *get_pgd_fast(void)
if (page) {
ret = (struct page *)page_address(page);
clear_page(ret);
(unsigned long)page->lru.prev = 2;
page->lru.prev = (void *) 2UL;
preempt_disable();
(unsigned long *)page->lru.next = pgd_quicklist;
page->lru.next = (void *) pgd_quicklist;
pgd_quicklist = (unsigned long *)page;
pgd_cache_size++;
preempt_enable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment