Re: [PATCH] x86/mm: Remove unnecessary casts in init_64.c
From: Thomas Gleixner
Date: Tue Jan 09 2024 - 16:35:24 EST
On Sun, Jan 07 2024 at 12:24, Yukai Wu wrote:
> @@ -150,7 +150,7 @@ static void sync_global_pgds_l5(unsigned long start, unsigned long end)
> pgd_t *pgd;
> spinlock_t *pgt_lock;
>
> - pgd = (pgd_t *)page_address(page) + pgd_index(addr);
> + pgd = page_address(page) + pgd_index(addr);
This is not equivalent.
Thanks,
tglx