From nobody Tue Jun 23 07:15:06 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 85BC8C4332F for ; Wed, 9 Mar 2022 07:57:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231182AbiCIH6t (ORCPT ); Wed, 9 Mar 2022 02:58:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230525AbiCIH4u (ORCPT ); Wed, 9 Mar 2022 02:56:50 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 963C7166A7D; Tue, 8 Mar 2022 23:55:19 -0800 (PST) Date: Wed, 09 Mar 2022 07:55:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1646812517; 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=1nJlz819/YLAysy3BcrBZdVcUf1he+TryJsVQ7RjF8A=; b=kdf7AvTox8vlUA4dYvg7DYfvhlPHbQO0KSSrJLDLiXKZtFWi9eBnqkP3sCJ/9Cti7rO14X HwlOdbSOb7G1iLWNuXbhZb5RNGlsRYNXoaEmwTOzcAuEiGIrcU4sXOXVoMz02buKl5+r78 b8zjRpIsWh5spxFKGp1ig1tQEWeCviV+JHNnX7KbTdFHqX71ctGxl0n55Fh0mq6YRdaXso bAu5cmRR8GSjX4f9/0RxHUpPlPT3oMhq8GjE8oQwT/XxjSW0wcpEzBFAXcWn/dVeO5YXox kbH/nX8FvIb918tfjokVKEBr1nD7oF28tvPmqqogB/l4rG28kLK/gUXBvrrBmA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1646812517; 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=1nJlz819/YLAysy3BcrBZdVcUf1he+TryJsVQ7RjF8A=; b=LtW4Si6OYsTzxfi2l0WDn8zDLXKsg+WEULmNzPZi99IXBNoqV2YgHZrZ8IShT84FicYzJw S7EmgyBq6TgS/sAA== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/core] static_call: Avoid building empty .static_call_sites Cc: "Peter Zijlstra (Intel)" , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220308154317.223798256@infradead.org> References: <20220308154317.223798256@infradead.org> MIME-Version: 1.0 Message-ID: <164681251690.16921.6436251759629555723.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: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/core branch of tip: Commit-ID: 01ddabda5a3e16eace6d61bcf1857eba8f015b13 Gitweb: https://git.kernel.org/tip/01ddabda5a3e16eace6d61bcf1857eba8= f015b13 Author: Peter Zijlstra AuthorDate: Tue, 08 Mar 2022 16:30:12 +01:00 Committer: Peter Zijlstra CommitterDate: Tue, 08 Mar 2022 23:53:26 +01:00 static_call: Avoid building empty .static_call_sites Without CONFIG_HAVE_STATIC_CALL_INLINE there's no point in creating the .static_call_sites section and it's related symbols. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Josh Poimboeuf Link: https://lore.kernel.org/r/20220308154317.223798256@infradead.org --- include/asm-generic/vmlinux.lds.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinu= x.lds.h index 42f3866..a41e623 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -404,6 +404,7 @@ KEEP(*(__jump_table)) \ __stop___jump_table =3D .; =20 +#ifdef CONFIG_HAVE_STATIC_CALL_INLINE #define STATIC_CALL_DATA \ . =3D ALIGN(8); \ __start_static_call_sites =3D .; \ @@ -412,6 +413,9 @@ __start_static_call_tramp_key =3D .; \ KEEP(*(.static_call_tramp_key)) \ __stop_static_call_tramp_key =3D .; +#else +#define STATIC_CALL_DATA +#endif =20 /* * Allow architectures to handle ro_after_init data on their