[PATCH] mtd: rawnand: au1550: Ensure the presence of the right includes

Miquel Raynal miquel.raynal at bootlin.com
Thu Nov 19 16:06:40 EST 2020


On Fri, 2020-11-13 at 12:40:21 UTC, Miquel Raynal wrote:
> While working a bit on this driver I dropped the platform includes and
> commented a few lines just to verify the correctness of my changes. It
> appeared the following:
> 
> drivers/mtd/nand/raw/au1550nd.c: In function ‘au1550nd_waitrdy’:
> drivers/mtd/nand/raw/au1550nd.c:130:3: error: implicit declaration of function ‘usleep_range’ [-Werror=implicit-function-declaration]
>    usleep_range(10, 100);
>    ^~~~~~~~~~~~
> drivers/mtd/nand/raw/au1550nd.c: In function ‘au1550nd_exec_instr’:
> drivers/mtd/nand/raw/au1550nd.c:188:3: error: implicit declaration of function ‘ndelay’ [-Werror=implicit-function-declaration]
>    ndelay(instr->delay_ns);
>    ^~~~~~
> 
> I think the delay.h header should be included in this file and not
> come from one of its platform includes, so let's add it here.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>

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

Miquel



More information about the linux-mtd mailing list