Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754784AbbK0Oas (ORCPT ); Fri, 27 Nov 2015 09:30:48 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:62798 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754013AbbK0Oar (ORCPT ); Fri, 27 Nov 2015 09:30:47 -0500 From: Arnd Bergmann To: Michal Marek Cc: linux-kbuild@vger.kernel.org, =?ISO-8859-1?Q?J=F6rn?= Engel , Prasad Joshi , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] logfs: clarify MTD dependency Date: Fri, 27 Nov 2015 15:30:12 +0100 Message-ID: <3269089.8XYbbcUOLH@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151127141406.GA29886@sepie.suse.cz> References: <9365895.IkncCfXjo6@wuerfel> <20151127141406.GA29886@sepie.suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:RKFdxTqSl9O2IuwBFMy3tTQajNBL/xN5sx/bi6cgL4BwMJstajG IIkxQ2ssIxtP51rMR4tBIv7XvePDWsgX9mrL+1Xb+d94WNQFJhqJlWRqWTIO9NkTUaVZz9I bKC3LqONK/wJS6SIk9Xht+rfqhCEFdNt/7wrqPxU4177BPgsLt8J2V+BYK2JR+580wnFXv6 W8SuGoEBF7QuQK7wpAVPA== X-UI-Out-Filterresults: notjunk:1;V01:K0:m27+6Pi8bGU=:4DdFkUnvxxRMfLpfEr7mTk oE8PY/XhJMCcvphgWPdLFFvxWpkLoAcduTQlsdvlHHCQClGyHZq2y3i5M3hvO7m/WP33bc4wX RJvXrMcS4t9o0SC+qek4kMXCe9AP8Blt+FafKjsz+acnGZwuZ+fJa2Z/M1k/j79NasXzLAj91 R511X9VgFULARtwPDfcdrhpqS1hLhvE34CKGBK6uVKC1p96QYtJLTko2qFKv5Dq+QgW5tfOoe AiFp44Xt469n7Ac186jSkMN4uM8BgYDY+82uh2utDEo+YCkrfe6fLh3rXkvlbnIDwBDLOXzJZ V7b23WSegrw/xUpxkrq9/zb7ENk9JRjY5LqrScFeJrM84Wu65vU2hs8zfnwSwHfX0TrHOt0lV 0G7TUV5/AJRhpM+6lzIMnhbJPsl5ywEQ9DvXkrUE+trMne4wcXCbCV5tDPtmxM8+FkpfYlanL ZuJDZauASPqaupo6t33NGWh65L/PEtUP1bx4IviY57OVeoztcQnoTxNWpkwq2eIaa8zoHJQG8 urVw+qTiNzIfwarKm1D4GfrJbG+1mdCsYkNDfwiuTv0NvZQWn6oG38TWRJ138Q9HQFil8chbS /jVpStQnVOzqdzW/kr99BgoZ9YNIjTWUqOM7TkqXC8nlSGwCnrv/cIsJlpKgUYOnr+NoKX03b YShYMA+IMVRvWApzAKQ1h9XUfs/N/ds3Exh2qLkcqkKWvKVQYQxrtqIuoy47iD1F57qbS+8n3 18NhL3H9Tzcv+Ija Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1297 Lines: 34 On Friday 27 November 2015 15:14:06 Michal Marek wrote: > > Hi Arnd, > > I hit this as well and was about to submit a slightly different fix. Can > you try the logfs portion of the below patch? Proper changelog is to be > done, but the gist of the patch is that IS_REACHABLE(CONFIG_FOO) > evaluates to 1 if CONFIG_FOO=y or we are building a module and > CONFIG_FOO=m. > I thought about doing it that way, and I'm sure that also worked. The possible behaviors are basically: a) before your original patch, building logfs with CONFIG_MTD=m would silently leave out MTD support, which was rather confusing. b) with my patch, it becomes impossible to have logfs as the built-in root file system on a block device while also using CONFIG_MTD=m, and that may be slightly annoying c) your patch restores a), but makes it work in the case where both logfs and mtd are loadable modules, which is an improvement but may still confuse users. My preference is still version b) as I sent, but I don't really mind your version either. 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/