From: Leo Liang <ycliang@andestech.com>
To: Michal Simek <michal.simek@amd.com>
Cc: <u-boot@lists.denx.de>, <git@xilinx.com>,
Mayuresh Chitale <mchitale@ventanamicro.com>,
Rick Chen <rick@andestech.com>, Tom Rini <trini@konsulko.com>,
Yao Zi <ziyao@disroot.org>
Subject: Re: [PATCH] riscv: cpu: Use CONFIG_IS_ENABLED(CPU) instead of plain ifdef
Date: Mon, 11 Aug 2025 14:31:49 +0800 [thread overview]
Message-ID: <aJmOVQDG-aeTbKrq@swlinux02> (raw)
In-Reply-To: <56c9166ed5928476cbc977eaa3ae398903eeb917.1752733573.git.michal.simek@amd.com>
On Thu, Jul 17, 2025 at 08:26:15AM +0200, Michal Simek wrote:
> ifdef CONFIG_CPU only works in U-Boot proper but macro is not working when
> XPL phases are used. In this case CONFIG_SPL_CPU is also defined and can be
> disabled which is causing compilation error.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> arch/riscv/cpu/cpu.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
prev parent reply other threads:[~2025-08-11 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-17 6:26 [PATCH] riscv: cpu: Use CONFIG_IS_ENABLED(CPU) instead of plain ifdef Michal Simek
2025-08-11 6:31 ` Leo Liang [this message]
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=aJmOVQDG-aeTbKrq@swlinux02 \
--to=ycliang@andestech.com \
--cc=git@xilinx.com \
--cc=mchitale@ventanamicro.com \
--cc=michal.simek@amd.com \
--cc=rick@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=ziyao@disroot.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