Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp440008rwb; Wed, 16 Nov 2022 02:59:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf42Eh1yeHEhQhGBaoyNdYEQiAbzdHCLIviGh4TSO42feYz6DNMgrOQb3VhCesdeF3hFWEwD X-Received: by 2002:a17:906:750:b0:78d:ad5d:75e with SMTP id z16-20020a170906075000b0078dad5d075emr17529809ejb.172.1668596386261; Wed, 16 Nov 2022 02:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668596386; cv=none; d=google.com; s=arc-20160816; b=JcqcKOl+Qz+wLx9+1PeplOnXfewPcY+0pbITkALleJcuqFZ7mLjT6uIUjAeGiBejCo mOU0zmLBRDOIZLtijj5n98klGc/CTsLrEf/0bUTUVizob2uV13jeIgAunioq0E/lYoWw WmDry/6MTonIRtrvGPOhEUOp4iOZAgDdVJBoiLFUkgftMrNpsyzWgTh4vq5hPguJRBGj R1Y+kB9zDimKB3yz3NmZE3t0rAa8hGOoXGXkYzhpFoJXLp6Bk8G51IHpLlGKAV6SyGYr EV8FqhgDD3M1aHr4ogfOxq72MrXWFHICIP0WqqAr6SNn+1uq19ScDu8nPLv8pW5E5Q0i wPkQ== 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=jsN0Nhr1vnvrb51t6eKNZY0+CFnpdn/XZ7+QR7DX9s8=; b=c6X42+HO/maEqgBAMjHPa9GrnV5RrvDwWZVzhLt0oTgkYXkHziuQL0eb/ulfJL9/iH W2wETxsddgiKAK34N2wNhKfnACfTdMRvONMB8BP9Y0labkDvmYCdboap+jEzT8cCsgLO m+QVIPtHndKFGitV9ab9+ySULnn5CHokArAgguOT8vXwTRtaA7RfBUMiOumFq6htm/JJ 6IQGPzOEOjcGxFRpt20hoAMu9RmtZxqbnB3GfdsCtXmGtY8PlikudndqxBiqDakkBItO RCewC5IyusqEGuPno8mnvVxIZSwTD0RUR16vyRqDnMQimtciNbXbLVAGcoIJG8H1OMPA tc3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=EBCdiiAn; 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 cw20-20020a170906479400b007add405cccdsi7605014ejc.444.2022.11.16.02.59.24; Wed, 16 Nov 2022 02:59:46 -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=@infradead.org header.s=desiato.20200630 header.b=EBCdiiAn; 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 S238817AbiKPKvS (ORCPT + 91 others); Wed, 16 Nov 2022 05:51:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbiKPKuy (ORCPT ); Wed, 16 Nov 2022 05:50:54 -0500 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 234E54E43D; Wed, 16 Nov 2022 02:39:49 -0800 (PST) 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=jsN0Nhr1vnvrb51t6eKNZY0+CFnpdn/XZ7+QR7DX9s8=; b=EBCdiiAnOXF07kYoDrH66f//Ij 2uIWTl0SJZ9G9lybvILij454RhzCO1pdTBQu06PCCF+h3JxE0DlTOUrmGJxdBTAzSJZjR30QwDDXH N4HTfKs/rX4HXWl+Si5Uxsik6awEdetJQFP7oDr2UJf7PD6lv1GpC5JqW6SuioZ1+/gnqVMJQf+Sp x4bY8BlUPmNrsZwsc4CnFCqV1LpHUX1+9y5TBCaAGmsAxwUVxj1AVOB4Ks04mr3l/yv+I6z0yRhE1 weWL9Vl8Z8ufAICDubbtmrjlyf63VRbXhrlWTVQ0EdpZVqIJQnMQiHZ29FDgDd9AWmDcNehBIsssn ziROuI/w==; 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 1ovFpR-001H3H-Vx; Wed, 16 Nov 2022 10:39:38 +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 8CC5E3008ED; Wed, 16 Nov 2022 11:39:37 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 492C3200E4A18; Wed, 16 Nov 2022 11:39:37 +0100 (CET) Date: Wed, 16 Nov 2022 11:39:37 +0100 From: Peter Zijlstra To: Juergen Gross Cc: linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, Guo Jin , Nathan Chancellor , x86@kernel.org Subject: Re: [tip: locking/urgent] locking: Fix qspinlock/x86 inline asm error Message-ID: References: <20221108060126.2505-1-guoj17@chinatelecom.cn> <166859051534.4906.7078966677789928700.tip-bot2@tip-bot2> <64372250-a413-076e-3b6d-2d263ee9c7f2@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64372250-a413-076e-3b6d-2d263ee9c7f2@suse.com> 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 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, Nov 16, 2022 at 10:40:10AM +0100, Juergen Gross wrote: > On 16.11.22 10:21, tip-bot2 for Guo Jin wrote: > > The following commit has been merged into the locking/urgent branch of tip: > > > > Commit-ID: 23df39fc6a36183af5e6e4f47523f1ad2cdc1d30 > > Gitweb: https://git.kernel.org/tip/23df39fc6a36183af5e6e4f47523f1ad2cdc1d30 > > Author: Guo Jin > > AuthorDate: Tue, 08 Nov 2022 14:01:26 +08:00 > > Committer: Peter Zijlstra > > CommitterDate: Wed, 16 Nov 2022 10:18:09 +01:00 > > > > locking: Fix qspinlock/x86 inline asm error > > > > When compiling linux 6.1.0-rc3 configured with CONFIG_64BIT=y and > > CONFIG_PARAVIRT_SPINLOCKS=y on x86_64 using LLVM 11.0, an error: > > " error: changed section flags for .spinlock.text, > > expected:: 0x6" occurred. > > > > The reason is the .spinlock.text in kernel/locking/qspinlock.o > > is used many times, but its flags are omitted in subsequent use. > > > > LLVM 11.0 assembler didn't permit to > > leave out flags in subsequent uses of the same sections. > > > > So this patch adds the corresponding flags to avoid above error. > > > > Fixes: 501f7f69bca1 ("locking: Add __lockfunc to slow path functions") > > Signed-off-by: Guo Jin > > Signed-off-by: Peter Zijlstra (Intel) > > Reviewed-by: Nathan Chancellor > > Link: https://lore.kernel.org/r/20221108060126.2505-1-guoj17@chinatelecom.cn > > Wouldn't it be better to take my more generic patch [1] instead? > > [1]: https://lore.kernel.org/lkml/20221109134418.6516-1-jgross@suse.com/ Durr, I missed that, lemme go stare at it.