Commit 7914c5e3 authored by Russell King's avatar Russell King

[ARM] Quieten compiler warnings, etc with ARM set_pmd()

Signed-off-by: default avatarRussell King <rmk@arm.linux.org.uk>
parent ca3b0d2f
......@@ -526,7 +526,7 @@ void setup_mm_for_reboot(char mode)
pmdval |= PMD_BIT4;
pmd = pmd_offset(pgd + i, i << PGDIR_SHIFT);
set_pmd(pmd, __pmd(pmdval));
set_pmd(pmd + 1, __pmd(pmdval + 1 << (PGDIR_SHIFT - 1)));
set_pmd(pmd + 1, __pmd(pmdval + (1 << (PGDIR_SHIFT - 1))));
}
}
......
......@@ -310,7 +310,7 @@ PTE_BIT_FUNC(mkyoung, |= L_PTE_YOUNG);
#define set_pmd(pmdp,pmd) \
do { \
*pmdp = pmd; \
*(pmdp) = pmd; \
flush_pmd_entry(pmdp); \
} while (0)
......
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