Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1910472rwl; Mon, 26 Dec 2022 06:30:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXtWE7wM6xwOt42O9qKPDmhgpFhRXG1WNvhgoKrqMbKYuCjZ1bWxld78yPXlrHRa3JI4E9Mm X-Received: by 2002:a05:6a21:32a1:b0:aa:6efd:1883 with SMTP id yt33-20020a056a2132a100b000aa6efd1883mr30207717pzb.37.1672065002146; Mon, 26 Dec 2022 06:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672065002; cv=none; d=google.com; s=arc-20160816; b=t9JLLzGIlOyc4yPDvWCmW2Mt4j4mzs9F06FexHD5umrIWIp9KGLM934qG97MkCpTj0 7nduiv7f5G5SWNVRf4uFIi0xHqq3wqmgYIKDi+nZihedk3RTPd7SoTS+3OQJJlIAqRiS PPQZJooy6YWfDpxxT7XAF22mvc5JNHZ4nGHoxfZ2yL2xpxLVNiQgCAoIjoKwga0eH0eR 2kr+9SYlum49pSh/xO+dYGkhkdASg+wGYUB1z8eFY0cgGhhZR//UTzi4iGqGSue/HskO 1Sp99oNP+Cf291QSXI9DyNY0PJVBNSM77tKbImilvTcoNG9pTxlzVpgyeDiYhZKxkfA2 co/A== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=G+7qtVYjcqPvE/k1QEDEyz+eQy6Hwuj22SxfubsIkZo=; b=nsV+AQDLpFEZQfyRYmmM/fx9ryiW3YTP7a/PV0FHFgBqScAK0Fv9nf+htC1gtJep6l ud9rysQEMCppDoNbufpnxRc4Q5s1F1oM1MN+g19Q74a6leBOrx1WeUFmq0cJd2dQkNjb Fmk71bMcsjcvun0AOyCmaLD/8eb8xPByluhfSQHyUdjC50fDgG0byz/0Ek6D6DE/m2hA B5EZ0iQrXwZCd2ZncYSD/jb/QQks91X3zAVTIJVm4RUVBfeW+l5bhHwh5FRlLk8ziSlP 2PdGepXZHxz8gMXBhGJNf3REVE0wBs8+rktP069JMDkUq/Fb8kC6QMDr4Yg+5oDM0+mn zh7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QNaZe3TY; 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 o34-20020a635a22000000b0047760609a73si11770805pgb.57.2022.12.26.06.29.53; Mon, 26 Dec 2022 06:30:02 -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=QNaZe3TY; 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 S230015AbiLZOWq (ORCPT + 66 others); Mon, 26 Dec 2022 09:22:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231857AbiLZOWI (ORCPT ); Mon, 26 Dec 2022 09:22:08 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04049262A for ; Mon, 26 Dec 2022 06:22:07 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id i15so15675410edf.2 for ; Mon, 26 Dec 2022 06:22:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=G+7qtVYjcqPvE/k1QEDEyz+eQy6Hwuj22SxfubsIkZo=; b=QNaZe3TYok5E4UMDykUVs1doSqbl+yF9VyivY/zRr6IQnDZc5rsv03mxU+CHu4WafX cBoh45oOUzxF22snszZEwDCw9m2HV8LR0u9J1PyQ08WL5WhnYejulbrjUkzKOlb8gc7a GzVE4b5amh8Bm/nSDFtX82NJsQ9jxwO5FjhEYKpxNJiZ6RwRmlCMtXiEo1YpVP2dQQfb dOt8FnYp9LAW7x2UHL2X1koeF4tUsQjpGMOhPolMaKepoV7h2TB1jUlvM/l58cLzskOB MixrBiyNSF8+BR8udIRXu4H+kQKlcszmobTbThAuYAfHMBNp03yopvtlwKvf+E15NFkm AAig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G+7qtVYjcqPvE/k1QEDEyz+eQy6Hwuj22SxfubsIkZo=; b=mVV3P5f7i9KUWTOTLcO2WvoaLcrR0Up5vzkPfdVuUae9WtEMIGprK1sfdYqZFjR0fb 8D+boJvxfpFomPkCEGjcsYC7y5iNqfg5v6FJrwvYI3boAfJV9LYgWhggtyhWMxk7kvAG eEMEE2K6UvKLPJu8N0RenngLZmKuXThVdHO1mrxwptuVfeCjrYI/qptmEq3ZOg3nZlnl IA0AjpxMfUYb8rBHZi7RVr3EVbFvZNTW+YsbYV29RigzLjg1m87v1ObJOkRFHdeiwwkL WLfL5sO8d0WqRqXypPy/ucXJ/2svX/WscUaGooqZMogcJUjdB3toZomoWIkQmO9YlTKb HMhw== X-Gm-Message-State: AFqh2kreUoF2vHgu5vVBg0AgpRdc/IJ63Wdi1cwhsCtP+gqQ1qtXBEOa wyLqCQl0d8PuFZwGgcsaq5PxZw== X-Received: by 2002:a05:6402:390b:b0:465:f6a9:cb7b with SMTP id fe11-20020a056402390b00b00465f6a9cb7bmr15926698edb.12.1672064525630; Mon, 26 Dec 2022 06:22:05 -0800 (PST) Received: from [192.168.0.173] ([82.77.81.131]) by smtp.gmail.com with ESMTPSA id s14-20020a056402014e00b0048263de5aa6sm3622014edu.75.2022.12.26.06.22.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Dec 2022 06:22:04 -0800 (PST) Message-ID: <32ddf1f8-eda1-da00-a3dc-901c4ee61217@linaro.org> Date: Mon, 26 Dec 2022 16:22:02 +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 From: Tudor Ambarus 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> <026225c6-f17f-e9da-b7c0-5d3473a97e89@linaro.org> In-Reply-To: <026225c6-f17f-e9da-b7c0-5d3473a97e89@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.2 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 21.12.2022 08:49, Tudor Ambarus wrote: > > > 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. > Seems that I shouldn't push to mtd/fixes, so: Reviewed-by: Tudor Ambarus