Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4324536rwj; Tue, 20 Dec 2022 08:41:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf602BePtFcc3bdBXPRCU52eH+1c21aDmwaLsOZypYR4bDrotRBmpk2zsmPIi95S1drK5N85 X-Received: by 2002:a17:90b:78a:b0:214:132a:2bea with SMTP id l10-20020a17090b078a00b00214132a2beamr47170140pjz.4.1671554485169; Tue, 20 Dec 2022 08:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671554485; cv=none; d=google.com; s=arc-20160816; b=FyF8ailqaBrE7Ob7dZdM788KpNBH3LQPVe59ZZSlmNfo2RgHJfP6/2NqpO9a68b8el ElRVkHcoZAWvoIfCme4aBP+b6M/d17+T8JWwb1aBPMWPMrphI9QpzT6xvGGI4U/d23sk SvEk4V7kkcRB2NgeK2iPCEvpg/HzypGGhHWuy1rgY/ZTrize7gJDJzM3Zfo1fOyQ57i+ 40ggl4OpeltpCH8Q4NyPjEh9XFSpTYAev233StIF9XdTdhKhfAqgGi0e0I2J/8joYhZG onQGgM/BB1/T2g0V1e+VmYtUxKjzxFMEOslQ97bk2sx1WIH7v11I32gXDHj6e/Ub+9fo ez+w== 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=NwruL0979JFuznH/sYcDGOyKnO5iM9PcWtLgGuw0NsU=; b=uiipqz5Y1E81s9cIpwzVGoTx28md4WBBenaK4zyupnwvRB0jNJnP9Wqm/1P5FTnqhb RICgeuyp1z56+KyfO9L1Vf1+GFDQfajpX5Q5CeSaO+DgcIe11I0e/B6ucWlkzir9CJ/V IidP5m9kx/k2vPdpE9rtEDJL5xMgQ38FwzgoyAMV0Xbh9gIdquZ5BRlaua1Op+GtrB+k MD6TpLYWsu05VmM08mEF1M/Vq9VgTYkWMotE1H4Hd3yJ+YmA2nF6wYy+vDcScZV0UmBp 9hcg4JM1yS70vnfyOQsyXnBZ/n/Q+82y120ViCtyTCJOsjj+OLuoL1fujcL0HDZ/9uiP GMFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p4V2EGt3; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oo12-20020a17090b1c8c00b00223bfb6050esi8218851pjb.58.2022.12.20.08.41.16; Tue, 20 Dec 2022 08:41:25 -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=@linaro.org header.s=google header.b=p4V2EGt3; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233915AbiLTPpX (ORCPT + 70 others); Tue, 20 Dec 2022 10:45:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233886AbiLTPox (ORCPT ); Tue, 20 Dec 2022 10:44:53 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C83F1789D for ; Tue, 20 Dec 2022 07:44:52 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id m18so30147605eji.5 for ; Tue, 20 Dec 2022 07:44:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=NwruL0979JFuznH/sYcDGOyKnO5iM9PcWtLgGuw0NsU=; b=p4V2EGt3ZnZQxaCBjlBhrwCG5HcuYcfA7xUfw/CAQ6IyHD/S44ZCqBrSM5JZDwLerm GDjFxBiBAXvKJRwWq0H9SwdUEBM8miqRLpSQR2LBmndgqIQTP+4W5xQSySG7/v7bXpQj uHFauQbgi3qKRcAEbHn06zTXAZei2M4vEAg3KFGpHPeGYq0ryjr7WGElleLmEv2cUcQ1 twbHF5it2suv2ThaShjVv3CPErmvCAy8n58V3dwHL6A4rEpS7EkGa81BUTG1bgxaNGfb upWph0T1Xg8ePls6P+kIATtC/FNrnOzBTzZsJ3B8IQAdYU7ufW3f83co90ZVag4iRVFI q/8g== 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=NwruL0979JFuznH/sYcDGOyKnO5iM9PcWtLgGuw0NsU=; b=CNJFgIp9FzrjuJWB/gwGGEJy6rybFUH4GBb1IVpqeyoECgxNja1m+PH6XESNS2qSl1 7wbRTck30Y5hdeQLn7uvWzo/ervrwAoVeaDBBMz+aoIbaJt54UU7NMf6ileAumY2BDwn 8zt+pV/JYpDerfISFKBc1GfhduQS+WrmNVpk/I1rJ1OL8Gdl7f4CPGPAXsHMZrrrBe2c AmSaeTJNtnBmGfh9bVw9c9eGh3N/NDOCrUljW6sX82C/chwWfGWHmLflcak1Ig/Tkst7 3T6XnWpQTzxZd7C4wRLbAhlhNGhyTmKN0wqiEPmWm6aMEbPguZPafeyt5rMBuJK7xuZq e13A== X-Gm-Message-State: ANoB5pklaMVTnk6PY7FxSkjSdz2k1uQSqip8PyatDqN3O0BTmIvPFouR wkSE8swqkNWeLs6u/mAL3fVkNQ== X-Received: by 2002:a17:906:858e:b0:7c2:3b8a:9f0d with SMTP id v14-20020a170906858e00b007c23b8a9f0dmr25004914ejx.51.1671551091036; Tue, 20 Dec 2022 07:44:51 -0800 (PST) Received: from [192.168.0.104] ([82.77.81.131]) by smtp.gmail.com with ESMTPSA id j2-20020a170906410200b007ae693cd265sm5825058ejk.150.2022.12.20.07.44.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 07:44:50 -0800 (PST) Message-ID: Date: Tue, 20 Dec 2022 17:44:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 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: Tudor Ambarus 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.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Hi, Arnd, On 20.12.2022 16: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. > > Fixes: e23e5a05d1fd ("mtd: spi-nor: intel-spi: Convert to SPI MEM") > Signed-off-by: Arnd Bergmann Looks good to me. I'll let the linux-0day bot run over it and apply it once -rc1 is out. Thanks, ta