Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1902477rwl; Mon, 26 Dec 2022 06:23:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXt0AsdzP/QMbg54111bnTqrFbPA5NkjDtyhMtbZj7tVK2ai0Mz44zfuX+saNClKpPJV+Q7f X-Received: by 2002:a17:90a:fa03:b0:21a:1abf:8e57 with SMTP id cm3-20020a17090afa0300b0021a1abf8e57mr20432203pjb.4.1672064584520; Mon, 26 Dec 2022 06:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672064584; cv=none; d=google.com; s=arc-20160816; b=O4hG6lhCoNb+s/ZKJEoD3Lj/r4HYNB5I9ecLBJVt23wlKeY4HzJIu92D2ZMPIoD9vW sA1FGUQu8gN4sk70cRAtx2oBW/1kHHMRMMD73g4GODe0l6SV1KPiaMVZycAjnsiTssKZ Y3EGJllpw1fsTKkwxCn3zGWNguBP2kiLyehrQS8ZIWLIQmq2IGtaTwQ2iJKAVr+ECzAr baM6nmNEcXe7Zh1N21+PXHXBTxt3lGd82GHTWhMnvF/TfShykf4HeGeG8btmjbuLfA8U aB0hx9SYQ9I7wVl2WDy/pT74Pb72La89HYCtkIdjgWmwM9B/bKExkdFBUABCzanWI1qJ xIKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wz36NAJzHFOlc7dSXNsafmXsMDqt9EnEnn3MigdEtno=; b=YTxH7PDUQAl8AdhKzxeDbwltm7MvxjRcjZsXnoNorL/pRjetmhCQSAuiC73YltyVNV n05yC7ZIhtN6U+Q0kUjimT/eZjyv15yXhFZCk/IX72nvlCGdoM2Av+nD3Ho3nB1DyAfw fC6IuTeiZWT3gSWsrrauINi+lTaRaDnRhY9rfvbMN8Qk3CvwfOA2ZTmscfde+KxtHXqF TovQTx08fKIYBya9k9t9RCX8lCFh1oMDETz+6+4CVDGcqs23dFkKSBpsxazfDW+VFR/1 S7WSw0+0/65PgT/JyUi10aKTdgVVmhpeImhTmA1ItAnbwLvei1RM42ARDBzAN7FQFsx9 QitQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KG2wJitQ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a65418a000000b004786f5e24f9si11166628pgq.94.2022.12.26.06.22.55; Mon, 26 Dec 2022 06:23:04 -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=@kernel.org header.s=k20201202 header.b=KG2wJitQ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229823AbiLZOOb (ORCPT + 66 others); Mon, 26 Dec 2022 09:14:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbiLZOOa (ORCPT ); Mon, 26 Dec 2022 09:14:30 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C02B81 for ; Mon, 26 Dec 2022 06:14:28 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DAC8860E9F for ; Mon, 26 Dec 2022 14:14:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CADCBC433EF; Mon, 26 Dec 2022 14:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672064067; bh=OqJdTNZqSFcUMxk64faUfp/thzIgzJb5+8PHHeIcJGg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KG2wJitQe5gaw40uMwo3fJ1v8niyFjlj9xnubAteuAWKXDuzgvFvI5+iMlTs7MhDs V/4Nf3gqRcmdRp375YL5PYvFYOpAfJeqN0l/LRq41Bxp9V9zfHClI8VpLrmpaevZC/ 26xKyJMeolE5jXGrd+zg0Uay5/IdACdEsIxoSukeRsLjqYdTjJQfm1onnZmxJFMZ9k KOC/sy7Q1dysK7Sza1tRzoW7DQVxd6V5BXUSO1FP9tUziRD8LuTsCgE0pJ2xnpfcTl gJ135p9otm4SyHyHLZWT8mKgVx8ecIOxDEqX3B/0RV59WTYmJCuHZgFUUmN2B3Ggyo oRwB1e7gwlcUw== Date: Mon, 26 Dec 2022 15:14:24 +0100 From: Pratyush Yadav To: Arnd Bergmann Cc: Tudor Ambarus , 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 Subject: Re: [PATCH] [v2] mtd: cfi: allow building spi-intel standalone Message-ID: <20221226141424.vns7nsczcg3gfpt3@yadavpratyush.com> References: <20221220141352.1486360-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221220141352.1486360-1-arnd@kernel.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 20/12/22 03:13PM, 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 Acked-by: Pratyush Yadav -- Regards, Pratyush Yadav