]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-replace-20-page_shift-with-common-macros-for-pages-mb-conversion-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 22 Aug 2025 21:54:15 +0000 (14:54 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:36 +0000 (17:24 -0700)
remove arc's private PAGES_TO_MB, remove its unused PAGES_TO_KB

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lkml.kernel.org/r/202508230539.pnO97SIj-lkp@intel.com
Cc: Vineet Gupta <vgupta@kernel.org>
Cc: Ye Liu <liuye@kylinos.cn>
Cc: Zi Yan <ziy@nvidia.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Dev Jain <dev.jain@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Chris Li <chrisl@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/arc/include/asm/arcregs.h

index a31bbf5c8bbc8a18d1d90782d89460ce1cf575aa..61649b1ecb6d9a27d8ea30b6217ab4b02fe9b5c7 100644 (file)
 
 #ifndef __ASSEMBLER__
 
+#include <linux/mm.h>
+
 #include <soc/arc/arc_aux.h>
 
 /* 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)
-
 
 /*
  ***************************************************************