Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp610299imw; Wed, 13 Jul 2022 05:00:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s3NPX5WUZEacE6+SCSFdy4wlTjf7ZskkdLzp+bJBt4mhLObj/kSFlSdSc9b37BD9eSrlDa X-Received: by 2002:a17:907:168a:b0:72b:e4d2:fecb with SMTP id hc10-20020a170907168a00b0072be4d2fecbmr1944295ejc.336.1657713620794; Wed, 13 Jul 2022 05:00:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657713620; cv=none; d=google.com; s=arc-20160816; b=c84B4IObltE+GUpTiADBEXSUWMo0fIEGmQ4Ydyv4/1v9iTOKKN+q5rjT9CVX7hMGdz VbBUIYGgd4YRJMVhVkYNZR7nNA1w7mmXKJZBsnYzu17mVa6anlCQQdIun1DftL6aDQP3 v5dMY9o9oYUpcnqo08g9Cg3UrM2H0HEAahgMD5pFyRkD78uph5s9EbhnCpq+Wr+UeDei h47Y0Dt6DDY21E5QX9BC0PFQoZLZ36S9atbPB6Cxd2LJNYBJJTBevySXuxtGb2Ekgxdc gX/QBe60XQdidh1/gJVHPyMqgv8JUgL+EW0AJB+3xDZEYKfpmb520JOsnmQNEZvybZ03 obJQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vOHzc0iNAJAyWdjUKS1wA/+wU9ZskbRu8pEYBEJ/SIw=; b=KdG9NZE8DVX5+Zlq0l8M9MokfI0CtD/fLm+ChiSOmC69YuL8yYrs6abyEEC108bESc MAEJqV9bSmunKb1KC3nN5/fphqihYpYa2xMTJJ/gV1fYYMaVb+lBPU2k2ygfpgAINOMT wsX0RG2SK+t4zH+8mfjQds8iNznvPNEcf0j5/lq8EbW6PFU4jpLtBi79BGQjTD/aZun+ /BZSY5lNMKs5psDbhN3fJsD5Hn+muQ8xPNKUt8CgJTRTiyrCs/GVGBITe/yRzn9aaP5S ACZS9UnzjfKM0JpYJGNvhYiIvy3+4Ky0J/Cb+Q8rYjxCWcu1TW+XHqckIaWFd5UbNVbb SR/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=SzcYxdnG; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a056402169700b0043abe5b3ca2si16610608edv.54.2022.07.13.04.59.55; Wed, 13 Jul 2022 05:00:20 -0700 (PDT) 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=@infradead.org header.s=desiato.20200630 header.b=SzcYxdnG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235872AbiGMLkM (ORCPT + 99 others); Wed, 13 Jul 2022 07:40:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbiGMLkL (ORCPT ); Wed, 13 Jul 2022 07:40:11 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97AFAF7894; Wed, 13 Jul 2022 04:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vOHzc0iNAJAyWdjUKS1wA/+wU9ZskbRu8pEYBEJ/SIw=; b=SzcYxdnGL7pR91/ks+09wj9cTy 1uKLqgNzuodQeTHkWqZ2sYqsTCYyU7HFzvbwdTmvA6xfCfbPypc+yqHI4M8hM1vFHj/aL0FQm4FfE xFlTlizvOXXa8/Rqe9I97iKEKTqGYuMYV/PblZuqeEJQ2th+d1NfOGBeY7h1D5pzXkZ8QT9/5KvE9 m0ROYzNoMm07LnOq980QooeQoyx9EXu6WIPggS2eOKvjmS02RXyWASx+b7tqpybQOY48axg5g4GUD vqfkHm42DjseEIcQ456aMWvF2G3BYK9TFrfN1T57DQAGHow8gD2zoTIHnXMK8IaBPL98szIStGOFI fisg2pAg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBaiK-003Xye-M8; Wed, 13 Jul 2022 11:39:32 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AEA17300238; Wed, 13 Jul 2022 13:39:31 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1FBF3201DA175; Wed, 13 Jul 2022 13:39:31 +0200 (CEST) Date: Wed, 13 Jul 2022 13:39:31 +0200 From: Peter Zijlstra To: Stephen Rothwell Cc: Miguel Ojeda , Adam Bratschi-Kaye , Alex Gaynor , Antonio Terceiro , Boqun Feng , Boris-Chengbiao Zhou , Borislav Petkov , Daniel Xu , Dariusz Sosnowski , David Gow , Douglas Su , Finn Behrens , Gary Guo , Linux Kernel Mailing List , Linux Next Mailing List , Michael Ellerman , Miguel Cano , Miguel Ojeda , Sven Van Asbroeck , Wedson Almeida Filho Subject: Re: linux-next: manual merge of the rust tree with Linus' tree Message-ID: References: <20220713203409.559c5464@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220713203409.559c5464@canb.auug.org.au> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Wed, Jul 13, 2022 at 08:34:09PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the rust tree got a conflict in: > > arch/x86/Makefile > > between commit: > > f43b9876e857 ("x86/retbleed: Add fine grained Kconfig knobs") > > from Linus' tree and commit: > > 0ea4b9a1bece ("Kbuild: add Rust support") > > from the rust tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > -- > Cheers, > Stephen Rothwell > > diff --cc arch/x86/Makefile > index 1f40dad30d50,5ac9b324751d..000000000000 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@@ -21,12 -21,8 +21,13 @@@ ifdef CONFIG_CC_IS_CLAN > RETPOLINE_CFLAGS := -mretpoline-external-thunk > RETPOLINE_VDSO_CFLAGS := -mretpoline > endif > + RETPOLINE_RUSTFLAGS := -Ctarget-feature=+retpoline-external-thunk > > +ifdef CONFIG_RETHUNK > +RETHUNK_CFLAGS := -mfunction-return=thunk-extern > +RETPOLINE_CFLAGS += $(RETHUNK_CFLAGS) > +endif Does Rust have the equivalent of -mfunction-return=thunk-extern ? Related, how does Rust deal with all the various CC_HAS_ Kconfig stuff? What if C has the relevant option but Rust does not; then we must not have the feature enabled or there will be a mis-match. Do we now have to litter everythign with RUSTC_HAS_ ?