Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6030718rwb; Mon, 14 Nov 2022 13:10:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf796EdxQbxUKilmCN2FwvwXry19zV0cENUNE13UJd/kSoacqxNJou8orLgH/TqiAprpFHCu X-Received: by 2002:a17:907:1dec:b0:78b:8ce7:fe3c with SMTP id og44-20020a1709071dec00b0078b8ce7fe3cmr11655507ejc.557.1668460215314; Mon, 14 Nov 2022 13:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668460215; cv=none; d=google.com; s=arc-20160816; b=V5iBljz3TX3FuyUOwlTyxe3QSVIr3wjWwZjWb/A/9OBAyHr8b54ppAjn4p5rexCJCp XcbhhNZZtsDysn3vA0b+A2Iol4uJYPSgB3BzQC6udKq8jPAqMMbFHCTj8D9e3THqLVh1 9UJ04yyzOcwh8Lc58Mwawu/iq+4sIh7eKwNvQp6QyBrVrA74fEY9zvmOYnZCDaF+NqbO dUK7E5rGvM9xfEHtsB+5BJc3lHuPIIc0JH0jiH6srR4pHD6BwVt2NZNb5S/v9y8dQq7P Y0T+TZe/zmFE8Im4MpXDiyMUD+4AvRS8Bd3wmofRUQdQ31JP//OAnUgxbSjQDwuSpOu3 itKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=OFBcMHwjfnz4CwvT8N+UBFsqSgCBT2BfdXrb4cCTXzA=; b=Gn3gBv5Gf5LC4EczMqZA+axmGpQQkSiE7yp//1qVBMNp5ji4VL9HzUMPZ9rMkxgsUy osL0tvH71Tby9q2m3bZHRfNDgcSjhuHYybYow0i5nOBy0R7pTz31knzpxzaEW4P59Zro vhQac6Y+fUXotecuWtF7JgHuUBzXqW7BTkr/awQ0V1cRqBLWvUoRoYSQrPSC7KtDlqUZ YZekmcqJzcwRL64TMERU2PNqM0lrvDrA4Xrctde24o+XvjfifZHRlSGbGBPiBR+lSCcr RGPCgRkaskep6vKvBG4GDHJuEZGRaA+ag9HhWqta1BciF2fOtdgjrsOTyz6/2367L4a1 AwUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=h8NYVeKD; 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 qb24-20020a1709077e9800b0078e1a6fbe12si11454155ejc.16.2022.11.14.13.09.52; Mon, 14 Nov 2022 13:10:15 -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=@firstfloor.org header.s=mail header.b=h8NYVeKD; 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 S237621AbiKNU3g (ORCPT + 88 others); Mon, 14 Nov 2022 15:29:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236756AbiKNU3e (ORCPT ); Mon, 14 Nov 2022 15:29:34 -0500 X-Greylist: delayed 80 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 14 Nov 2022 12:29:32 PST Received: from one.firstfloor.org (one.firstfloor.org [193.170.194.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360E032C for ; Mon, 14 Nov 2022 12:29:32 -0800 (PST) Received: by one.firstfloor.org (Postfix, from userid 503) id BC24287762; Mon, 14 Nov 2022 21:29:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1668457770; bh=Kt8/WDdkL9ESEnpGDjl/yyFjVmr0lYuznqdumt5bCf0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h8NYVeKDVCHh0JLjbH1nVn6UKY4wo8RDA0FaLjRzAPh6KqQndVk4kitaazaQw/F6u AYP5ZcvhuXWCBdLnpYOsiKBhj+YaKlWk5ymHXCZwCpyHD3TSbwrc4D/uXUUp1r7ulL zPygjnk9JctiwifdfvMxU1I/YDZ4u8TFpoVCEt+U= Date: Mon, 14 Nov 2022 12:29:30 -0800 From: Andi Kleen To: Peter Zijlstra Cc: "Jiri Slaby (SUSE)" , linux-kernel@vger.kernel.org, Andi Kleen , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , Martin Liska , Jiri Slaby Subject: Re: [PATCH 10/46] static_call, lto: Mark func_a() as __visible_on_lto Message-ID: <20221114202930.w6mzwpiii6xlhqkm@two.firstfloor.org> References: <20221114114344.18650-1-jirislaby@kernel.org> <20221114114344.18650-11-jirislaby@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 On Mon, Nov 14, 2022 at 04:54:16PM +0100, Peter Zijlstra wrote: > On Mon, Nov 14, 2022 at 12:43:08PM +0100, Jiri Slaby (SUSE) wrote: > > > -static int func_a(int x) > > +__visible_on_lto int sc_func_a(int x) > > > } static_call_data [] __initdata = { > > { NULL, 2, 3 }, > > { func_b, 2, 4 }, > > - { func_a, 2, 3 } > > + { sc_func_a, 2, 3 } > > }; > > I must say I really hate this. Also, with address taken, it still > eliminiates it? It doesn't eliminate it, but makes it static, which causes the label to change, so the assembler reference breaks. -Andi