From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751121AbeEUGQU (ORCPT ); Mon, 21 May 2018 02:16:20 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:38021 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751069AbeEUGQR (ORCPT ); Mon, 21 May 2018 02:16:17 -0400 Date: Mon, 21 May 2018 08:16:13 +0200 From: Sam Ravnborg To: Masahiro Yamada Cc: Linux Kbuild mailing list , Linus Torvalds , Ulf Magnusson , "Luis R . Rodriguez" , Linux Kernel Mailing List , Nicholas Piggin , Kees Cook , Emese Revfy , X86 ML Subject: Re: [PATCH v4 07/31] kconfig: add built-in function support Message-ID: <20180521061613.GA21232@ravnborg.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=ddpE2eP9Sid01c7MzoqXPA==:117 a=ddpE2eP9Sid01c7MzoqXPA==:17 a=kj9zAlcOel0A:10 a=VwQbUJbxAAAA:8 a=VQqBGyW1TzL2JzSGRtYA:9 a=CjuIK1q_8ugA:10 a=AjGcO6oz07-iQ99wixmX:22 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro > >> + char *(*func)(int argc, char *argv[], int old_argc, char *old_argv[]); > >> +}; > > If a typedef was provided for the function then ... > > > Yes, I can do this, > but I may rather consider to simplify the code. Simplify is better. > > 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. > > > I have been thinking of trimming the leading whitespaces. > (https://patchwork.kernel.org/patch/10405549/) > > This is trade-off vs "how to pass spaces as arguments?" Maybe allow strings to be passed enclosed in ""? Then it is simple to add whitespace. But the use of "" should be optional in all other cases. And the "" should be stripped. Sam