summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/subpage-prot.c
diff options
context:
space:
mode:
authorAnton Blanchard2013-08-06 18:01:24 +0200
committerBenjamin Herrenschmidt2013-08-14 03:50:24 +0200
commitb0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e (patch)
treee1bcbf43d70097c6b86cc53e5a4583643bf42b3b /arch/powerpc/mm/subpage-prot.c
parentpowerpc/pseries: Simplify H_GET_TERM_CHAR (diff)
downloadkernel-qcow2-linux-b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e.tar.gz
kernel-qcow2-linux-b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e.tar.xz
kernel-qcow2-linux-b0d436c739b0d4afcdfe2e97d4d1ee41ea2db62e.zip
powerpc: Fix a number of sparse warnings
Address some of the trivial sparse warnings in arch/powerpc. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/subpage-prot.c')
-rw-r--r--arch/powerpc/mm/subpage-prot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/subpage-prot.c b/arch/powerpc/mm/subpage-prot.c
index aa74acb0fdfc..a770df2dae70 100644
--- a/arch/powerpc/mm/subpage-prot.c
+++ b/arch/powerpc/mm/subpage-prot.c
@@ -105,7 +105,7 @@ static void subpage_prot_clear(unsigned long addr, unsigned long len)
limit = spt->maxaddr;
for (; addr < limit; addr = next) {
next = pmd_addr_end(addr, limit);
- if (addr < 0x100000000) {
+ if (addr < 0x100000000UL) {
spm = spt->low_prot;
} else {
spm = spt->protptrs[addr >> SBP_L3_SHIFT];
@@ -219,7 +219,7 @@ long sys_subpage_prot(unsigned long addr, unsigned long len, u32 __user *map)
for (limit = addr + len; addr < limit; addr = next) {
next = pmd_addr_end(addr, limit);
err = -ENOMEM;
- if (addr < 0x100000000) {
+ if (addr < 0x100000000UL) {
spm = spt->low_prot;
} else {
spm = spt->protptrs[addr >> SBP_L3_SHIFT];