Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754328Ab0KZNdk (ORCPT ); Fri, 26 Nov 2010 08:33:40 -0500 Received: from cantor2.suse.de ([195.135.220.15]:42944 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752354Ab0KZNdj (ORCPT ); Fri, 26 Nov 2010 08:33:39 -0500 Message-ID: <4CEFB731.4050307@suse.cz> Date: Fri, 26 Nov 2010 14:33:37 +0100 From: Michal Marek User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101026 SUSE/3.1.6 Thunderbird/3.1.6 MIME-Version: 1.0 To: Catalin Marinas Cc: Arnaud Lacombe , Stephen Rothwell , randy.dunlap@oracle.com, linux-kbuild@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, xiyou.wangcong@gmail.com, Mauro Carvalho Chehab Subject: Re: [PATCH] Revert "kconfig: Temporarily disable dependency warnings" References: <20101011145930.11fe570c.randy.dunlap@oracle.com> <1286889586-13483-1-git-send-email-mmarek@suse.cz> <20101029113731.5c7c54b9.sfr@canb.auug.org.au> <20101122114801.2eee4c4d.sfr@canb.auug.org.au> <20101122135715.121b5eb7.sfr@canb.auug.org.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1204 Lines: 29 On 26.11.2010 13:33, Catalin Marinas wrote: > On 25 November 2010 18:09, Arnaud Lacombe wrote: >> On Thu, Nov 25, 2010 at 12:43 PM, Catalin Marinas >> wrote: >>> Now, commenting on your patches, you added a new statement, 'visible >>> if...' for menus. Can we not change it to something like: >>> >>> -menu "I2C Algorithms" >>> - depends on !I2C_HELPER_AUTO >>> +menu "I2C Algorithms" if !I2C_HELPER_AUTO >>> >> no because if_expr are translated internally in term of dependency, >> which we don't want. > > That's correct but I was wondering whether we could change this kind > of 'if' to a visibility attribute or a weaker dependency and avoid > 'select' warnings. This way we wouldn't introduce new keywords to the > kconfig language. I quite like the "visible if" notation because it makes it explicit that it only affects the display of the menu and does not add any dependency to the data. Michal -- 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/