From: Rob Herring <robh@kernel.org>
To: Sang-Heon Jeon <ekffu200098@gmail.com>
Cc: maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com,
chleroy@kernel.org, saravanak@kernel.org,
linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] of/fdt: make early_init_dt_scan_chosen() return void
Date: Mon, 1 Jun 2026 17:03:46 -0500 [thread overview]
Message-ID: <20260601220346.GB54006-robh@kernel.org> (raw)
In-Reply-To: <20260510171353.1406018-3-ekffu200098@gmail.com>
On Mon, May 11, 2026 at 02:13:53AM +0900, Sang-Heon Jeon wrote:
> Since commit 064e32dc5b03 ("of: fdt: Honor CONFIG_CMDLINE* even
> without /chosen node, take 2"), early_init_dt_scan_chosen() always
> returns 0, so the return value checks at its callers have become
> dead code.
>
> Drop the return value, change the function to return void, and
> update its declaration and callers accordingly. No functional
> change.
>
> Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
> ---
> dt-test result
>
> [ 0.684136] ### dt-test ### start of unittest - you will see error messages
> [ 0.685849] ### dt-test ### EXPECT \ : Duplicate name in testcase-data, renamed to "duplicate-name#1"
> [ 0.685870] Duplicate name in testcase-data, renamed to "duplicate-name#1"
> [ 0.689496] ### dt-test ### EXPECT / : Duplicate name in testcase-data, renamed to "duplicate-name#1"
>
> ...
>
> [ 1.693384] ### dt-test ### EXPECT / : OF: resolver: overlay phandle fixup failed: -22
> [ 1.693386] ### dt-test ### EXPECT / : OF: resolver: node label 'this_label_does_not_exist' not found in live devicetree symbols table
> [ 1.694968] ### dt-test ### end of unittest - 405 passed, 0 failed
> ---
> drivers/of/fdt.c | 10 ++--------
> include/linux/of_fdt.h | 2 +-
> 2 files changed, 3 insertions(+), 9 deletions(-)
Looks like this is dependent on patch 1, so I'm assuming the PPC folks
will take the series.
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
prev parent reply other threads:[~2026-06-01 22:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-10 17:13 [PATCH 0/2] powerpc/prom, of/fdt: fix chosen node handling and cleanup Sang-Heon Jeon
2026-05-10 17:13 ` [PATCH 1/2] powerpc/prom: fix /chosen properties read from wrong node Sang-Heon Jeon
2026-06-01 22:01 ` Rob Herring
2026-05-10 17:13 ` [PATCH 2/2] of/fdt: make early_init_dt_scan_chosen() return void Sang-Heon Jeon
2026-06-01 22:03 ` Rob Herring [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=20260601220346.GB54006-robh@kernel.org \
--to=robh@kernel.org \
--cc=chleroy@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ekffu200098@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=saravanak@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