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 C8087EE4993 for ; Mon, 21 Aug 2023 10:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234656AbjHUKZJ (ORCPT ); Mon, 21 Aug 2023 06:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234659AbjHUKZJ (ORCPT ); Mon, 21 Aug 2023 06:25:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B88E313E for ; Mon, 21 Aug 2023 03:24:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EEBF163007 for ; Mon, 21 Aug 2023 10:24:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECF5BC433C7; Mon, 21 Aug 2023 10:24:21 +0000 (UTC) Date: Mon, 21 Aug 2023 11:24:19 +0100 From: Catalin Marinas To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "Rafael J. Wysocki" , Nathan Chancellor , Nick Desaulniers Subject: Re: [PATCH v2 02/11] efi/arm64: Move EFI runtime call setup/teardown helpers out of line Message-ID: References: <20230818113724.368492-1-ardb@kernel.org> <20230818113724.368492-3-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230818113724.368492-3-ardb@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org On Fri, Aug 18, 2023 at 01:37:15PM +0200, Ard Biesheuvel wrote: > Only the arch_efi_call_virt() macro that some architectures override > needs to be a macro, given that it is variadic and encapsulates calls > via function pointers that have different prototypes. > > The associated setup and teardown code are not special in this regard, > and don't need to be instantiated at each call site. So turn them into > ordinary C functions and move them out of line. > > Signed-off-by: Ard Biesheuvel Acked-by: Catalin Marinas