From patchwork Mon Nov 14 11:43:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 19746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2097905wru; Mon, 14 Nov 2022 03:48:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HOIfKbRrQVKAMlfEqi5MfZsYDKgIGMUlkEtQjzvrbzPr04UsRgxHubH4zv6dzaQRy9VcM X-Received: by 2002:a17:906:2782:b0:78d:77b1:a433 with SMTP id j2-20020a170906278200b0078d77b1a433mr10024666ejc.486.1668426511596; Mon, 14 Nov 2022 03:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668426511; cv=none; d=google.com; s=arc-20160816; b=CrD85TB3sbWEO8sKigVxIDXdp+BOpf6jdCYb3YBCCFPG2dt61/Z3QcnRUbp813SnQa D05spIlmtSeYnAGfrKgHzQhXekOYM1j/NlEMIoMR+DqfLI1xHY0KXq98xOkhOBjV28Mr LFZH6Ea9RIvGdb0RKNMny+sYLYwR3EQx0keZxTaappBFGksCVB05tRmQde1pO8OdbYxj q1/b1CT67BZrY9TNiF82HpQ/Xc2aokv9gmNIaWr+ezj/4gjgSSRIacV5FNHpoCWtHkD0 n1HOzMcEXD58ZViq8/f/HuR8mUtsDhpggYRDirVZuNpjbD3O8zxhwVoHSncDL09oOJzU TEyg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Oukx4wojC0JZk61p77ROqFYgcgaENsiRGwz311lyYA8=; b=iohlNfk5cn2ejyE//rCmetU5CJw/NynXqoIViR+ylSbQPWz15R8h15enbD06hYPRIK JmULCwtNOTJzAY7FU1+AOh4oUZC9nco/UpgwRAXu9JQkgN0TJUHVJS58ko+sd/eezPIv djEObmTdDByF0PwNj8c4j/Qjejz0m8DRP9EYG26Xy31ZEclT5lidJMf36t7KIZ4v2Xtv LQ5Voo0MW3rGWt0/5QeuwYhBZ/LPXU0B6SOFUaU+/Fb7QcuXdg9O8g1Ws+FtOUzn48/v S7vXL26CyCpfRB4lfj0k6RYXTRo0TaY8qlMpKU8CCb3jwUvfPWOuj2t1bcdtwsfZ3t/h wklg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fX5j1IWz; 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=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i15-20020a50870f000000b0046154884604si8789712edb.482.2022.11.14.03.48.07; Mon, 14 Nov 2022 03:48:31 -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=@kernel.org header.s=k20201202 header.b=fX5j1IWz; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236708AbiKNLph (ORCPT + 99 others); Mon, 14 Nov 2022 06:45:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236654AbiKNLo5 (ORCPT ); Mon, 14 Nov 2022 06:44:57 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 960352252F for ; Mon, 14 Nov 2022 03:44:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2CEFC61087 for ; Mon, 14 Nov 2022 11:44:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2887C43155; Mon, 14 Nov 2022 11:44:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668426279; bh=dn0CND4Yb3GYabpLwzhF9lVAnJEjbiM0Q87kR0Hih+M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fX5j1IWzLpzENINvT3ouVKWBX6XghYPlk3DDKxppfVzJOeJKkj9hg/0dXdZ1JXhl/ 6u8gVzw0+qpl9nTA+F0Wt/w3eTvJi6P6IL+qO9DlwcCJv2eGvC/uLIuuzI69nDjDCv ZfuhOlM+1zxGUc6onbmKi5kozBR4rBaQF0hz4b3GgFA3tp7tSGTxLWmmRDzXjgdmy4 3nO+cg2W9QbHDLphFVrRcX/SHX7LM2zIMdUAwQr5xp3adR7HRkQ0/jyMSFUizPz5d/ KiBtPoGntlu7Pugnuo3qZbej8+X1fuBGoHIJSlbdFAuzn3GBOA5tf5K1edamffE2PV LIqXgGwCvi10A== From: "Jiri Slaby (SUSE)" To: linux-kernel@vger.kernel.org Cc: Andi Kleen , Thomas Gleixner , Peter Zijlstra , Andy Lutomirski , Martin Liska , Jiri Slaby Subject: [PATCH 18/46] entry, lto: Mark raw_irqentry_exit_cond_resched() as __visible Date: Mon, 14 Nov 2022 12:43:16 +0100 Message-Id: <20221114114344.18650-19-jirislaby@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114114344.18650-1-jirislaby@kernel.org> References: <20221114114344.18650-1-jirislaby@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749471997882516445?= X-GMAIL-MSGID: =?utf-8?q?1749471997882516445?= From: Andi Kleen Symbols referenced from assembler (either directly or e.f. from DEFINE_STATIC_KEY()) need to be global and visible in gcc LTO because they could end up in a different object file than the assembler. This can lead to linker errors without this patch. So mark raw_irqentry_exit_cond_resched() as __visible. Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Andy Lutomirski Signed-off-by: Andi Kleen Signed-off-by: Martin Liska Signed-off-by: Jiri Slaby --- kernel/entry/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/entry/common.c b/kernel/entry/common.c index 846add8394c4..13c1a7a0e8ce 100644 --- a/kernel/entry/common.c +++ b/kernel/entry/common.c @@ -378,7 +378,7 @@ noinstr irqentry_state_t irqentry_enter(struct pt_regs *regs) return ret; } -void raw_irqentry_exit_cond_resched(void) +__visible void raw_irqentry_exit_cond_resched(void) { if (!preempt_count()) { /* Sanity check RCU and thread stack */