Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4155126rwj; Tue, 20 Dec 2022 06:49:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXvay6goa3CQ9IrWVlgOU/EgTkmaO/VQe76IOf0xqoMIQlE9ZY1wFNr/R2S0I0xhzTuQg8q8 X-Received: by 2002:aa7:c78c:0:b0:479:400a:d940 with SMTP id n12-20020aa7c78c000000b00479400ad940mr7848865eds.17.1671547782869; Tue, 20 Dec 2022 06:49:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671547782; cv=none; d=google.com; s=arc-20160816; b=NYTPCjVMseq9wtMafyS41tSWGUwAyQ/nqTXEqiqFS33EaY9SXLfXwe7YLLhGa1Wvsz PrvIqGto3tBdahMIIBcl0y+10pbEenlUSudMgUFfUbiMc4jAYQaXar25117G0SNvDUdk y65ciXwiigSzEGF+tPD+s45d9K8MytzzVndu6zKYUIGrtJ46MmBqhHaFXElBFfz8eGNQ /nyjiuoIGLsS10/tzOlIyiXVTy86/aknvwKtlWyjRDRBD95q+0CFdiYMUMXsZ+hz4qGy 4TS6FfwS9+9g5Ti3v5ugndk0TulOmNmHJguxxGHbCar/yt7IvfvbGaqAX+bzXLKUxkxC JL+A== 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=aNV+KQQfyDIxva1orfzjjZJ744K3T1RHKI6bBSavu30=; b=hL0FCj5+sK1b83i5M4p1V+vbDCj8jzHVmZFHBJQNlWwQAFtSb+1vzWKWOGgglsDb23 u0/kCYVLEz5KWbNbzxYFsojkVKKtZU8dmhqOsc6/TrTaCUvz6lpMweVFlTJiMiAz/ZwZ H/iY26blJHUTQU+9Mux4QoWTaBTXGTAwxZwF8j6+Zae2XeRg3/NXKMlsJDXkk2NqjFep 0uDWFGlbTyW/OPUKLRBZ/1Ic6MN09buQFCK3GR/q39lw1tPI6P5pq1YYsY+XuF7N3Jda w3vP2gS2vX/vA+qxuQk+jMg8Xo96I46Kju7iwRc+jz/ix0iflGgq4NngYF8HGXUT3Dpr vLUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W0xtRITm; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a056402040600b0046c5b0dfea1si10424631edv.625.2022.12.20.06.49.26; Tue, 20 Dec 2022 06:49:42 -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=@intel.com header.s=Intel header.b=W0xtRITm; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233981AbiLTOTq (ORCPT + 69 others); Tue, 20 Dec 2022 09:19:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233931AbiLTOS5 (ORCPT ); Tue, 20 Dec 2022 09:18:57 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBB5F59F for ; Tue, 20 Dec 2022 06:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671545920; x=1703081920; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RNoKwRr5C4L86GoAxSCU/infqiCSap2MrAl/iBgBGgQ=; b=W0xtRITmjTpTntT6Luilo+Pxgi5MmAmhD6OnH+TMVdcIb44a2+zBtDBr TRKeYOb9dTRBjn4/6WJbAYtEbmas+SHb3IhxHH1qjgoQHYYVq/hJd4LQY cQd2pe14hCrWnoSnORiFzoLKFMTeyV4aqj8m7hfneZY/5R3OsQpmo17Ii 25+sAMOYcG2h6DfPEeHzj7whOJDnyL3Vo3C0kAw40R51gSp9qv+9YVIcr y219G1nrtEyVigKxFKXJuf4PjYADQmtrjSSWLo+h0+7NesZqTIb40H9YC P7sHTZlH2nN/Q+ev8rCrMOnVenW7Qp2hlTDXoE/r6RAYTzbY3Mh2lgBdz w==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="299964369" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="299964369" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 06:18:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="825277253" X-IronPort-AV: E=Sophos;i="5.96,259,1665471600"; d="scan'208";a="825277253" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga005.jf.intel.com with ESMTP; 20 Dec 2022 06:18:35 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id 70BAC11D; Tue, 20 Dec 2022 16:19:05 +0200 (EET) Date: Tue, 20 Dec 2022 16:19:05 +0200 From: Mika Westerberg To: Arnd Bergmann Cc: Tudor Ambarus , Pratyush Yadav , Arnd Bergmann , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Takahiro Kuwano , Sai Krishna Potthuri , Boris Brezillon , Mauro Lima , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [v2] mtd: cfi: allow building spi-intel standalone Message-ID: References: <20221220141352.1486360-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221220141352.1486360-1-arnd@kernel.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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, Dec 20, 2022 at 03:13:34PM +0100, 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