Received: by 10.213.65.68 with SMTP id h4csp789239imn; Fri, 6 Apr 2018 08:58:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48gDAwTGX1cGqJ3gAnY8pwZtyvPZ0vQzoBsXOR+ATl8OIIjErHVwxCbXS4ZL4CKd8PIfTX3 X-Received: by 2002:a17:902:720a:: with SMTP id ba10-v6mr28052223plb.294.1523030289692; Fri, 06 Apr 2018 08:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523030289; cv=none; d=google.com; s=arc-20160816; b=E8cLLoA0cITVa4hjim/j3asIFiJmNEUuN0SQ2rSzWfmFBVZL0ELmMlpEsEHPme7PoC 071wYXtBt8GF88aOmy7mP+xJZ+imyJ1GErTYr4+bOspd3wjTJ21QQIkf+6uDa76M03VQ UCizVDrTUbiG1S+yhF4gazllyVx+76w4YC9Lf+LT6UPbqANOL+wgom+QUrIXAjCWBTkT NI73G/ntLe1b6gkTj8EfopZCqJqLsvY+QFVRDrJ/iK/4stvpDRFflMTOkjlzj3dL81L6 kmu92TNWpWQCujZ54Mtyh4X3w4+ltnfS1VvArViAqNn+qXDLAC55RzqphtnQNri2Qfec ruXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=knN048XaRrCQh+EkY0/eo1/Pq0FzvPkYAd2hyBAEYwo=; b=O3S78L7ACfioJUzagyyVAASJi7tgQxSeiCebKTuPAx6tj/rUQSLD65geCWSst5WsSF mMoLCIba+KRmb2tMJC/FzVt+aWcxyvUbj48doc8g8t4x4ubE8h63ow2YL05krlNStn1I hHRfUx4UvySF1j1Yf0fznr0wcvne72zT1ZDLlXHELbIdbkNnXgpupj1C2yWzwyWwOkG9 u3AarkFRy+LGZDfGs49/X9EgM0XPD7CuDDNzQoNnp/bNA2GmvOEimk+D84+UQVTu6RB4 z9oJwIj/F7OdARnc7TDXd5Scae6R+vlzBQoCG3LaQJjTT1ubJSfhpkaIXb6L9SGMSCOD /2fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O/NTcbW2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si7911529pfh.11.2018.04.06.08.57.55; Fri, 06 Apr 2018 08:58:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O/NTcbW2; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752365AbeDFPzJ (ORCPT + 99 others); Fri, 6 Apr 2018 11:55:09 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34980 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751329AbeDFPzH (ORCPT ); Fri, 6 Apr 2018 11:55:07 -0400 Received: by mail-qt0-f193.google.com with SMTP id s2so1630357qti.2; Fri, 06 Apr 2018 08:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=knN048XaRrCQh+EkY0/eo1/Pq0FzvPkYAd2hyBAEYwo=; b=O/NTcbW2EGbR2igwe8VqIcst77iv7zE9tlcraS/2Rs0He+I7AcPPiwAy9tFRO2SOtH 5AXZmJfmpaERbqC9usbPYg9UiXxdwAPv23NUxstRJPtOhzg/J8a64wiWTWQNm1kLroz9 lbuVrxL9bnTNUNjHxpE+xTNjbFlAUfiMSiuqkaT95c4PhTZrgWakDIxZ9rr80l6JsqRO Yn5i4UMI+wI9ervjn3sYcnBtMWGfdEYjiyU79h+0in2iOBBK/IABnWuWiRFili961dqD SLtMWsbRt7idItaUskWMz71XjoUguWEp8+/PXwBdP3A7NVAgv5iJ3CQroEdHxRNCvbOV 449g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=knN048XaRrCQh+EkY0/eo1/Pq0FzvPkYAd2hyBAEYwo=; b=tdcAoEcmG9kNj0eyCUlSL+oewufyj8xVSj2kfx5ay2hM0gk5TFJP4Z7KsDAihgXhin teKkYhdL4a3YB9+ZPKF9v09GO4FJPAXMfk2Ie3EFFlEddCf/cTkf/+uzZMVQ4kQU+PWq NfyXN/vCh99t0KLGYLwUQq/F7QkKciT3ayH1jIbvYWSYk0CYPzmYPvgiU3+1DLeXLp/4 CM2jInpEnEVPTz3VqjgKeEjbbvhUB93nD0h5GykuZBzOdmWH4NSfUsJ+3YVK7n4NBK/1 OpAaojUKwisI8FMj7AWyDw4zsOwAgmOzwdo8cfAIam2HkMMUhnz+9+Gfr3/yQ7UPx9ra zVBA== X-Gm-Message-State: ALQs6tCUkMCB85vHfUylVBbp9weF7KT1h9OY1z6BFy3SaC2FGa+g7llo FSU83Qa4xqT2bpnmWr8hA+k= X-Received: by 10.200.43.217 with SMTP id n25mr38354640qtn.20.1523030106705; Fri, 06 Apr 2018 08:55:06 -0700 (PDT) Received: from [10.10.115.25] ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id f14sm8789825qte.70.2018.04.06.08.55.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Apr 2018 08:55:05 -0700 (PDT) Subject: Re: [4.9, 137/145] spi: bcm-qspi: shut up warning about cfi header inclusion To: Arnd Bergmann , "gregkh@linuxfoundation.org" Cc: Linux Kernel Mailing List , "# 3.4.x" , Kamal Dasu References: <20180223170742.426320243@linuxfoundation.org> <20180406070938.GE8416@kroah.com> From: Florian Fainelli Message-ID: <21fcc6ff-d3f8-a863-224c-a31746c2db0c@gmail.com> Date: Fri, 6 Apr 2018 08:55:02 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/06/2018 12:22 AM, Arnd Bergmann wrote: > On Fri, Apr 6, 2018 at 9:09 AM, gregkh@linuxfoundation.org > wrote: >> 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. > > Yes, please do. Sorry for missing Florian's bug report. I looked at it again > and found that it was never intended for backports to 4.9, as the regression > addressed by the patch was originally merged into 4.14-rc1. No worries, thanks both! -- Florian