Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10502012rwl; Mon, 2 Jan 2023 03:50:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWAmFrVKyxxD4PzdVuX1aLMiiVJjCWFjR93MOTeEkLnm+Q9w0MijOf/QG5pkN6TLRVaNvL X-Received: by 2002:a17:90b:1203:b0:219:823e:6726 with SMTP id gl3-20020a17090b120300b00219823e6726mr44480240pjb.19.1672660226374; Mon, 02 Jan 2023 03:50:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672660226; cv=none; d=google.com; s=arc-20160816; b=j9wZrWQ3ZmqpryU8cwq8cDS1sSDrgZwo1IJkvXGprE3QxBd6DL9N2/D4Bgr643Eeca D3emgYGQCiy6se3Jv92I6aNxJJo7/t/reyziRPRIGUpQ6gs1K7orow7Ocum1VN3hYTWQ 0+uJmNMmIw8Dr7Fkw/Mc0W/j5/J2igwMWJ78Red/nF1bz/6hgSZaUBvTY0UwpjVW2cRm l90yyBIpsNCasPPLVhnSBa4yKAvc5FY/K9/br6A/yqp2ZnIrgvQiQSM0YclenM6QwFj0 usDhyQjRyGiruqcyJKmHqXmCzvBLIDaL2pMixNRuCew4Xp/gogMhYbQKC8SdSJlsKqoo wKRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qw89x4Kg3SjlkQR0d7Jy+ZdKD84uyDA8n9IHbMQerAk=; b=cRr7Furz0yjioP7BfgXIIe0uTWEHAF1GIaBaaw6VSgGErLQE6gwYC885FnmJO1wvC5 lhYT/wKtxliEf3WXDca3nfzbywS83qoblUWp6JAl7uB1gP0jbpwXpYS98/rqioempZtM BMoZe8TWKW3lhYuPMyqAZ5Gm6a0KlnJq8zWCF+xAz27zNXTjoUtXeRnwvnKUStBlDXco bwfsOtOFpQ+FbhtQyHyctnm2lKMfG7Rr9WM4/241/ccBCSYgOsjZoO4ldzYPjaFhHNUU FU/+lRRbf0f5y2tnBHhV/HUsUeNVsWLUpMMwwh2+HLPES9YZ8dffWOcQ+TlX0g7LYSEJ 3S1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=E7GU6Odw; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 35-20020a631863000000b00477257f2f01si29386770pgy.339.2023.01.02.03.50.18; Mon, 02 Jan 2023 03:50:26 -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=@bootlin.com header.s=gm1 header.b=E7GU6Odw; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232582AbjABLRw (ORCPT + 60 others); Mon, 2 Jan 2023 06:17:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232471AbjABLRi (ORCPT ); Mon, 2 Jan 2023 06:17:38 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C95862EA for ; Mon, 2 Jan 2023 03:17:36 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3DED524000E; Mon, 2 Jan 2023 11:17:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1672658254; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qw89x4Kg3SjlkQR0d7Jy+ZdKD84uyDA8n9IHbMQerAk=; b=E7GU6OdwpnSph+DsCbh/iHthBFRhCzgPqySVXfLkFfxUw+A1jVk4IN9udkeTALUQc0p1Jj hEjgv1FUITOC3FIITRbJOA7gyi26pCtsE4pSMhejJ38Vluo5fID5FY+de3C664J/4kQ/8G rwgGZ2UjywqS2ItB5LrzuyivFsOms4xohHLUCLi8J8kQ33ql0xBCqk/BIYCktciMuJUtww 03eZxIYOhKp/2Z7elIgXisd0QxfsnKu8wF40kxJrmIvC0teqCaPy9Pr48MQOrHEJfZ4ljf iV9qz/OExayXkFpPWOTq2JwbAxPr9MUYkU/bqZvIgJdwFTUG/xugJ57wqxnnLQ== From: Miquel Raynal To: Arnd Bergmann , Tudor Ambarus , Pratyush Yadav Cc: Miquel Raynal , Arnd Bergmann , Michael Walle , 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 Date: Mon, 2 Jan 2023 12:17:29 +0100 Message-Id: <20230102111729.85746-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221220141352.1486360-1-arnd@kernel.org> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'd19ab1f785d0b6b9f709799f0938658903821ba1' Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Tue, 2022-12-20 at 14:13:34 UTC, 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 > Reviewed-by: Mika Westerberg > Reviewed-by: Tokunori Ikegami > Acked-by: Pratyush Yadav > Reviewed-by: Tudor Ambarus Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks. Miquel