Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp364716rwb; Wed, 16 Nov 2022 01:34:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf5zmlG3OIXJ2mq4Ock6HgfQmU1/xHFA+2HO2nHbEOI4wds99vt2m70gxh8OPeHODJuJBvWV X-Received: by 2002:a50:c042:0:b0:460:41e2:b84f with SMTP id u2-20020a50c042000000b0046041e2b84fmr18589048edd.188.1668591256495; Wed, 16 Nov 2022 01:34:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668591256; cv=none; d=google.com; s=arc-20160816; b=oVzykNVCDLlzWpUc012gJaUHzVnioVQJi2eBBoDKafPwbKX5EHfS/Z1ktYVxao21dP +w/MwbSKItVi/sffvJQFuhHOkBNkw2Qdea45UcTrrLY1lmuj3TjNq3O/r+q5fMpPajYZ TGKzDRrmw44eeJRLWbKvoONRo54h7pjeQZfNiAduNyaTyK9SOHq+tALVXSoQ3gOA5GvF gfDicX20XWA2P+Gp7IUah8wCFr+WfMOLTis4bMYd+DfIPiK/sYHQY9/97yKfZ9PsdhbZ HoVWhTMAW+if4hvrtQfE/2UlNIgYE/lY+H4mjRTM38UyzDLYmCm5kmq2eVXCBnSEY4v6 bfRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=FVY9uAbTuVF0xKex4cjna3AgPQ7XWMie7xxAYF/HBbc=; b=AX/o6mfzPa+wNCN1/jV8OpnVs61IOAmYUGKxxkiymnq9mScfaQ9CcGZ2ZVauEjdeLD GZFBJwOvxrgnnBKxE8WEiMDTp68sph6qcCZL/B5O2NuiBbnA6CRiWUaTYXbfLZOse8n0 QfTELidRnF17RY/JoG82av0ZY/OUcQcKYVslXnMgdDDf8bRAWvE5SqyLqV8dastNXQxM 7WOvX2G+Ba2HzGXFpDIZfS5YlCPHf8EzY25vTAA+hN7DGvndbJKl2qUCy0jrSKbBl61U mbbuCmDjQj9PbAP1bkIlvYJ4VAy4ux+Q2Z3iATqsg5rBoYMGelcfqorxH82YDc31R2MW Na1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=oMAwXVdZ; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id du22-20020a17090772d600b007aeff3b0b17si9026967ejc.674.2022.11.16.01.33.53; Wed, 16 Nov 2022 01:34:16 -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=@linutronix.de header.s=2020 header.b=oMAwXVdZ; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237845AbiKPJWN (ORCPT + 91 others); Wed, 16 Nov 2022 04:22:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233549AbiKPJV7 (ORCPT ); Wed, 16 Nov 2022 04:21:59 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EC2427142; Wed, 16 Nov 2022 01:21:58 -0800 (PST) Date: Wed, 16 Nov 2022 09:21:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668590516; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FVY9uAbTuVF0xKex4cjna3AgPQ7XWMie7xxAYF/HBbc=; b=oMAwXVdZ4/q5UgEfdo00MJ2v3aowzcAkGXykYzlLDQpfYP6urBoYLeN+yrqi3L4qeHuvtO bA+ecYMKKAVI53lH4ZEXBz7yeheA+pERzhISkn0waUfAKgdUzUDm2rkmD56DEANLZKfUNT CXh0rVgHbruhy7n76S1LgXtwxDhdXUpSKRIi745vila1itfXHtfC04GvIomgfk3Kxf8pEn cgbbTWuYPu/EgWquhfald+n8FnMr7ssLbFdyG4jr+Ei0V9yXH//xjPnShUEQOk2Npj/4H1 JpQFHdFHO+VwYpZTZEQffg6+V0QMpsefWStXCge+tU7nqw+RI06/CneE8lTa0Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668590516; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FVY9uAbTuVF0xKex4cjna3AgPQ7XWMie7xxAYF/HBbc=; b=wZPeI8ew0LEdEn9vdpiKo2zx1wlLFRgV9PIUr7HxnxAk3lr4B6/LEinj7UhU8z7pH0GDTG aHItwo6vaI9AkjCg== From: "tip-bot2 for Guo Jin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/urgent] locking: Fix qspinlock/x86 inline asm error Cc: Guo Jin , "Peter Zijlstra (Intel)" , Nathan Chancellor , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221108060126.2505-1-guoj17@chinatelecom.cn> References: <20221108060126.2505-1-guoj17@chinatelecom.cn> MIME-Version: 1.0 Message-ID: <166859051534.4906.7078966677789928700.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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_PASS 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 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 --- arch/x86/include/asm/qspinlock_paravirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/qspinlock_paravirt.h b/arch/x86/include/asm/qspinlock_paravirt.h index 60ece59..dbb38a6 100644 --- a/arch/x86/include/asm/qspinlock_paravirt.h +++ b/arch/x86/include/asm/qspinlock_paravirt.h @@ -37,7 +37,7 @@ __PV_CALLEE_SAVE_REGS_THUNK(__pv_queued_spin_unlock_slowpath, ".spinlock.text"); * rsi = lockval (second argument) * rdx = internal variable (set to 0) */ -asm (".pushsection .spinlock.text;" +asm (".pushsection .spinlock.text, \"ax\";" ".globl " PV_UNLOCK ";" ".type " PV_UNLOCK ", @function;" ".align 4,0x90;"