[PATCH] mtd: rawnand: Fix misuses of of_match_node()

Miquel Raynal miquel.raynal at bootlin.com
Mon Jan 31 08:21:31 PST 2022


On Thu, 2022-01-27 at 11:08:02 UTC, Miquel Raynal wrote:
> On non-OF enabled platforms (CONFIG_OF is not set), of_match_node() will
> expand to NULL. The of_device_id array pointed by the macro will then be
> left unused. Let's mark the array __maybe_unused in this case to prevent
> compiler warnings.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
> Acked-by: Florian Fainelli <f.fainelli at gmail.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next.

Miquel



More information about the linux-mtd mailing list