On 2024/10/31 上午7:41, Andrew Morton wrote:
On Wed, 30 Oct 2024 14:39:05 +0800 Bibo Mao <maobibo@xxxxxxxxxxx> wrote:
--- a/arch/loongarch/include/asm/pgtable.h
+++ b/arch/loongarch/include/asm/pgtable.h
@@ -267,8 +267,11 @@ extern void set_pmd_at(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp, pm
* Initialize a new pgd / pud / pmd table with invalid pointers.
*/
extern void pgd_init(void *addr);
+#define pud_init pud_init
extern void pud_init(void *addr);
+#define pmd_init pmd_init
extern void pmd_init(void *addr);
+#define kernel_pte_init kernel_pte_init
extern void kernel_pte_init(void *addr);
Nitlet: don't we usually put the #define *after* the definition?
void foo(void);
#define foo() foo()
yes, it should be so. Will modify it in next version.
Regards
Bibo Mao
?