Skip to content

Commit 59248ae

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm/hash: Convert mask to unsigned long
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent e6f81a9 commit 59248ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/include/asm/book3s/64/mmu-hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static inline unsigned long hpt_vpn(unsigned long ea,
409409
static inline unsigned long hpt_hash(unsigned long vpn,
410410
unsigned int shift, int ssize)
411411
{
412-
int mask;
412+
unsigned long mask;
413413
unsigned long hash, vsid;
414414

415415
/* VPN_SHIFT can be atmost 12 */

0 commit comments

Comments
 (0)