[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4a378429-9a23-13a2-5837-512823e182c3@linaro.org>
Date: Tue, 20 Dec 2022 07:51:38 +0200
From: Tudor Ambarus <tudor.ambarus@...aro.org>
To: Tokunori Ikegami <ikegami.t@...il.com>,
Arnd Bergmann <arnd@...nel.org>,
Miquel Raynal <miquel.raynal@...tlin.com>,
Richard Weinberger <richard@....at>,
Vignesh Raghavendra <vigneshr@...com>
Cc: Arnd Bergmann <arnd@...db.de>, Lee Jones <lee.jones@...aro.org>,
Mauro Lima <mauro.lima@...ypsium.com>,
Tudor Ambarus <tudor.ambarus@...rochip.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Boris Brezillon <boris.brezillon@...labora.com>,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mtd: cfi: allow building spi-intel standalone
On 19.12.2022 17:12, Tokunori Ikegami wrote:
>
> On 2022/12/16 1:39, Arnd Bergmann wrote:
>> From: Arnd Bergmann<arnd@...db.de>
>>
>> When MTD or MTD_CFI_GEOMETRY is disabled, the spi-intel driver
>> fails to build, as it includes the shared CFI header:
> The header file linux/mtd/cfi.h is included by the head file
> linux/mtd/spi-nor.h so seems the warning caused.
> 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.)
SPI NOR does not depend on CFI. cfi.h shouldn't be included by
spi-nor.h, indeed.
Cheers,
ta
Powered by blists - more mailing lists