arm64: cputype: Silence Sparse warnings

"Linux Kernel Mailing List" <[email protected]> Sat, 17 Feb 2018 17:49:14 +0000 (UTC)
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/e1a50de37860b3a93a9d643b09638db5aff47650
Commit:     e1a50de37860b3a93a9d643b09638db5aff47650
Parent:     20a004e7b017cce282a46ac5d02c2b9c6b9bb1fa
Refname:    refs/heads/master
Author:     Robin Murphy <[email protected]>
AuthorDate: Fri Feb 16 17:04:23 2018 +0000
Committer:  Catalin Marinas <[email protected]>
CommitDate: Sat Feb 17 08:37:05 2018 +0000

    arm64: cputype: Silence Sparse warnings
    
    Sparse makes a fair bit of noise about our MPIDR mask being implicitly
    long - let's explicitly describe it as such rather than just relying on
    the value forcing automatic promotion.
    
    Signed-off-by: Robin Murphy <[email protected]>
    Signed-off-by: Catalin Marinas <[email protected]>
---
 arch/arm64/include/asm/cputype.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h
index be7bd19c87ec..eda8c5f629fc 100644
--- a/arch/arm64/include/asm/cputype.h
+++ b/arch/arm64/include/asm/cputype.h
@@ -20,7 +20,7 @@
 
 #define MPIDR_UP_BITMASK	(0x1 << 30)
 #define MPIDR_MT_BITMASK	(0x1 << 24)
-#define MPIDR_HWID_BITMASK	0xff00ffffff
+#define MPIDR_HWID_BITMASK	0xff00ffffffUL
 
 #define MPIDR_LEVEL_BITS_SHIFT	3
 #define MPIDR_LEVEL_BITS	(1 << MPIDR_LEVEL_BITS_SHIFT)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html