From: Nathan Chancellor <nathan@kernel.org>
To: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Yangtao Li <frank.li@vivo.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
llvm@lists.linux.dev
Subject: Re: [PATCH 12/18] mtd: nand: omap: Use devm_platform_get_and_ioremap_resource()
Date: Fri, 14 Jul 2023 08:27:01 -0700 [thread overview]
Message-ID: <20230714152701.GA1300718@dev-arch.thelio-3990X> (raw)
In-Reply-To: <20230713075751.486075-1-miquel.raynal@bootlin.com>
On Thu, Jul 13, 2023 at 09:57:51AM +0200, Miquel Raynal wrote:
> On Fri, 2023-07-07 at 04:06:16 UTC, Yangtao Li wrote:
> > Convert platform_get_resource(), devm_ioremap_resource() to a single
> > call to devm_platform_get_and_ioremap_resource(), as this is exactly
> > what this function does.
> >
> > Signed-off-by: Yangtao Li <frank.li@vivo.com>
>
> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Please apply the updated version at [1], the current version is
obviously not correct, as clang points out in next-20230714:
drivers/mtd/nand/onenand/onenand_omap2.c:470:2: warning: variable 'c' is uninitialized when used here [-Wuninitialized]
470 | c->onenand.base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
| ^
drivers/mtd/nand/onenand/onenand_omap2.c:465:25: note: initialize the variable 'c' to silence this warning
465 | struct omap2_onenand *c;
| ^
| = NULL
1 warning generated.
KernelCI also reported this at [2]. I apologize if this has already been
reported or fixed locally, I did not see your branch updated.
[1]: https://lore.kernel.org/20230713104422.29222-1-frank.li@vivo.com/
[2]: https://lore.kernel.org/64b137dc.170a0220.b8a13.feee@mx.google.com/
Cheers,
Nathan
next parent reply other threads:[~2023-07-14 15:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230707040622.78174-12-frank.li@vivo.com>
[not found] ` <20230713075751.486075-1-miquel.raynal@bootlin.com>
2023-07-14 15:27 ` Nathan Chancellor [this message]
2023-07-15 16:06 ` [PATCH 12/18] mtd: nand: omap: Use devm_platform_get_and_ioremap_resource() Miquel Raynal
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=20230714152701.GA1300718@dev-arch.thelio-3990X \
--to=nathan@kernel.org \
--cc=frank.li@vivo.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=llvm@lists.linux.dev \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.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