From f245aa1acf03e07796a24d6f51f1241b7801fa40 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 22 Aug 2025 14:54:15 -0700 Subject: [PATCH] mm-replace-20-page_shift-with-common-macros-for-pages-mb-conversion-fix remove arc's private PAGES_TO_MB, remove its unused PAGES_TO_KB Reported-by: kernel test robot Closes: https://lkml.kernel.org/r/202508230539.pnO97SIj-lkp@intel.com Cc: Vineet Gupta Cc: Ye Liu Cc: Zi Yan Cc: Lorenzo Stoakes Cc: Dev Jain Cc: David Hildenbrand Cc: Chris Li Signed-off-by: Andrew Morton --- arch/arc/include/asm/arcregs.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arc/include/asm/arcregs.h b/arch/arc/include/asm/arcregs.h index a31bbf5c8bbc..61649b1ecb6d 100644 --- a/arch/arc/include/asm/arcregs.h +++ b/arch/arc/include/asm/arcregs.h @@ -146,14 +146,13 @@ #ifndef __ASSEMBLER__ +#include + #include /* Helpers */ #define TO_KB(bytes) ((bytes) >> 10) #define TO_MB(bytes) (TO_KB(bytes) >> 10) -#define PAGES_TO_KB(n_pages) ((n_pages) << (PAGE_SHIFT - 10)) -#define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10) - /* *************************************************************** -- 2.51.0