Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5873167rwb; Tue, 22 Nov 2022 06:06:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf6O9yo+lrUDYYVuYO5qxdpr7zu2UrgEqlQKTSefzK3IW6xBKg8y45ySvPWwinBZuatrvd84 X-Received: by 2002:a17:90a:d106:b0:213:1944:dde2 with SMTP id l6-20020a17090ad10600b002131944dde2mr25493462pju.193.1669126002123; Tue, 22 Nov 2022 06:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669126002; cv=none; d=google.com; s=arc-20160816; b=SMMWmIKG9oxcx+ChoUY2xpgWfDGtFQPVqAnPswAoedpMApWwbiLIepvbQM0PAwRdWF B9eR3X4CqLfSsV9+xkBxx53bnvGGcMCFzYNRuOV78KQPp4reaq/YJ+1vm1CWrsNpiuKX gd/pO7YHepfqF0HwdRpq+pEeOm2whdQQbdchYeHx6VzgxTqeOTbjAx4UG17c8Z1AYO7s 2b8ewMPDdxQ7wYdFQGwGRsv+DCAsfH0yuTWl9AONkRmG+tonKZscei2l3mIeI/jlnU9X CvFhowMPJKZABRYbZs0GOtXSwQwLKjHBdTM99gq9+PqRC6FX7TcOB2gIW8r8+RKUNiv7 hNYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=debR7Axr9vWzmGEzm6RKm0/7bq+bZwYlzS5EA+xN66M=; b=SX1Xvw7H/MYsY1PdysC78AqcfRCqdi2MWNxU4A4h0LmW1uiW8LkdQHJmCjdfXoKLZZ wH9iHIXlG2T0h+MIJntMR/PsjGVkPepauet7VD+k7TFwc4dkOq/ssfsR4rAP9EN5bKHG nifdwzVRICF/esXApvfZsYVz4PRgCKhAgucz+EgMDqzZihEOm+pzWYxdi4ppSiHs8p7w m9GtlAWHL+utaU6FyJZhM3UNsCvenkQCwIP922dwmemQxVTYiv/lK5T2SMGHDnX26NBb /s5ZMvgg6TcMg5EYmZTbMDBZvlYJ9VlJ2YE4WxyqFZZk4sX9/VVQMyIOXZTsYJOlIpQJ fGgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bUlu+Hyi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pt12-20020a17090b3d0c00b00213054baa79si2020929pjb.0.2022.11.22.06.06.27; Tue, 22 Nov 2022 06:06:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bUlu+Hyi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233153AbiKVNoU (ORCPT + 90 others); Tue, 22 Nov 2022 08:44:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233890AbiKVNoC (ORCPT ); Tue, 22 Nov 2022 08:44:02 -0500 Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52BD95ADC9; Tue, 22 Nov 2022 05:43:44 -0800 (PST) Received: from mail-oa1-f52.google.com (mail-oa1-f52.google.com [209.85.160.52]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 2AMDhMCE026379; Tue, 22 Nov 2022 22:43:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 2AMDhMCE026379 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1669124603; bh=debR7Axr9vWzmGEzm6RKm0/7bq+bZwYlzS5EA+xN66M=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bUlu+HyimqqSDVq6nFj7EWp9wBTWXMvIpMqWhrCkfImqMJrYebPtBAsgf4tiSkw01 tCiiME9ocpfXhjpEBfvpasdcSAiFWpUd7lwYqvvMup7m99UWhaGCeUoAs8TWcEmHqY nyNc+Zb6teUuODyeKKaoiwAsaWLS7Am0J9Ji1Eu85pobvmZTDDkNSWIU2JDgh7YV/x FDyehDM/vRREOG6/cwgWKgMZmZmzojhMnvkSM+/TDQeFw0wnDTsTPXbRer8BwNERO1 3cpSjyZ2N12Q6Q78367PCGoJv5m04QEtd1heocU4GaIbSFtyQsTVCx821nX6po1Yo+ z+Cw+PoxI/Nxw== X-Nifty-SrcIP: [209.85.160.52] Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-142306beb9aso17220389fac.11; Tue, 22 Nov 2022 05:43:22 -0800 (PST) X-Gm-Message-State: ANoB5pkRS85Nz0TMTtGHD6/nPn24lnKkKX0BYke5NWmiJS6CJ65UGs4+ mMts9+JNydsSGKCPT0TnRLmRwMydDLXI25Qv7C4= X-Received: by 2002:a05:6870:3b06:b0:13b:5d72:d2c6 with SMTP id gh6-20020a0568703b0600b0013b5d72d2c6mr1940035oab.287.1669124601696; Tue, 22 Nov 2022 05:43:21 -0800 (PST) MIME-Version: 1.0 References: <20221115110158.2207117-1-alexandre.belloni@bootlin.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 22 Nov 2022 22:42:45 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash To: Sean Christopherson Cc: alexandre.belloni@bootlin.com, Paolo Bonzini , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2022 at 4:31 AM Sean Christopherson wro= te: > > +Masahiro and build, as I don't think this should go through the KVM tree= (which > is also partly why no one has responded). Presumably this was sent to the author and the commiter of 1aa0e8b144b6474c4914439d232d15bfe883636b If Paolo does not pick this up, I can. Now applied to linux-kbuild/fixes. Thanks. > On a related topic, should init/Kconfig be added to the KCONFIG MAINTAINE= RS entry? No, I do not think so. init/Kconfig contains a lot, which I am not responsible for. > Or is there a better owner for this? > > diff --git a/MAINTAINERS b/MAINTAINERS > index 046ff06ff97f..ffff36e16b88 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11040,6 +11040,7 @@ T: git git://git.kernel.org/pub/scm/linux/ke= rnel/git/masahiroy/linux-kbuild.git > F: Documentation/kbuild/kconfig* > F: scripts/Kconfig.include > F: scripts/kconfig/ > +F: init/Kconfig > > KCOV > R: Dmitry Vyukov > > On Tue, Nov 15, 2022, alexandre.belloni@bootlin.com wrote: > > From: Alexandre Belloni > > > > When using dash as /bin/sh, the CC_HAS_ASM_GOTO_TIED_OUTPUT test fails > > with a syntax error which is not the one we are looking for: > > > > : In function =E2=80=98foo=E2=80=99: > > :1:29: warning: missing terminating " character > > :1:29: error: missing terminating " character > > :2:5: error: expected =E2=80=98:=E2=80=99 before =E2=80=98+=E2= =80=99 token > > :2:7: warning: missing terminating " character > > :2:7: error: missing terminating " character > > :2:5: error: expected declaration or statement at end of input > > > > Removing '\n' solves this. > > > > Fixes: 1aa0e8b144b6 ("Kconfig: Add option for asm goto w/ tied outputs = to workaround clang-13 bug") > > Signed-off-by: Alexandre Belloni > > --- > > init/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/init/Kconfig b/init/Kconfig > > index 694f7c160c9c..13e93bcbc807 100644 > > --- a/init/Kconfig > > +++ b/init/Kconfig > > @@ -87,7 +87,7 @@ config CC_HAS_ASM_GOTO_OUTPUT > > config CC_HAS_ASM_GOTO_TIED_OUTPUT > > depends on CC_HAS_ASM_GOTO_OUTPUT > > # Detect buggy gcc and clang, fixed in gcc-11 clang-14. > > - def_bool $(success,echo 'int foo(int *x) { asm goto (".long (%l[b= ar]) - .\n": "+m"(*x) ::: bar); return *x; bar: return 0; }' | $CC -x c - -= c -o /dev/null) > > + def_bool $(success,echo 'int foo(int *x) { asm goto (".long (%l[b= ar]) - .": "+m"(*x) ::: bar); return *x; bar: return 0; }' | $CC -x c - -c = -o /dev/null) > > Tested a variety of compiler versions via godbolt, and the results are th= e same > for all cases, so with the caveat that I am far from a shell expert: > > Reviewed-by: Sean Christopherson --=20 Best Regards Masahiro Yamada