[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241030164123.ff63a1c0e7666ad1a4f8944e@linux-foundation.org>
Date: Wed, 30 Oct 2024 16:41:23 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Bibo Mao <maobibo@...ngson.cn>
Cc: Huacai Chen <chenhuacai@...nel.org>, Thomas Bogendoerfer
<tsbogend@...ha.franken.de>, Andrey Ryabinin <ryabinin.a.a@...il.com>,
loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-mips@...r.kernel.org, linux-mm@...ck.org, kasan-dev@...glegroups.com,
Alexander Potapenko <glider@...gle.com>, Andrey Konovalov
<andreyknvl@...il.com>, Dmitry Vyukov <dvyukov@...gle.com>, Vincenzo
Frascino <vincenzo.frascino@....com>, WANG Xuerui <kernel@...0n.name>
Subject: Re: [PATCH v2] mm: define general function pXd_init()
On Wed, 30 Oct 2024 14:39:05 +0800 Bibo Mao <maobibo@...ngson.cn> 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()
?
Powered by blists - more mailing lists