Received: by 10.223.185.116 with SMTP id b49csp1088321wrg; Fri, 23 Feb 2018 11:43:22 -0800 (PST) X-Google-Smtp-Source: AH8x226OtBDB4auWEjqKA54TdrnMIvPI6QrVUHcFTmVz6NLcxlAmsbIETJXlspbbv/AdLpep4Ym/ X-Received: by 2002:a17:902:6b48:: with SMTP id g8-v6mr2681523plt.151.1519415002443; Fri, 23 Feb 2018 11:43:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415002; cv=none; d=google.com; s=arc-20160816; b=WNSN5+LHVabjKpuqFjkJfMN3fUtgw7J9ppFgOshVOVMp1g7JaxVR+dD0bIOXdewtXy oqn/IUWxQQeXbDbl7pDPol7B7eagOgaCT+aABjkuHY6LrJCqmChGSaVdXRyOJO4AuaJQ Fy5NGiTG4RCJzXPzf7CZ5fwjH/Eu4BKB8K7Y6Btq1QrLDmn1fNbtcS6TGlJu+aXi5OJm nFOX6fbkVJ0kc691YnyRBY3QpcWn8CrFKWuiWJl0fRrlFpRBm18tkMqGbjcUkXkJLmlN GgWdAp3JPZ1qkxB+91q6cs+nxW0orxSpBHb/IQhy0J1swthcEKRjo/wL0HH2LxkAGA+Q 6t9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=R3usJtKKmHLikk168/9FOiTbZeXdKPWWulxuh5uK6Fs=; b=pi0LJhRvdS1EJMbgc+TBre6zjs/mttWPF1b2guiw4CRMlZUgLn4YQEf8ciOWfdtw/6 bkDZwwPaJbXnHnOkFUL5YknvSBGXo2DnfSz8Qp2hYphjpMHSO6Xblef+xLtvcuzzJ7Qa yk1EG0wIkW8BIGHM1duRFBrQGJCADqVov2vSuzTjF7QihNtH0fJYnlibYrm+7ee7aRrt Q/1ZaAEQKKne416f6217A3CnG/TFMcj35Cebo4lz+jC7yKwIBt+6EKnLQcG0kah9nD+7 v+z12W5LRpkSnfj7s9YkljG8iy5mJTM0hCOCBgjwxlEPq2Vc5nh/oRGBaei8p7Idr490 TnWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si2228985pfh.78.2018.02.23.11.43.08; Fri, 23 Feb 2018 11:43:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934404AbeBWSsb (ORCPT + 99 others); Fri, 23 Feb 2018 13:48:31 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:44938 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934335AbeBWSs2 (ORCPT ); Fri, 23 Feb 2018 13:48:28 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C564FFDC; Fri, 23 Feb 2018 18:48:27 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Arnd Bergmann Subject: [PATCH 4.9 137/145] spi: bcm-qspi: shut up warning about cfi header inclusion Date: Fri, 23 Feb 2018 19:27:23 +0100 Message-Id: <20180223170742.426320243@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann When CONFIG_MTD_CFI is disabled, we get a warning for this spi driver: include/linux/mtd/cfi.h:76:2: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Werror=cpp] The problem here is a layering violation that was fixed in mainline kernels with a larger rework in commit 054e532f8f90 ("spi: bcm-qspi: Remove hardcoded settings and spi-nor.h dependency"). We can't really backport that to stable kernels, so this just adds a Kconfig dependency to make it either build cleanly or force it to be disabled. Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -156,6 +156,7 @@ config SPI_BCM63XX_HSSPI config SPI_BCM_QSPI tristate "Broadcom BSPI and MSPI controller support" depends on ARCH_BRCMSTB || ARCH_BCM || ARCH_BCM_IPROC || COMPILE_TEST + depends on MTD_NORFLASH default ARCH_BCM_IPROC help Enables support for the Broadcom SPI flash and MSPI controller.