Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2602097rwl; Mon, 27 Mar 2023 02:32:58 -0700 (PDT) X-Google-Smtp-Source: AKy350aPpKT9YGHI0sdKxzLncJKRa7jTH6P2JmtKroBlM//ExI74DxrFKvVJhvsHY+y+Evb9jx8K X-Received: by 2002:a17:902:e5c8:b0:1a1:cae6:cfd with SMTP id u8-20020a170902e5c800b001a1cae60cfdmr9651266plf.34.1679909578214; Mon, 27 Mar 2023 02:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679909578; cv=none; d=google.com; s=arc-20160816; b=Zgd/MnW/FNlBLYMIe8EM3r+5UB+Weo6FpW7Fqpj6rREBx/AQVX6Wke02Nr/ZPX1Vnb MP+p/Y7hgO/Y3RSLj+kM92kcYmAAg5ahZ6MsdTjj9Fx8uzD4p5ce9O72k+o6MB7jjh0a AeBOPqT9SS8pp6jvuaYmxHPIAybJQHBmDkHpLne54EwFQgyJm64zl+BOOUcr9h2KAYED gVNaVRUrp7go5cntJPZRUuyUbtSnPYCb1VVBkr5PFg1D8iH51PilkhbLXrxXUNP/SGpx IWvJvs/1Hj17Jc706lr0RkQFK/NAzBCYfnNdC9E/6mP/TOpmu87WKlffnjc7oKORQPak nEDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=MolT2QPdAbhjDzQm/bW+5V6BH1+c0GF0g3SrhCKOHKA=; b=dj2yHMPTiJbrGEpPVLkym0IK6FDSmsGYKjLD5E78oq43D278co7dnustmlU5IxhQNz VJClqC15/sbMdLQajibfCZKng+Smoy2x/LLbIIUngYzWGySvX5j3hu36Z8xU7ZZHmhro Iyl/vzkfB0EZ0a1rL0OWMNLoetgTbu3jxNuRNlKapZzbOhIoduLCr6PfmhPATdne2+ap +mb2CVWYa73IQsXcoan+Dhw5GNgJMHHW7tj5y4P5I9pYHtlRTgIS7mbF5uZbRzqjtFTi rGV8IAOAN0UOLlYPc+jsYdIhxxotHjCan8+qaQeywiP8FLVkIRRGK2TSViYYz7VoNW7+ 9agQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=boRoJxii; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170902d2c600b0019e87fa9d38si27915499plc.413.2023.03.27.02.32.46; Mon, 27 Mar 2023 02:32:58 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=boRoJxii; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232511AbjC0JTp (ORCPT + 99 others); Mon, 27 Mar 2023 05:19:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbjC0JTo (ORCPT ); Mon, 27 Mar 2023 05:19:44 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4977210D for ; Mon, 27 Mar 2023 02:19:43 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id ix20so7815431plb.3 for ; Mon, 27 Mar 2023 02:19:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679908783; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MolT2QPdAbhjDzQm/bW+5V6BH1+c0GF0g3SrhCKOHKA=; b=boRoJxiiePoGdvCdmLREQ2NLCH36s3EUqVN2C4z3pHpi2IMY1rNwF3xF9j5nRnX7f5 X48jP+jdwaaqDx2cfgHf2l4uqfdiyS9Lkde22dpHeo4YrW1tJZ/UbEEeKO0wtx2KHOxp DJgAmRZopRrJipcFLG+Fm4XzFOKm3OaxoGsbQ+JCkZOgyYFm5+4aEn2wD9Z1NWS0j95V b79qk+KIyXC/3wUAb4mU66z7+ITZSbGtUUZjYAr9zYHqSb1/xCseFLUN2ENHQbS/q2uV UnKOtdbaKzt7byVriYPnFaUQ12Xr8w+szmnTtx7Tomp+Z4J6m3CW/kMotsmVikxkv7kH MD7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679908783; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=MolT2QPdAbhjDzQm/bW+5V6BH1+c0GF0g3SrhCKOHKA=; b=iAg3GCt0yaEf+/kk8Ms+JE59MzBHX50MXj5JDLqhcBjsPTyGlw0M0GLY8F4Z7GckAu EBGIEDuwg0A6E9vvRYqZI+Y/zZ7RSm7T3mXm3WRUFvwx2ko3bHvRol4Q09kqH9136i6i A0AZZQ+i2Ki+JSTbSz+xirC/S8AoVTxoduWeeJIRgy8BuLxQm4kY3m3b6kEvBxovT/u/ FFBtd3lhiNp/qj+mG2OX4xpcEdgKLdpHeJSV7vlj8u6aCKJhg8KxYY1dzwf63/z0/h8u 41H3chZRybcQbLjW/myp8eUXGxFmYxm+ImtIrErjFL9KvWZJot5W1GGirEmz4nLm4FsM 7YVw== X-Gm-Message-State: AAQBX9e749gb+eIX6QjowMm7K0E4LaGnMXU0OJ+9H3jIIIm4OKKfW7lx aPcd8kI0qgE+6tJCri6DQHw= X-Received: by 2002:a17:903:41c8:b0:1a0:57df:864f with SMTP id u8-20020a17090341c800b001a057df864fmr12018706ple.16.1679908783211; Mon, 27 Mar 2023 02:19:43 -0700 (PDT) Received: from localhost ([203.221.180.225]) by smtp.gmail.com with ESMTPSA id jm18-20020a17090304d200b001888cadf8f6sm18629720plb.49.2023.03.27.02.19.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Mar 2023 02:19:42 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 27 Mar 2023 19:19:37 +1000 Message-Id: Cc: , Subject: Re: [PATCH v3 1/2] arch/powerpc/kvm: kvmppc_hv_entry: remove .global scope From: "Nicholas Piggin" To: "Kautuk Consul" , "Michael Ellerman" , "Christophe Leroy" , "Fabiano Rosas" , "Sathvika Vasireddy" , "Alexey Kardashevskiy" X-Mailer: aerc 0.13.0 References: <20230316051025.1424093-1-kconsul@linux.vnet.ibm.com> <20230316051025.1424093-2-kconsul@linux.vnet.ibm.com> In-Reply-To: <20230316051025.1424093-2-kconsul@linux.vnet.ibm.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Thu Mar 16, 2023 at 3:10 PM AEST, Kautuk Consul wrote: > kvmppc_hv_entry isn't called from anywhere other than > book3s_hv_rmhandlers.S itself. Removing .global scope for > this function and annotating it with SYM_INNER_LABEL. > > Signed-off-by: Kautuk Consul > --- > arch/powerpc/kvm/book3s_hv_rmhandlers.S | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/powerpc/kvm/book3s_hv_rmhandlers.S b/arch/powerpc/kvm/b= ook3s_hv_rmhandlers.S > index acf80915f406..b81ba4ee0521 100644 > --- a/arch/powerpc/kvm/book3s_hv_rmhandlers.S > +++ b/arch/powerpc/kvm/book3s_hv_rmhandlers.S > @@ -502,8 +502,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S) > * = * > ***********************************************************************= ******/ > =20 > -.global kvmppc_hv_entry I think this is okay. > -kvmppc_hv_entry: > +SYM_INNER_LABEL(kvmppc_hv_entry, SYM_L_LOCAL) The documentation for SYM_INNER_LABEL says it for labels inside a SYM function block, is that a problem? This is a function but doesn't have C calling convention, so asm annotation docs say that it should use SYM_CODE_START_LOCAL? BTW. why don't our _GLOBAL() macros use these SYM annotations? I haven't really looked into them. Thanks, Nick