VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Matthew Wilcox <willy@infradead.org> 2021-09-02 14:57:10 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-03 09:58:14 -0700 commit: e0dbb2bccf19ce5e870afb420a3d0480c582bb7b parent: 01c8d337d195ed105cabab95bc4dcb9e145bf5ea
Commit Summary:
include/linux/mmzone.h: avoid a warning in sparse memory support
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/sparse.c b/mm/sparse.c
index d85655242ed9..be7936e65b6a 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -117,7 +117,7 @@ static inline int sparse_index_init(unsigned long section_nr, int nid)
  */
 static inline unsigned long sparse_encode_early_nid(int nid)
 {
-	return (nid << SECTION_NID_SHIFT);
+	return ((unsigned long)nid << SECTION_NID_SHIFT);
 }
 
 static inline int sparse_early_nid(struct mem_section *section)