From mboxrd@z Thu Jan 1 00:00:00 1970 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 6BBAAC433F5 for ; Tue, 8 Mar 2022 15:56:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348253AbiCHP5f (ORCPT ); Tue, 8 Mar 2022 10:57:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348054AbiCHP4G (ORCPT ); Tue, 8 Mar 2022 10:56:06 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9074F9DD for ; Tue, 8 Mar 2022 07:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=0GRAegTdgi3auRe/t63t5h8YTp9nrb+yNH0x1eayzck=; b=WB+i26e7bGNKrZAkkEGP7lr5tY 7z61hB+wOg3WsuIXkuW2pALtcDRHOJlJBLUvc+p0tZNw3mmIRPUI7RnIAfEGR+MzAJVOHg+sSqMh5 ADNasED/CkmbZ6294B4IzhPKL0MOoaQ2qHveb0h+jDfstKCbh8GPjrFPFjBEWihFCBKAEgbwmZfJ2 F2WYy7ACtOWYN22LJvDkGxxwQUa9agdHGngHCwpL/OBUUB4rRUH0l7DeaBPG4PkP7klcdCHbmODRT wY0o//9TotkYOzuodlfKLYDQ3kMAcBAvdCtIxEaabaGkczbTfPbk7mIH6tdRW9dtYznNfYc6JjWEN Jqr0tWnw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRcAb-00GUiL-Fl; Tue, 08 Mar 2022 15:54:41 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D5984300242; Tue, 8 Mar 2022 16:54:38 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id B84962B55FFB0; Tue, 8 Mar 2022 16:54:38 +0100 (CET) Message-ID: <20220308154317.223798256@infradead.org> User-Agent: quilt/0.66 Date: Tue, 08 Mar 2022 16:30:12 +0100 From: Peter Zijlstra To: x86@kernel.org, joao@overdrivepizza.com, hjl.tools@gmail.com, jpoimboe@redhat.com, andrew.cooper3@citrix.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, ndesaulniers@google.com, keescook@chromium.org, samitolvanen@google.com, mark.rutland@arm.com, alyssa.milburn@intel.com, mbenes@suse.cz, rostedt@goodmis.org, mhiramat@kernel.org, alexei.starovoitov@gmail.com Subject: [PATCH v4 01/45] static_call: Avoid building empty .static_call_sites References: <20220308153011.021123062@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) --- include/asm-generic/vmlinux.lds.h | 4 ++++ 1 file changed, 4 insertions(+) --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -398,6 +398,7 @@ KEEP(*(__jump_table)) \ __stop___jump_table = .; +#ifdef CONFIG_HAVE_STATIC_CALL_INLINE #define STATIC_CALL_DATA \ . = ALIGN(8); \ __start_static_call_sites = .; \ @@ -406,6 +407,9 @@ __start_static_call_tramp_key = .; \ KEEP(*(.static_call_tramp_key)) \ __stop_static_call_tramp_key = .; +#else +#define STATIC_CALL_DATA +#endif /* * Allow architectures to handle ro_after_init data on their