Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1121906imm; Mon, 21 May 2018 22:00:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZptG+8x3Z+CECBvjtduUmp+r0lCfaSL4dYXqJwtilviqWkmxR48IhR3u/bTAmGrPPNvraVO X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr22974598plb.153.1526965200478; Mon, 21 May 2018 22:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526965200; cv=none; d=google.com; s=arc-20160816; b=s/GIsYyoSkWMc3l26WXDCrO6NbfOyQol0C31R0GJEUzVU+nr09kfA+RtgNO1XbB4Pi hyg0klbquROtROQbTauiiMOK3iT1zcEYQHs3BGP/DlIni1GM8ERYsKIiP4MknETaEEQw NnwktKVObiY3ghJTSwcfqxuw0FwIAMyDSFsKwU6KnB7prxLAYYCwMArp9kZJIOF+1Bfx P+E7ShBX2DDQIz9VliIFcfvI+gUZPB3P3tdTWxIrt1YUZ49yDyzWcCU2q+LvNP9C5U7V osNyZO3XWlH2xtxqIFzNg+HvjrIwXPV9pzt8blqnIdS9pCOpEVZjJysvhSGPGQvkbgPW We8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=QBC6+8k0T/PjkyJzzL4Zax+moiH4VrQFzeRmPNeIM2A=; b=zFNZ20JBDJ0bxIe1kpBWMdBMP0vgwaJsa29GvZF04yONoV/zFDw7AgMCmqIa2MBkOl ycrtTgkJDtlINgoMp+H8VBGkgOMN84wOTYK6iN9eE3VMjDEuA6YU8w7EFWt0PM+vGIiI /zVOZAZzfJ40iDkdYts7m1PfunHyQOFCoK5OZFxhL/dcc6TvLzCUv6GI5hTDq/n9eoDX skq0H/yOjzshDGLzUGIGq9aFLzhhjoICNu82gvAzBS1FkEj1MYPE6o79ZbDwvYHvGziJ yq1a3D/ZnhpEpjmKBSLFqtM2itF/dItQmfaxgyBodDJro0qbHvPKU2ULHnM7ewJgFqnL nORQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TazTKJVf; 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 ay12-v6si15610964plb.139.2018.05.21.21.59.45; Mon, 21 May 2018 22:00:00 -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=TazTKJVf; 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 S1751350AbeEVE6g (ORCPT + 99 others); Tue, 22 May 2018 00:58:36 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:41222 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbeEVE6e (ORCPT ); Tue, 22 May 2018 00:58:34 -0400 Received: by mail-ot0-f196.google.com with SMTP id t1-v6so19466011oth.8; Mon, 21 May 2018 21:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QBC6+8k0T/PjkyJzzL4Zax+moiH4VrQFzeRmPNeIM2A=; b=TazTKJVfl/uP/0j7h9RyeSOYmI94RBYNxexqw6jFxkMaza9CFptVX9AF41XMBWRcQL ed84e8ksvyA1nqo3X4QT/SkZRYZxxbtqHbu34AUnsoq1gZupMY/e0g+x1Prkflj+BGLh 448eKLGtBtInCRSYSCobWsCYiWP3h5yts0VL3cJTBzoFKZbCoRVGcXQKLZpDiWpCbsyT Xp27LJdIcq93mZG/u2SSVBLmNw2lcYYaW+WFcOQGXlwFReQYAt3A1OAo9WJwp4hSVCgw 46USyVxFjlZtc0dnQHT3t8oZA4LVoLhqOYmVP5asOt5ulBTPQQbi87pjynuxafjjhsYN euHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QBC6+8k0T/PjkyJzzL4Zax+moiH4VrQFzeRmPNeIM2A=; b=TPmHZJ9CAz3dcpv1z1XgOsD12XkwUu7rFVNPc9c3OLzo2DxbCUhBMZ2KroA9LcE43U Q6qjdyS5vHfBgPgZJsl8BWApEQ+4P2JnPFC+I+Kk9Zah63HQYRwgiq2lmXQG/QpJd9Fs qoJjoeObPZXbj1+WOU1NN3MEB6Pj6HoSXTKl1sb9Sh32XQZEBQjqEa6RItFHmY9/AAWt XawSDgCaF4QSJnHPfFonIccZSzIw/vpoGIu/rs5KXrV6kX+7HKCVTBT1HwhyhdSU8LAd XNTwZWm2D4YHZRB3UikNsorFwXAHRB4T+ABsJzob6zwfhIUmZiib3s70a83rDICvzn6Y 59Mw== X-Gm-Message-State: ALKqPwc3VvSSj5q1ZS/wFi/iYkdEF1yR9hem9Vc5tLfT5fbICVM8uHZ7 GJzwIafWf4PGbecCx5aU1pcAEbaQq7D2JS6ZM2yNZA== X-Received: by 2002:a9d:5e0b:: with SMTP id d11-v6mr14260734oti.148.1526965113748; Mon, 21 May 2018 21:58:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:185:0:0:0:0:0 with HTTP; Mon, 21 May 2018 21:58:33 -0700 (PDT) In-Reply-To: References: <1526537830-22606-1-git-send-email-yamada.masahiro@socionext.com> <1526537830-22606-8-git-send-email-yamada.masahiro@socionext.com> <20180520145031.GB9826@ravnborg.org> From: Ulf Magnusson Date: Tue, 22 May 2018 06:58:33 +0200 Message-ID: Subject: Re: [PATCH v4 07/31] kconfig: add built-in function support To: Masahiro Yamada Cc: Sam Ravnborg , Linux Kbuild mailing list , Linus Torvalds , "Luis R . Rodriguez" , Linux Kernel Mailing List , Nicholas Piggin , Kees Cook , Emese Revfy , X86 ML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 6:50 AM, Ulf Magnusson wrote: > On Tue, May 22, 2018 at 5:11 AM, Masahiro Yamada > wrote: >> 2018-05-22 0:10 GMT+09:00 Ulf Magnusson : >>> On Mon, May 21, 2018 at 4:32 PM, Ulf Magnusson wrote: >>>> On Mon, May 21, 2018 at 4:23 PM, Ulf Magnusson wrote: >>>>> On Sun, May 20, 2018 at 4:50 PM, Sam Ravnborg wrote: >>>>>> Will the following be equal: >>>>>> >>>>>> $(foo,abc,$(x),$(y)) >>>>>> $(foo, abc, $(x), $(y)) >>>>>> >>>>>> make is rather annoying as space is significant, but there seems no good reason >>>>>> for kconfig to inheritate this. >>>>>> So unless there are good arguments consider alloing the spaces. >>>>>> If the current implmentation already supports optional spaces then I just missed >>>>>> it whie reviewing. >>>>>> >>>>>> Sam >>>>> >>>>> +1 from me. >>>>> >>>>> I also find the rules for whitespace in Make confusing, and always >>>>> have to look them up when doing trickier stuff. Maybe they're the >>>>> result of people not considering whitespace initially, and stuff >>>>> getting tacked on later. GNU Make adds some alternate syntaxes with >>>>> quotes. >>>>> >>>>> I was going to mention shell, but it looks like you already did. :) >>>>> >>>>> If we go with Make-like syntax, maybe we could at least have a variant >>>>> with fewer whitespace gotchas. >>>>> >>>>> Cheers, >>>>> Ulf >>>> >>>> Maybe it'd be a pain to implement, but something like $(foo $(x) "two >>>> words" "interpolated $(stuff)") seems pretty nice, with three >>>> arguments there. >>> >>> Guess that might interact poorly with $(shell foo "bar baz") though. >>> Kinda nice to have a syntax that doesn't overlap with shell when >>> building shell commands. >> >> >> Right. I can easily imagine >> that would end up with more gotchas due to quoting and escaping. > > Yeah, you're right. It's probably trying to fix something that isn't > broken. Make's syntax really isn't bad there, just slightly > non-obvious at first... > > Think it's fine now. Better to commit to the syntax than trying to be > "helpful" by adding a bunch of random exceptions too. That probably > gives a bigger mess in the end... > > Cheers, > Ulf I'm fine with the comma-after-function-name change though. That just makes it more consistent. Cheers, Ulf