Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5968258rwj; Wed, 21 Dec 2022 09:09:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXur6rZLtYzfcQfbH+mI4TEZugPTPijYJYBUyj4rl45K+UAV1TMEnf9KWfl603wH8j7tgbh0 X-Received: by 2002:a17:907:d601:b0:7c1:2d36:d11a with SMTP id wd1-20020a170907d60100b007c12d36d11amr2591075ejc.11.1671642556153; Wed, 21 Dec 2022 09:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671642556; cv=none; d=google.com; s=arc-20160816; b=NZc+AFYJlMHax6o2bf7NsQCbnL/iqbrzwBHbN/RvO4SzOi0QvwqXSh61y6t8GSIeP/ aj2UH/difLqqnPoRhQVxQ99yXL8K+ulhyww6/NXGl9Gpnm6VYoKhDo8Zd2V6UhMs7huj GY/mHoPhXt+hwddPJWrXhD8/JPYRElF8v8+DTHQW4IdaxI2vX/HAgWQSoSvuxQvIi57S rGuvgEb4AVHF3hb8UNK1b25Z+ZJfzWhrLTUaj3kZPOyGurvwWr85Ko5jMOXcUMVhoeAE SvPX8gEeb4mv5BpmBDhvrqoOERi63OrVyP9MwiD3+TfglaKUCE0aiqvuRRVvHjJpgUIL CUNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Zf7b1Um8dHFfJxzXmlJa5Ye00ncxyhJJVvmWoX+5UNg=; b=xVTXq5Ty6ORAvMJAJLka7FbpFq4q0YBxLrG2gfUET+90nqNmcMNk8ahCbJNXeCxBrs RjaLnrBx4hObRGT6zC8R2An8cI/GdZbZGIVxxxZb4UKB0wjr5N7l+3NBAcivJFg0qUwd eIlCMIyDjVuNJP+TZw2VhQMMsS7hmxkwzt1VsU+T7o1UQk5h2a28oZmp5HiSQnP4fjVf OlFXgCNcTXy+sOpu4T8bW+/R+MXnArwwexwzGQ8qQ6r9WpmUQREBwqyKnfuGcoLeJjhh mqUty8bNLQ5L75wauYCLN1iaFoI7Fm54UEVTW+knw/lM5/tO7naAirOsX0lUjLJZoGu/ t5vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="cXMnkLa/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du1-20020a17090772c100b00834c981c06asi5279009ejc.321.2022.12.21.09.09.00; Wed, 21 Dec 2022 09:09:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="cXMnkLa/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230336AbiLUQsE (ORCPT + 69 others); Wed, 21 Dec 2022 11:48:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230330AbiLUQsB (ORCPT ); Wed, 21 Dec 2022 11:48:01 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CE712496C for ; Wed, 21 Dec 2022 08:48:00 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id n65-20020a17090a2cc700b0021bc5ef7a14so2656312pjd.0 for ; Wed, 21 Dec 2022 08:48:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Zf7b1Um8dHFfJxzXmlJa5Ye00ncxyhJJVvmWoX+5UNg=; b=cXMnkLa/BEl6nLUkGegVRuJ8xP3NJvfAqoDs/4aAd/4kVWHWG0te6VfkTbUz+4Krmb WfBdJ26tmjnQl3Zs1pl40sBUE8qA5Qj1X3gRbYvE+qtsd8WAT/6cvCK3U8d3U0kuZ3Wn i2U1NDPwDUpXkh53mLz2UEPNQ3l3gEZZwurqquF/edSnip9aJ078wAupTNj0RPhe9n5C ZuWv8lfMdi/wsZwE3Unjk6sHcqffEhzedNuCBh7shGoHfk03rIIgBveDs53oKltETjyA /OmwvybSP89ZdaZe/gqm6+gRIfVf9nDmmKjo7lliMHfWaVb0pHCH7nLgpD/Ke1VwaTu9 O4Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Zf7b1Um8dHFfJxzXmlJa5Ye00ncxyhJJVvmWoX+5UNg=; b=bas8AkxxWYsaW4MCl/NJTrD33eT1unmvf9e0QAwzLzdUcXG1ceRcS31jXY0ADf+fqf RGxgJ0k43V3HzoSH0hK89Y9S/1mK+zScqQKDC9ebowDrxddC6cElJt+oB1XwW8+sla2d rdzZ8ZJTxMAoEIaIifjU7/R2Yh8aSEqg6c2EJQPjnR6nhssQ4wb5OPiZAihpLNtMdx5n ZUpSwNsEb5yNWA7kUhulsaTtOFxP3lf+3SGJw69a+lelBPPzPH0KHFnqNQg5f1woEKpB Ac85Fse1RT6unzR7eyiamht2PvD+90gZxtKpS8pHBNmm+UwjXItX0NQklyEg/cTFlFTv /2QA== X-Gm-Message-State: AFqh2kqU7rxH00WoxXiEAchSwvXhO4vY0g4l6iMr3DpJHlr+pneNFIzb OdTZOC/P9gYAZaEXpDFgBLE= X-Received: by 2002:a17:902:da86:b0:187:3921:2b1c with SMTP id j6-20020a170902da8600b0018739212b1cmr3498172plx.55.1671641279366; Wed, 21 Dec 2022 08:47:59 -0800 (PST) Received: from ?IPV6:240b:10:2720:5500:24a0:f664:12ce:afd8? ([240b:10:2720:5500:24a0:f664:12ce:afd8]) by smtp.gmail.com with ESMTPSA id c17-20020a170902d49100b00186a437f4d7sm11712452plg.147.2022.12.21.08.47.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 08:47:58 -0800 (PST) Message-ID: Date: Thu, 22 Dec 2022 01:47:54 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH] [v2] mtd: cfi: allow building spi-intel standalone Content-Language: en-US To: Arnd Bergmann , Tudor Ambarus , Pratyush Yadav Cc: Arnd Bergmann , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Takahiro Kuwano , Sai Krishna Potthuri , Boris Brezillon , Mauro Lima , Mika Westerberg , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org References: <20221220141352.1486360-1-arnd@kernel.org> From: Tokunori Ikegami In-Reply-To: <20221220141352.1486360-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/12/20 23:13, Arnd Bergmann wrote: > From: Arnd Bergmann > > When MTD or MTD_CFI_GEOMETRY is disabled, the spi-intel driver > fails to build, as it includes the shared CFI header: > > include/linux/mtd/cfi.h:62:2: error: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Werror=cpp] > 62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. > > linux/mtd/spi-nor.h does not actually need to include cfi.h, so > remove the inclusion here to fix the warning. This uncovers a > missing #include in spi-nor/core.c so add that there to > prevent a different build issue. Reviewed-by: Tokunori Ikegami > > Fixes: e23e5a05d1fd ("mtd: spi-nor: intel-spi: Convert to SPI MEM") > Signed-off-by: Arnd Bergmann > Reviewed-by: Mika Westerberg > --- > drivers/mtd/spi-nor/core.c | 1 + > include/linux/mtd/spi-nor.h | 1 - > 2 files changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c > index d8703d7dfd0a..d67c926bca8b 100644 > --- a/drivers/mtd/spi-nor/core.c > +++ b/drivers/mtd/spi-nor/core.c > @@ -10,6 +10,7 @@ > #include > #include > #include > +#include > #include > #include > #include > diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h > index 25765556223a..a3f8cdca90c8 100644 > --- a/include/linux/mtd/spi-nor.h > +++ b/include/linux/mtd/spi-nor.h > @@ -7,7 +7,6 @@ > #define __LINUX_MTD_SPI_NOR_H > > #include > -#include > #include > #include >