Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5253880rwj; Tue, 20 Dec 2022 23:29:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXthkasOEbUPx7xc8s+oYZIKch7fQUKiruZAyj6BGapQNrrdMsHG+RiBF+wmc7EbRsK7Vu65 X-Received: by 2002:a62:5801:0:b0:574:a541:574a with SMTP id m1-20020a625801000000b00574a541574amr1400556pfb.0.1671607785615; Tue, 20 Dec 2022 23:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671607785; cv=none; d=google.com; s=arc-20160816; b=iGIMx1Oh3otn5vJks5wM7svKvnsOetlyL+29epVrVD68WHFwoxS+Ht/6C+gOrCWbeI RPS0tGCLSX4MzQhitEVcHauBA0jwndkeZnzDtmpVlmvFp6f87pJImDqD1uoHh1U6HF3z snbPHbdsB3wOW+JpmR2Zl0MU3/mgKmIOZ2KUCF5s3NrokgMBBjkEtqViNj2wHwei9ePs 9wbqaKYM1F4a1Oj2EVUyqvgF8GzN5+3zQrCd3lGpAe0U7HOQ6cLL/E58HOMhqVbx9zGB Gwfg6BRS+1ZGQVXcVPp2IfU8CdllJTdxQkT/b4XKwzmjkg8O08AnfAclJhX01ndwYzPu QrkA== 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=l3DtQUdn5yG8C3edbDeOK2NMVM1cqCLWe0A5+U54eM4=; b=rLasU49Q4q4oBvAVlzqhPp0jXiY8Q7pATHcN8zkGXGWkmoFf4Ok0AlvB/KHNCEJndW KHSoY48B+9reUBhC9zyOc/lXz9NRDPhm40TXBjyAWN3GpcAA6hyPr4PGlXxGf2hqG5il GDYroxYcA8CiFjh5qOG1SP7IB0H3AhJZneAJGr2qjDA3baFZ+bzPYkh/xj/zPnm951+q nIlwWb61xnBu/nomG8ExdNdAVlpIuRNUpWZ/T7fZspr0suhi245sMJc1DgiJhar86PMe 4pZCCZFX3p4ngkGiTqcj9mfvArvZAv1jWQPeLbNA1tY7QHYyaNll0HXiXkIvh5enTDlx s6Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pgqp3sYg; 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 z20-20020aa79f94000000b00574adda7b3bsi14638566pfr.349.2022.12.20.23.29.36; Tue, 20 Dec 2022 23:29:45 -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=pgqp3sYg; 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 S234272AbiLUGuI (ORCPT + 69 others); Wed, 21 Dec 2022 01:50:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233806AbiLUGuE (ORCPT ); Wed, 21 Dec 2022 01:50:04 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 862161F2C4 for ; Tue, 20 Dec 2022 22:50:03 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id z10so3398227wrh.10 for ; Tue, 20 Dec 2022 22:50:03 -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=l3DtQUdn5yG8C3edbDeOK2NMVM1cqCLWe0A5+U54eM4=; b=pgqp3sYgI0M2y0TLRjzoFFM/5rxF4gkCBlezPnjShaxGBb39t7uWWapYEzhh3ZuOdB DqlaarruN8SdkiwbO3z9OmoCsj07wvdHXWjH9OZmIvUu2VgeZbTw2BZYhgKT1t/T6147 cjzOjcdrBNMo1G2UIqkGp3o/l92YwMMX+GBT42W07QEn25bV9MNZun2QsSQlObsFYTSc kCFKO80yY+LhokCaqch1jmWEP+Ff4PJCThkr0cuvMd5NmdOdlfjOTnXvw/1DPcsBTWJJ A7IwVaAnT6RDRfUY1ntnMBplgoIF5Klb6KUCVImaffNSNB2ViJyqVCYJlgshKwtr0QYI x1Bg== 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=l3DtQUdn5yG8C3edbDeOK2NMVM1cqCLWe0A5+U54eM4=; b=4Kci7kTIzM2DqA4tHw5AhVaMZiAGFqb6Ho4FDQsuJxO6rKLj5L+ZH/1Wn3o4nHRl7r z10com7gDqmtC5rfw2kF+mqG2L0OWM8Xm5ldMvwRNt7uzTjYTni1d6TvZHhr99AN7Z0r L+JpNLJdNZzrZTrrDITlgY96tgvMp57K5jIihsKAj3olT7FUtyAu6bmXWg2PP47VZBK1 sXtt5LMQEYJOmxQOBLKPRx9C2cSVMzRupAPOMSqjxowSI07GE1S8Td1km8c8qEbL72lA BnJaKXgCdRXXfHPdCDtLqKRlTITaEweZVBnfCXkBhZcRysJnobBgVkcGyDsjQD4GEJWk KjBQ== X-Gm-Message-State: AFqh2kooForQHfbaYmCs9hHtEDHTwwZkaa0g5O27tGLmRUeb4EUcoHP/ CrbZEglZwsvDBW/OATQabKBA06noa+WZ18jD X-Received: by 2002:adf:e54f:0:b0:242:7fd6:1c82 with SMTP id z15-20020adfe54f000000b002427fd61c82mr278418wrm.16.1671605402105; Tue, 20 Dec 2022 22:50:02 -0800 (PST) Received: from [192.168.0.173] ([82.77.81.131]) by smtp.gmail.com with ESMTPSA id d11-20020adff84b000000b002425787c5easm14324294wrq.96.2022.12.20.22.50.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 22:50:01 -0800 (PST) Message-ID: <026225c6-f17f-e9da-b7c0-5d3473a97e89@linaro.org> Date: Wed, 21 Dec 2022 08:49:59 +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: Miquel Raynal Cc: Arnd Bergmann , Tudor Ambarus , Pratyush Yadav , 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 References: <20221220141352.1486360-1-arnd@kernel.org> <20221220165701.5696df1a@xps-13> From: Tudor Ambarus In-Reply-To: <20221220165701.5696df1a@xps-13> 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 On 20.12.2022 17:57, Miquel Raynal wrote: > Hi Tudor, > Hi, > tudor.ambarus@linaro.org wrote on Tue, 20 Dec 2022 17:44:49 +0200: > >> 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. > > The issue sometimes produces build errors, shall I send it through a > fixes PR instead? > Yes, that I was thinking about. Thanks, ta