Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754444AbbKWWNe (ORCPT ); Mon, 23 Nov 2015 17:13:34 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:49813 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbbKWWNc (ORCPT ); Mon, 23 Nov 2015 17:13:32 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Brian Norris , linux-mtd@lists.infradead.org, David Woodhouse , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: cfi: enforce valid geometry configuration Date: Mon, 23 Nov 2015 23:12:40 +0100 Message-ID: <4492128.vrqmf1niG3@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <3747078.dk5V5gxuXa@wuerfel> References: <3747078.dk5V5gxuXa@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:0JGfEHdKb4mPffKtswNHKwQJF3zZTlM6PHOLFmofwSJgzBzBeXE YTzO2F0CEdeaYRDy+Lztm5OtU4wob5r9dszUsIQcV7UzoAbn12PCxlChGOa72CbHT1BD9mY tfjicqQqranA9MhhCTX/kgTpbAdr4tOL6jr+KNhGab43b4joiBtf+FDjtb9kPM6lXrNjVLn tgwOdaZW8rCvm4jzkGHLg== X-UI-Out-Filterresults: notjunk:1;V01:K0:wEzEths2OIQ=:fCm8vM4LPj7mAObFGW8SBC Ual0fY9S/rjOdIfzrGrrFeZY8sySnGi31oX9mUF7koxCCwS8W4zQFnmmioEwZANjzovKi5EjK zg1DZ2Z7xRj35xqfnZNO1vButymtwMQFIy59CyB7GIkVszKQGO71f2pKH5MJpM3+9eUxdsb1/ 2ksywWVU4dxmZ7I0YcBuBIDKnbSO8WkxOQxFbQmpfMKuxVBL9ITh3Ap4s/QCzsiddQfeI124e 3Ogr8MzDvikPMyOiM//J9D8/R5UxXjxhdv9iEkmV5GcCuOYq1RYZD+X2juQ6jKr20XCE84vb4 djDw4lno5vCxXg+O6qT/Vlu/513UtkhPuIxMc9SBtFFKBkMC+QfMhS2XsqKoDpYnphRZJjoiI 57b3/RWsXTc0TrkTRHShmmh/ctf/vcCuPSa9bfM+tZgjnxORMGMjORyuMGhq/zlJE7I7Wx51S FRdfjP3bW21HBYuFRTPK7qmjmNVYUNDSYRLKpXBSI57Z5XPbLNGZCD/pmXAslrbtDdpvhmwe4 +PQ60jdNu9IOkVh9FAsce1nfrkS+GS7hnmcPyAVwBXsr51lxgBOOs4rWaK5qrXOHU4ZD8LVMC V56PFjpZ2C0gkqJLj37vJATa2920XuXeUjO2LD0mlPyzUEOwnC4RwP+OPh6qXN3HwqOpRq+TQ hCVbj5If9Egw7OHwTFURPEEiYEBPZCYR9UW09C0gmPvfSU1YeFU+DaWQVRRiJyPOCOzDNPGrV suR3Sxm+h34HW/+1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1119 Lines: 21 On Monday 23 November 2015 14:39:33 Arnd Bergmann wrote: > MTD allows compile-time configuration of the possible CFI geometry > settings that are allowed by the kernel, but that includes a couple of > invalid configurations, where no bank width or no interleave setting > is allowed. These are then caught with a compile-time warning: > > include/linux/mtd/cfi.h:76:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. > include/linux/mtd/map.h:145:2: warning: #warning "No CONFIG_MTD_MAP_BANK_WIDTH_xx selected. No NOR chip support can work" > I'm actually still getting the warnings for any file that includes while CONFIG_MTD is disabled. I have a fix now that I'm testing overnight and plan to post tomorrow, then we can decide whether it should be part of the same patch, or we should have two separate patches. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/