From: Alexey Dobriyan <adobriyan@gmail.com>
To: Yukai Wu <wuyukai0403@qq.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>,
Andy Lutomirski <luto@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/mm: Remove unnecessary casts in init_64.c
Date: Sun, 7 Jan 2024 19:46:08 +0300 [thread overview]
Message-ID: <b1abc6a9-91f4-48a3-b096-239ea65f3256@p183> (raw)
> - 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);
next reply other threads:[~2024-01-07 16:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-07 16:46 Alexey Dobriyan [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-07 4:24 Yukai Wu
2024-01-09 21:35 ` Thomas Gleixner
2024-01-12 13:20 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b1abc6a9-91f4-48a3-b096-239ea65f3256@p183 \
--to=adobriyan@gmail.com \
--cc=dave.hansen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=peterz@infradead.org \
--cc=wuyukai0403@qq.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®