[...]
--- a/arch/mips/include/asm/page.h
+++ b/arch/mips/include/asm/page.h
@@ -45,6 +45,12 @@
#define HUGETLB_PAGE_ORDER ({BUILD_BUG(); 0; })
#endif /* CONFIG_HUGETLB_PAGE */
+/*
+ * Clear and copy array sizes for micro-assembly of clear_page/copy_page.
+ */
+#define CLEAR_PAGE_ARRAY_SIZE 288
+#define COPY_PAGE_ARRAY_SIZE 1344
+
This is not so clean. page.h really shouldn't have things like this.
Just put a label at the beginning and end of the code and have the
compiler calculate the size from the difference.
David Daney