From: "Arnd Bergmann" <arnd@arndb.de>
To: "Pasha Tatashin" <pasha.tatashin@soleen.com>,
"Thorsten Blum" <blum@kernel.org>
Cc: "Mike Rapoport" <rppt@kernel.org>,
"Pratyush Yadav" <pratyush@kernel.org>,
"Alexander Graf" <graf@amazon.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Changyuan Lyu" <changyuanl@google.com>,
kexec@lists.infradead.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] kho: Remove redundant 0x prefixes
Date: Wed, 04 Nov 2026 21:59:50 +0100 [thread overview]
Message-ID: <34a03ed8-5b75-49b5-bfd5-e5cdf48dbfd4@app.fastmail.com> (raw)
In-Reply-To: <179382570401.2089669.6201187990672133004.b4-review@b4>
On Wed, Nov 4, 2026, at 21:55, Pasha Tatashin wrote:
>> The %pa format specifier already includes the 0x prefix. Remove the
>> redundant prefixes to avoid printing 0x0x.
>>
>> Use phys_addr_t for size to match the expected type.
>>
>> Fixes: c609c144b0e8 ("kexec: add KHO parsing support")
>> Signed-off-by: Thorsten Blum <blum@kernel.org>
>>
>> diff --git a/kernel/liveupdate/kexec_handover.c b/kernel/liveupdate/kexec_handover.c
>> index 6f1f55fe3181..6a7600a0a7d5 100644
>> --- a/kernel/liveupdate/kexec_handover.c
>> +++ b/kernel/liveupdate/kexec_handover.c
>> @@ -2010,16 +2010,16 @@ void __init kho_populate(phys_addr_t fdt_phys, u64 fdt_len,
>> */
>> for (int i = 0; i < bootmem_cnt; i++) {
>> struct kho_bootmem *area = &bootmem[i];
>> - u64 size = area->size;
>> + phys_addr_t size = area->size;
>
> I am not sure; having a variable size of type phys_addr_t looks strange
> to me. Furthermore, KHO only works on 64-bit platforms because of how
> our radix tree is designed, and we do not plan to add support for 32-bit
> systems.
>
> I would keep u64, or if using %pa for u64 is still an eyesore, use
> 0x%llx for the size field.
area->size is also a phys_addr_t, so using a local variable of the
same type makes sense for consistency.
Arnd
next prev parent reply other threads:[~2026-11-04 21:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 16:23 Thorsten Blum
2026-11-04 16:28 ` Arnd Bergmann
2026-11-04 20:55 ` Pasha Tatashin
2026-11-04 20:59 ` Arnd Bergmann [this message]
2026-11-04 21:52 ` Pasha Tatashin
2026-11-04 22:06 ` Pasha Tatashin
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=34a03ed8-5b75-49b5-bfd5-e5cdf48dbfd4@app.fastmail.com \
--to=arnd@arndb.de \
--cc=akpm@linux-foundation.org \
--cc=blum@kernel.org \
--cc=changyuanl@google.com \
--cc=graf@amazon.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pasha.tatashin@soleen.com \
--cc=pratyush@kernel.org \
--cc=rppt@kernel.org \
/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®