powerpc/mm/hash: Convert mask to unsigned long
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 22 Mar 2017 03:36:56 +0000 (09:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 31 Mar 2017 12:10:00 +0000 (23:10 +1100)
This doesn't have any functional change. But helps in avoiding mistakes
in case the shift bit changes

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h

index c68102293a192760f40477fcd36d49e1b7f94eb0..c93450bf306fed9340bc5b3f767d065ed39b49d9 100644 (file)
@@ -409,7 +409,7 @@ static inline unsigned long hpt_vpn(unsigned long ea,
 static inline unsigned long hpt_hash(unsigned long vpn,
                                     unsigned int shift, int ssize)
 {
-       int mask;
+       unsigned long mask;
        unsigned long hash, vsid;
 
        /* VPN_SHIFT can be atmost 12 */