[PATCH -next] mtd: spi-nor: core: fix implicit declaration warning

Tudor Ambarus tudor.ambarus at gmail.com
Tue Jan 31 00:57:43 PST 2023



On 23.09.2022 06:14, Zeng Heng wrote:
> spi-nor/core.c needs to include linux/delay.h,
> or it would raise below compile warning:
> 
> drivers/mtd/spi-nor/core.c: In function ‘spi_nor_soft_reset’:
> drivers/mtd/spi-nor/core.c:2779:2: error: implicit declaration of function ‘usleep_range’ [-Werror=implicit-function-declaration]
>   2779 |  usleep_range(SPI_NOR_SRST_SLEEP_MIN, SPI_NOR_SRST_SLEEP_MAX);
>        |  ^~~~~~~~~~~~
> 
> Fixes: d73ee7534cc5 ("mtd: spi-nor: core: perform a Soft Reset on shutdown")
> Signed-off-by: Zeng Heng <zengheng4 at huawei.com>

Applied to git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git, 
spi-nor/next branch.

Thanks,
ta



More information about the linux-mtd mailing list