Received: by 10.213.65.68 with SMTP id h4csp315798imn; Fri, 6 Apr 2018 00:11:39 -0700 (PDT) X-Google-Smtp-Source: AIpwx49voBXg/WVX8Y8iILV97cGtdmsZumNgfpeecS3EWxEIkgta9Guovw4SO30XEFFPhKTH6CFa X-Received: by 10.99.156.17 with SMTP id f17mr16928907pge.102.1522998699446; Fri, 06 Apr 2018 00:11:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522998699; cv=none; d=google.com; s=arc-20160816; b=vPg5nSeB9OCQ5CcI2M9y7/SiCoDZPIe1i8txkq+6szM/to1r4VfXbnpATU9rISYHf+ DV6bsrrtXnSXxgYP5LK7fVxj/tLgMnBzjOJVGI06OquvPmv9lxAL1HczFlBsw2kVSBWa 4cgvYgnuTZinEF3L8PC7P4zgIUGi9R++L6+imWUExHIe7ZifGOf1GEJ3jLFdQnqSJudn RQSTXDTA5XkwAp7kNvLAhuqranrl9fPhwq2HNih4TLLRVkd4rrjtvYiY5+kmfrEW061l 9R+MzQzrYmbsNNRZJmvDOSg92KIkyklLuL+Bb/lFuE/Brb/4wHzr/rZGD7C/5tzRBjec iEDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=9bSI/1AxTM/TR24WTCFgf0DzYwXhjX5rbQO7RFfNfA4=; b=HmeivNVZuWH6t0ATGD4tjtaqJIbTEtckp9QY7UV0N/ZP32Rshx8Kh/Le4x3mTU9kEd DeQ0uWhJgrU0KjEZYhF2eVaeLEX0RUKJ1TxqZ0EkHmLYCN5x913aUkjAxVsyyCVqXjrH Cv4xOCzHYihG7i+89LkUFf7Zymcueck7Nmt0QgdKN6FssVpcIrWlTROiTvSwsacU70Nl j5C6IEoE4k2tfbKSWI+w2oz8Qo8tq1a+EOS7DVL6lAyekApsx2gSJNK4Hcyc60gyLiMY nxlzz2Bm4h1Y8sOfvZUaU6/GwWpwxaRCIImOb8saoinLZtwoWFDnkqcg4nkSfMy+o8a9 QHQQ== 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 x32-v6si7823346pld.591.2018.04.06.00.11.25; Fri, 06 Apr 2018 00:11:39 -0700 (PDT) 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 S1751871AbeDFHJk (ORCPT + 99 others); Fri, 6 Apr 2018 03:09:40 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52494 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbeDFHJj (ORCPT ); Fri, 6 Apr 2018 03:09:39 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9BDB4CBC; Fri, 6 Apr 2018 07:09:38 +0000 (UTC) Date: Fri, 6 Apr 2018 09:09:38 +0200 From: "gregkh@linuxfoundation.org" To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Arnd Bergmann , Kamal Dasu Subject: Re: [4.9, 137/145] spi: bcm-qspi: shut up warning about cfi header inclusion Message-ID: <20180406070938.GE8416@kroah.com> References: <20180223170742.426320243@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 03, 2018 at 10:46:07AM -0700, Florian Fainelli wrote: > On 02/23/2018 10:27 AM, gregkh@linuxfoundation.org wrote: > > 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. > > Sorry for noticing so late, but this appears to be bogus, there is no > MTD_NORFLASH symbol being defined in 4.9, in fact I can't find this > Kconfig symbol in any kernel version, so this effectively results in the > driver no longer being selectable, so this sure does silence the warning. > > Arnd, should we just send reverts of this patch for the affected kernel > or should we be defining MTD_NORFLASH somehow? Am I missing something here? I'm going to revert this patch for now, thanks. greg k-h