From: Anshuman Khandual Date: Mon, 7 Oct 2019 00:58:05 +0000 (-0700) Subject: mm/memremap: drop unused SECTION_SIZE and SECTION_MASK X-Git-Tag: v5.15~5348^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d0e9849417bfcbe997405371e0ed712b364ba0a;p=platform%2Fkernel%2Flinux-starfive.git mm/memremap: drop unused SECTION_SIZE and SECTION_MASK SECTION_SIZE and SECTION_MASK macros are not getting used anymore. But they do conflict with existing definitions on arm64 platform causing following warning during build. Lets drop these unused macros. mm/memremap.c:16: warning: "SECTION_MASK" redefined #define SECTION_MASK ~((1UL << PA_SECTION_SHIFT) - 1) arch/arm64/include/asm/pgtable-hwdef.h:79: note: this is the location of the previous definition #define SECTION_MASK (~(SECTION_SIZE-1)) mm/memremap.c:17: warning: "SECTION_SIZE" redefined #define SECTION_SIZE (1UL << PA_SECTION_SHIFT) arch/arm64/include/asm/pgtable-hwdef.h:78: note: this is the location of the previous definition #define SECTION_SIZE (_AC(1, UL) << SECTION_SHIFT) Link: http://lkml.kernel.org/r/1569312010-31313-1-git-send-email-anshuman.khandual@arm.com Signed-off-by: Anshuman Khandual Reported-by: kbuild test robot Reviewed-by: David Hildenbrand Cc: Dan Williams Cc: Jason Gunthorpe Cc: Logan Gunthorpe Cc: Ira Weiny Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/memremap.c b/mm/memremap.c index 32c79b5..6820491 100644 --- a/mm/memremap.c +++ b/mm/memremap.c @@ -13,8 +13,6 @@ #include static DEFINE_XARRAY(pgmap_array); -#define SECTION_MASK ~((1UL << PA_SECTION_SHIFT) - 1) -#define SECTION_SIZE (1UL << PA_SECTION_SHIFT) #ifdef CONFIG_DEV_PAGEMAP_OPS DEFINE_STATIC_KEY_FALSE(devmap_managed_key);