Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4272552rwj; Tue, 20 Dec 2022 08:06:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf5WS6S14lGkIxNHVGOD9XW8VYwOAJBegaKl02brl+3v4EgnmijQ7ay4ErZNQSiqx/QoWSNp X-Received: by 2002:a17:90a:7483:b0:219:b1f3:2401 with SMTP id p3-20020a17090a748300b00219b1f32401mr48303585pjk.13.1671552365371; Tue, 20 Dec 2022 08:06:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671552365; cv=none; d=google.com; s=arc-20160816; b=epcZnFfPJZhoSTRCnVekQYgoj2O165xnddBsQmgZQWnX7qkraDuhnKhJknf3CEWAHy xGvGzVMjSed3i9lCBwWt8zk1vf9Otl74w5EuIgWHjfbYNUJcf2xDgd1WGJj1japBsuNX q4rISX1ugOZScPar6b46+iz3jEQgCFKjHIFFaOu6ZN26767IwhRMBCyFMYKjnszVm1te C+PQs+zUq39pe9qS3asJcSlvWqmW2Maz1p6JSvozJkAX5jQJSQ1jjPpvcosTzdoWjJ7D H2X5fiUUC18Mk/p3Ab+db9d2ddeHFS2XmFviCrQ0j5GY4RzN0ArGuTMdLPSAVGOn6pek PtVg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=mCQUAf7Zkzk+AreJl3bcOvu94fhcF4svN/mdiLj7C9w=; b=kWbFtZbHIvFpKdU3j9bH6I8hZHqHehS0LoNtWyzSalbmzR5MhQsGc/RsvarI/bcV4X rYbibv0mnCIKXJYKFg1jCCwJvl7EkgHFSkX8rG7quWHxYa5lmdZ8iyQFmNg0t9lAMHCi 3b9mylKr2eZiydsxekq1E+dFmmxBJi2VOSiivO0VWREoZqVRVObPffAwyG7lYBjpUz7/ DdFIxdWp3z618kGjRFb3lmDDsOGuQodZ/U102sbf9SfExyOCpvLMEZav+O1DAfQBNsAC W+ue0ClhSKS+KMavYv/mGsED4m/GXP0IeQwEtz5CMt6WXeOpyigxoEltZvufzw38J/aA t0RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=OztXlCct; 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 nu18-20020a17090b1b1200b00213997a5fe6si15188520pjb.113.2022.12.20.08.05.55; Tue, 20 Dec 2022 08:06:05 -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=OztXlCct; 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 S233364AbiLTP5P (ORCPT + 70 others); Tue, 20 Dec 2022 10:57:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233010AbiLTP5I (ORCPT ); Tue, 20 Dec 2022 10:57:08 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0847C9FE4 for ; Tue, 20 Dec 2022 07:57:06 -0800 (PST) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E37F11BF211; Tue, 20 Dec 2022 15:57:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1671551825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mCQUAf7Zkzk+AreJl3bcOvu94fhcF4svN/mdiLj7C9w=; b=OztXlCctGdAbEdWDLpXDhXcXHIgBH0P8WrhuLRsL7HG9u9o1s2YTc8beVMWVGR1qUFsW5O oMyJY0SfsZ/t838/P34fHh2F0od/HtNk75nmQ/dSj0O/GGYzD3/SsdxNkGT6FVi8ZnfuYV HiwvQGxdNdrZ2zJQ9AJDwOE4fGF4u0b8HkbNdDayvWDn/YucqpWlaYDZ+TnfMQZAkevEqW lF36ERmd1aHWlZEY6WUdwB8078PG5q7/J1qGFyRBHQKjViemIq8l4tdKmDqgv5RXyY6jRM 2E0jz5QC56ljpSmdOG6ghSMf7gzLntjFJvyBNqm2OYQoqV+ICFBLvm+nxMImzg== Date: Tue, 20 Dec 2022 16:57:01 +0100 From: Miquel Raynal To: Tudor Ambarus 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 Subject: Re: [PATCH] [v2] mtd: cfi: allow building spi-intel standalone Message-ID: <20221220165701.5696df1a@xps-13> In-Reply-To: References: <20221220141352.1486360-1-arnd@kernel.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Hi Tudor, tudor.ambarus@linaro.org wrote on Tue, 20 Dec 2022 17:44:49 +0200: > Hi, Arnd, >=20 > On 20.12.2022 16:13, Arnd Bergmann wrote: > > From: Arnd Bergmann > >=20 > > When MTD or MTD_CFI_GEOMETRY is disabled, the spi-intel driver > > fails to build, as it includes the shared CFI header: > >=20 > > include/linux/mtd/cfi.h:62:2: error: #warning No CONFIG_MTD_CFI_Ix sele= cted. No NOR chip support can work. [-Werror=3Dcpp] > > 62 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support ca= n work. > >=20 > > 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. > >=20 > > Fixes: e23e5a05d1fd ("mtd: spi-nor: intel-spi: Convert to SPI MEM") > > Signed-off-by: Arnd Bergmann =20 >=20 > 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? Thanks, Miqu=C3=A8l