Received: by 10.213.65.68 with SMTP id h4csp3797524imn; Tue, 3 Apr 2018 10:47:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+fn/lLgBMxvL9u207azpxHM98U8UGXNvB3UoB2kthX9EpLH2tl3E+gBWTLwzfCPo0DEDZh X-Received: by 10.99.103.71 with SMTP id b68mr5193130pgc.60.1522777671539; Tue, 03 Apr 2018 10:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522777671; cv=none; d=google.com; s=arc-20160816; b=IrjyQP3g795IDA8xOwpA6/i+ysRIWHSBEWTJ7Iq88mw8GYOVCbcSfQHIqPfsHmALfQ Q537N1AzK6S6UnAC7sec+g3XrXU6uJJ7Q2MtcXIg11vg8TiU6xAGxm4umgFenohzHn5L YgIMEuQpei2zWic233JjheruqGO7Wtjg4aASaRGCr/F+Ea7hrLi4k2kX0KWGKv5ozdmo 0KzVxylYOSrPP48b86cdCF0yIj3FN5PW/9FSQ28Bf7Y2Skqp30bh0+cS7sWEncIqCc1C 0Q2vjBQVHsQSjzGSmsiTTQhF26aXPx36ilJ9p/XYKjEv0vmlyLUpbrgxTym5OZvOfHiR vw5Q== 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:autocrypt:openpgp:from:references:to:subject :dkim-signature:arc-authentication-results; bh=y5oktsl0clUIZrwvazB9NTiMiIhSTLncaKD2xG6dqmg=; b=TqQ3y86qXWojcOrFow9mkjmK2f1rTa+NNCtNd7bjhaNwxg6nbT0oW/9DtWGMKMarsI n0p85wXsSM23UK8MolrYvOHeCoUzIPIctHQ7YaUHp/Fdbb8Wuxew+vN4ga9PHdbJLhk7 sByFAVPBPwVQYSn+knsJxQzt7Nwf23+tZHOQ2FIqkYgNtChf79WUSZjpGk4galjaR8mB sYV/rPrbAjrh15pma4qA9RKjUNtMS2BRXY53caydEMdvspRSNR9KwzVjl8oeF39IrwHw qMws+ToZchoalr+u3rTE2PAGDpC1tTdK1BIELIuju9Bghlx5s3NamNn61h1UDXS2IR53 KHmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TOHIsTZZ; 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 f5-v6si853842plr.243.2018.04.03.10.47.37; Tue, 03 Apr 2018 10:47:51 -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=TOHIsTZZ; 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 S1752515AbeDCRqY (ORCPT + 99 others); Tue, 3 Apr 2018 13:46:24 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:43961 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751588AbeDCRqU (ORCPT ); Tue, 3 Apr 2018 13:46:20 -0400 Received: by mail-qt0-f194.google.com with SMTP id s48so20103681qtb.10; Tue, 03 Apr 2018 10:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=y5oktsl0clUIZrwvazB9NTiMiIhSTLncaKD2xG6dqmg=; b=TOHIsTZZ4Jl8hh28Of9qHh5bU/+BJeQYzCqgpYNMCSv1uiM2Opa77QoMSVMaV53XFx sm5tzPwvKqomB+Fstrl6ZkLYwzOcejZ4M9vZwn3tM/cG7nw+q22zON/y1VYDc1hIHEck TF1N5uo5j8oUWReuTZ1k9SSuE9++V4HadRKnLA/BOJvgxpWLBXgxcixkbM+QRibyszdf SthqNdYL9kP6c/i47tqlO57p9Y2M3ffRgorWS5CRMd0PSzKXQ7bGFniV0l8ZhxNzYInp YVl3lXK/g7WqHeqI64WHF2YpZ/vyhkMmywLutttdOiIZSt1aflP58fFDo43uJf/j7OTs 6eGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=y5oktsl0clUIZrwvazB9NTiMiIhSTLncaKD2xG6dqmg=; b=nIGOk3rjAy3OuQyvcKw5TzMLc9atYFTbJ76O29Sazt99gQ8sJc76GvTF+TOixsP8aG uH5+BRXSzACgROSlun/vlL6OKx2gkb7H/nrQcKcu+qAgguDxclQlcdPe4WsyPyUP+T0h x2smDyYqb/Fc/CjK9xjN+79ToFPKAacMlV5uveS3e9cTKTQapfVqBfL8Tk3DYXO+8jYS GfQygHGF79h8x6qXb4mSq4IwXVF0B7oaMl8mfcIEcfCgIcXRA25Fotnyd3dlMoaG3q93 aqyUWFTu7cyVTvhVJZUwD7ow1Lj6TwSVn3bwcA4ifJr71YhOAaU0NHfb7uyTLPggLlmh 5NhQ== X-Gm-Message-State: ALQs6tB5yfjHulI/94qnJFRPQEv3d6XZzWUdLJcEZz+aERAQmP+umhFG AqTUYEXgMGjUcdHaxqN4njM= X-Received: by 10.200.2.11 with SMTP id k11mr21081627qtg.292.1522777579078; Tue, 03 Apr 2018 10:46:19 -0700 (PDT) Received: from [10.69.41.93] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id s67sm2664083qki.58.2018.04.03.10.46.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 10:46:18 -0700 (PDT) Subject: Re: [4.9, 137/145] spi: bcm-qspi: shut up warning about cfi header inclusion To: "gregkh@linuxfoundation.org" , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Arnd Bergmann , Kamal Dasu References: <20180223170742.426320243@linuxfoundation.org> From: Florian Fainelli Openpgp: preference=signencrypt Autocrypt: addr=f.fainelli@gmail.com; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4ZvIvCEqSmEukfivk+DlIgVoOAJbh qIWgvr3SIEuR6ayY3f5j0f2ejUMYlYYnKdiHXFlF9uXm1ELrb0YX4GMHz80nRmxvcmlhbiBG YWluZWxsaSA8Zi5mYWluZWxsaUBnbWFpbC5jb20+wmYEExECACYCGyMGCwkIBwMCBBUCCAME FgIDAQIeAQIXgAUCVF/S8QUJHlwd3wAKCRBhV5kVtWN2DvCVAJ4u4/bPF4P3jxb4qEY8I2gS 6hG0gACffNWlqJ2T4wSSn+3o7CCZNd7SLSDOw00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fkJwX2Y53ufq8Np3e1542lh3/mpiGSilCsaTahEGrHK+lIusl6mz Joil+u3k01ofvJMK0ZdzGUZ/aPMZ16LofjFA+MNxWrZFrkYmiGdv+LG45zSlZyIvzSiG2lKy kuVag+IijCIom78P9jRtB1q1Q5lwZp2TLAJlz92DmFwBg1hyFzwDADjZ2nrDxKUiybXIgZp9 aU2d++ptEGCVJOfEW4qpWCCLPbOT7XBr+g/4H3qWbs3j/cDDq7LuVYIe+wchy/iXEJaQVeTC y5arMQorqTFWlEOgRA8OP47L9knl9i4xuR0euV6DChDrguup2aJVU8JPBBgRAgAPAhsMBQJU X9LxBQkeXB3fAAoJEGFXmRW1Y3YOj4UAn3nrFLPZekMeqX5aD/aq/dsbXSfyAKC45Go0YyxV HGuUuzv+GKZ6nsysJw== Message-ID: Date: Tue, 3 Apr 2018 10:46:07 -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: <20180223170742.426320243@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 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 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? > > 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. > -- Florian