On 2022/12/16 1:39, Arnd Bergmann wrote:
From: Arnd Bergmann<arnd@xxxxxxxx>The header file linux/mtd/cfi.h is included by the head file linux/mtd/spi-nor.h so seems the warning caused.
When MTD or MTD_CFI_GEOMETRY is disabled, the spi-intel driver
fails to build, as it includes the shared CFI header:
Is it really necessary to inculude linux/mtd/cfi.h from linux/mtd/spi-nor.h?
(It seems that it can be resolved the issue by removing the including cfi.h from spi-nor.h if unnecessary.)