Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753266AbbGBUGh (ORCPT ); Thu, 2 Jul 2015 16:06:37 -0400 Received: from cantor2.suse.de ([195.135.220.15]:36659 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753674AbbGBUG3 (ORCPT ); Thu, 2 Jul 2015 16:06:29 -0400 Message-ID: <559599C2.6090505@suse.cz> Date: Thu, 02 Jul 2015 22:06:26 +0200 From: Michal Marek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Martin Walch CC: Jan Beulich , pebolle@tiscali.nl, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] kconfig: allow use of relations other than (in)equality References: <557EDA310200007800084C43@mail.emea.novell.com> <6743206.QpmKW5snMP@tacticalops> In-Reply-To: <6743206.QpmKW5snMP@tacticalops> 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: 1236 Lines: 27 Dne 2.7.2015 v 15:04 Martin Walch napsal(a): > Hi, > >> 1: allow use of relations other than (in)equality > > I know it is a bit late for objections. Still, I want to point out that > this looks to me like a major extension to the language. > > Kconfig is a configuration language, and as far as I can tell it is > (intentionally) not Turing complete to keep the configuration simple and > controllable. All relations that have been defined so far check for equality > (or for being not equal). The new relations "<=", ">=", "<", and ">" add more > expressiveness, potentially making the language actually more complex and > reasoning harder. The patch just adds four new binary operations of the same order as the existing == and !=, with a the semantics that everybody expects. And the grammar for kconfig expressions is so simplistic that you cannot even write things like (A && B) == (C && D). So turing completeness is not a topic here, neither before nor after this patch. 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/