[<prev] [next>] [day] [month] [year] [list]
Message-ID: <b1abc6a9-91f4-48a3-b096-239ea65f3256@p183>
Date: Sun, 7 Jan 2024 19:46:08 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: Yukai Wu <wuyukai0403@...com>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>,
Andy Lutomirski <luto@...nel.org>,
Peter Zijlstra <peterz@...radead.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/mm: Remove unnecessary casts in init_64.c
> - pgd = (pgd_t *)page_address(page) + pgd_index(addr);
> + pgd = page_address(page) + pgd_index(addr);
Please learn C operator precedence rules before touching this code.
> - pgd = (pgd_t *)page_address(page) + pgd_index(addr);
> + pgd = page_address(page) + pgd_index(addr);
Powered by blists - more mailing lists