Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4778364rwb; Mon, 21 Nov 2022 11:47:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gaaUoIUzXMTG7BSoPco+/MtwNQ6P43SHomLkXkdGwCtrksO2YPmDB0O185iD1FlHGAgS4 X-Received: by 2002:a17:906:ad9a:b0:7ad:8bc6:48e4 with SMTP id la26-20020a170906ad9a00b007ad8bc648e4mr3529677ejb.514.1669060031098; Mon, 21 Nov 2022 11:47:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669060031; cv=none; d=google.com; s=arc-20160816; b=QVB9ISDWqOJG33bTxkm7f6GaGHi12jy6FhkbsIlKf2w87/iYWvtnqQrpluhBe6Ke6Z iBQGMlVFzrW5uyeQ48gMK5RILvrD5sCnBUNbV32af90QsBJc6EmWWywD88ZCczZw10Qv Ct71niW0pao558wYTL4/KfBNhz0P3t9d0dSReRpk0xrRnyG+FHIMG8fvchQ5YMONNibR hDjcSIf8YzNkpBR0xhGYJshxa3pCZiQhoS/axNNJJyySiaoOA3Wa6WuGu/4n/0i+GukI 6mMozp4NDEbZemJ1320a5vIoLsXEByCBkTgbuf7ym1UkG2OgUUVfbLVkXrJuxPKsYWGm HDdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oC01w75+BC6zrMlCSKPUDMxphH7KPs1R9UnUFSUpeYw=; b=Ze3jvp9yWYhGhbrT7ovSrDNZAivsiOjkRgg/dCh3cbyuTy9+6a2/dMXI172G/3MCsz FBDAnwf9t1OpjTqvNONeTUn8YitEQ2T6CJiKwSdxTrVB+txt33ZOvIJoPqk0T7iE8rLE ZvbWIsgIP8JtvFeg2j1pCw+JOYG8jSvRa1kc+5cbYCXHVDlNLpmukTVLpi5E2PwmBokC 9c69QiJzB8654cg4FjPLQq5LacEJfwov5Y9bl3ZbmC6WDq1gacqmOp819DH0jQHyOH26 jEIw58vVi9/Iy82NfByBMFyqt93f/0HvVbqXdfibNLz9bFTrAFEu3gJ+3sokkIKWCg8r wmGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Pdw0XXEr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p33-20020a056402502100b0046830a9c984si10056678eda.476.2022.11.21.11.46.39; Mon, 21 Nov 2022 11:47:11 -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=@google.com header.s=20210112 header.b=Pdw0XXEr; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbiKUTbi (ORCPT + 91 others); Mon, 21 Nov 2022 14:31:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiKUTbf (ORCPT ); Mon, 21 Nov 2022 14:31:35 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF029BE26F for ; Mon, 21 Nov 2022 11:31:34 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id w4so2714129plp.1 for ; Mon, 21 Nov 2022 11:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=oC01w75+BC6zrMlCSKPUDMxphH7KPs1R9UnUFSUpeYw=; b=Pdw0XXErqS1PgwCmNkH9rspHwrdI1O3eFjB+pw+cMQEN4M6BZqrIk6ylnayBkObhMc Bh4+OvW5IAD5/EbeDiS7ZXAjAdKGFZYrqPwtT0es6AX4Cwy20ZK8hC7OdoJYbq7EVzhF LQtSVfpxif8InEPFGKS0/qDZm5gG0ynabeNAu/pbynkNW4pRgwMUd/T8JHMj99gnx9gA dfr/VbNPVD++y8ol0c4S/A7fW9Kz5tifVQi1+2GKWEx4s2XTLmP/K8+6RNxcmD6dM/cv Vqr3F3WaO5YOX1mnAMtsVKdO24VL46TnS+dHNccJ2VO37OlPSScI0mJpMmWv7B4GmtR8 o2eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oC01w75+BC6zrMlCSKPUDMxphH7KPs1R9UnUFSUpeYw=; b=qfZy8YDEePAbFngpDe+VOC/ykfdpp+91KUGCpu2/29Bp7PTCsBvkCimTfRm1qhM8td QvKivsAKUD+q+riCcyLsF9lL3RXZQ0oL2mLurYtE+ng9aIgXHW4U71cOL1jlTqPXKCYb 7nzcaLl0G3nU37hkR76tWcbKXG2i291S5t71MDUwv7ZYZqySX0xjiCw11+mMSyh8acni UwB2PUzhDxkZ8/vM+FobxRS95u3Z9LgjHwWH7AtEfcyw7nfhtvSRETIyDIIDFYF6UEfA 6EK9Q+z4j3BsLWHE0vPfscuUX4h0fFkXRV7H6ZxPOUtwQMTJJ4dZZFlMa/z6HEmr+e05 SvDA== X-Gm-Message-State: ANoB5pkWzT6MVCYgOaAJrim62CriDGXXFWLUSw2F8l5EYBOlArahfagr GlhDgQNhD6gEJWGseq/69EGv8g== X-Received: by 2002:a17:902:f391:b0:186:ac81:2aa9 with SMTP id f17-20020a170902f39100b00186ac812aa9mr611868ple.95.1669059094034; Mon, 21 Nov 2022 11:31:34 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id a2-20020a17090a740200b002135e8074b1sm10623507pjg.55.2022.11.21.11.31.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Nov 2022 11:31:33 -0800 (PST) Date: Mon, 21 Nov 2022 19:31:30 +0000 From: Sean Christopherson To: alexandre.belloni@bootlin.com Cc: Paolo Bonzini , Nick Desaulniers , linux-kernel@vger.kernel.org, Masahiro Yamada , linux-kbuild@vger.kernel.org Subject: Re: [PATCH v2] init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash Message-ID: References: <20221115110158.2207117-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221115110158.2207117-1-alexandre.belloni@bootlin.com> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 +Masahiro and build, as I don't think this should go through the KVM tree (which is also partly why no one has responded). On a related topic, should init/Kconfig be added to the KCONFIG MAINTAINERS entry? 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/kernel/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 ‘foo’: > :1:29: warning: missing terminating " character > :1:29: error: missing terminating " character > :2:5: error: expected ‘:’ before ‘+’ 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[bar]) - .\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[bar]) - .": "+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 the same for all cases, so with the caveat that I am far from a shell expert: Reviewed-by: Sean Christopherson