From patchwork Wed Nov 2 13:41:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: guoj17@chinatelecom.cn X-Patchwork-Id: 14239 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3633435wru; Wed, 2 Nov 2022 06:56:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7t4YU+R6turmOYhpTDsrFz5aJr2X4Q1zSYIZCf4Gs+YOvg4hCOc/PaK1aMUYY90ApomfQC X-Received: by 2002:a17:906:30c5:b0:782:707:9e2d with SMTP id b5-20020a17090630c500b0078207079e2dmr23517687ejb.286.1667397418505; Wed, 02 Nov 2022 06:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667397418; cv=none; d=google.com; s=arc-20160816; b=OSe9au2L/Mq3WMYywzcPF4Ftqr67HDMXJxRCT2hRKofjr9ZqbEKRF5kQv/1eYEDb4x QWLpuviVlXn0Mw6n18HlTuFQrd0g/b+lYfu2bvhMS7Rqp+R3VZIvTANiBTFJQvmmIUGS 3L51KVqYxHP37mFP9brwZaKOhw0JfLSAWaKGuyl/ZtzLPkSAE4tJba+VVx188MegE7Ga 7KDjjkB5a4OQL7Ib8XJ7RYiULVTC+UqEWpz2kyOTK1tJt+F3/KHEo03N09fOWsyhlKHg CP+5LXI6VhLsKhvJAvlyGPtPczf8c3YbwlbD1MfCG6c0eo+Sh+IhkihjPbAi0/kdyY6f OdiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:hmm_source_type :hmm_attache_num:hmm_source_ip; bh=073s6dYchxBqRD+4EQpXG88gj4UMS2uIh69sSlbkzhg=; b=YvNNd0PfWlC932dAdpt9A8XkQXLTfHPMC9IsFEPXg6+6ZXEcRmZKlQLJbuOVr4O40X BrJUzHbu/MyX6L5dsUR4TDhn1uFC5XqSeDCNOgdxErYJkoItNQS8Y0vsWbQSfBKAqT35 kn99K5STWHOFrHJiw+YjU10M+fiY9FbsDGcFnQ+qJ0J59gup5S+SWUs1cdiNvrLbDFiS YFBfcbiQHgRG1a5I2TxcvB19AjWX6FPZBMyuADNj/+J/E4AQ0ghacMhVFo/tv1TB2DKe 20nRzPUwlY6gjfOAmfFokNcs8GFKkKMlw8UBkYHerIsNyjl2HsQyrTEckRyELiBt97bb 919Q== ARC-Authentication-Results: i=1; mx.google.com; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gy14-20020a170906f24e00b00781bbff1cc1si13229202ejb.455.2022.11.02.06.56.30; Wed, 02 Nov 2022 06:56:58 -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; 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 S230060AbiKBNvQ (ORCPT + 99 others); Wed, 2 Nov 2022 09:51:16 -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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748392915612308446?= X-GMAIL-MSGID: =?utf-8?q?1748392915612308446?= From: Guo Jin When compiling linux configured with CONFIG_64BIT=y and CONFIG_PARAVIRT_SPINLOCKS=y 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/asm/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_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;"