From nobody Thu Apr 9 04:42:14 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 447B3C4332F for ; Wed, 2 Nov 2022 13:51:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbiKBNvR (ORCPT ); Wed, 2 Nov 2022 09:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbiKBNvN (ORCPT ); Wed, 2 Nov 2022 09:51:13 -0400 X-Greylist: delayed 534 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 02 Nov 2022 06:51:12 PDT Received: from chinatelecom.cn (prt-mail.chinatelecom.cn [42.123.76.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 22B9E2AE22 for ; Wed, 2 Nov 2022 06:51:11 -0700 (PDT) HMM_SOURCE_IP: 172.18.0.218:41252.697894223 HMM_ATTACHE_NUM: 0000 HMM_SOURCE_TYPE: SMTP Received: from clientip-111.197.83.205 (unknown [172.18.0.218]) by chinatelecom.cn (HERMES) with SMTP id 0A50B2800AF; Wed, 2 Nov 2022 21:41:59 +0800 (CST) X-189-SAVE-TO-SEND: +guoj17@chinatelecom.cn Received: from ([111.197.83.205]) by app0025 with ESMTP id 1d324c0c76e9441fbf918901a6aaf0b6 for tglx@linutronix.de; Wed, 02 Nov 2022 21:42:15 CST X-Transaction-ID: 1d324c0c76e9441fbf918901a6aaf0b6 X-Real-From: guoj17@chinatelecom.cn X-Receive-IP: 111.197.83.205 X-MEDUSA-Status: 0 Sender: guoj17@chinatelecom.cn From: guoj17@chinatelecom.cn To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Cc: hpa@zytor.com, linux-kernel@vger.kernel.org, Guo Jin Subject: [PATCH] locking: fix inline asm error Date: Wed, 2 Nov 2022 21:41:55 +0800 Message-Id: <20221102134155.2001-1-guoj17@chinatelecom.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Guo Jin When compiling linux configured with CONFIG_64BIT=3Dy and CONFIG_PARAVIRT_SPINLOCKS=3Dy on x86_64 using LLVM 11.0, the .spinlock.text 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. Signed-off-by: Guo Jin --- 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/a= sm/qspinlock_paravirt.h index 60ece592b220..dbb38a6b4dfb 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_slowp= ath, ".spinlock.text"); * rsi =3D lockval (second argument) * rdx =3D internal variable (set to 0) */ -asm (".pushsection .spinlock.text;" +asm (".pushsection .spinlock.text, \"ax\";" ".globl " PV_UNLOCK ";" ".type " PV_UNLOCK ", @function;" ".align 4,0x90;" --=20 2.25.1