Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp4129507rwi; Wed, 2 Nov 2022 07:12:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mkdcxwuKIg0CU69Znir9zAk7eUt708Nq2izT7Aucm1xOOkYhp8PXM/Mhw5p6ZOqF3BvlS X-Received: by 2002:a17:90a:1690:b0:20a:8f70:14bb with SMTP id o16-20020a17090a169000b0020a8f7014bbmr25747502pja.115.1667398336608; Wed, 02 Nov 2022 07:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667398336; cv=none; d=google.com; s=arc-20160816; b=WthM/OaXrlOzLF56RQKmsCJ/Zr8LzJ/wrK0s+5je+k/FcNAuquhYFPQRlrxpNDJKPN IvpaAIXwg3ZsEgwkELdlGnf9Ou5Bva5WRxrvqy3gLIgHHMtrpEPn/2iW1gW4DI4jD7HL 1UdRsFjQDRO6W6Afo7QnbWSIVks0UqAaef2zOpwLmMVU7PZDyz3yhIeORIZK49v1DrGU gywNwVkoe7KLZT+mYfCyIlHQ2/3SH3G8buzfYzEhvbDbTqZsOaUJrpxmKeeNFxrnkjAV 8ZW3pJQ/cO8lrHM4vMPbka++DuQ3gz2F+DlDZ9j67bJFg/bs8cfJIZkGdMFhtZvYoWUY fZTg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a639c09000000b0046f51cccc25si1329512pge.396.2022.11.02.07.12.01; Wed, 02 Nov 2022 07:12:16 -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 Content-Transfer-Encoding: 8bit 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 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;" -- 2.25.1