From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753464AbcFBQXj (ORCPT ); Thu, 2 Jun 2016 12:23:39 -0400 Received: from relay1.sgi.com ([192.48.180.66]:45416 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbcFBQXh (ORCPT ); Thu, 2 Jun 2016 12:23:37 -0400 Date: Thu, 2 Jun 2016 11:23:35 -0500 From: Alex Thorlton To: Matt Fleming Cc: Alex Thorlton , linux-kernel@vger.kernel.org, Borislav Petkov , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Mike Travis , Russ Anderson , Dimitri Sivanich , x86@kernel.org, linux-efi@vger.kernel.org, Mark Rutland , Ard Biesheuvel Subject: Re: [PATCH 1/3] Convert efi_call_virt to efi_call_virt_generic Message-ID: <20160602162335.GV242721@stormcage.americas.sgi.com> References: <1463598701-178201-1-git-send-email-athorlton@sgi.com> <1463598701-178201-2-git-send-email-athorlton@sgi.com> <20160602154114.GI2658@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160602154114.GI2658@codeblueprint.co.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 02, 2016 at 04:41:14PM +0100, Matt Fleming wrote: > Oops, you're missing updates to the 32-bit version and ARM/arm64, > which results in this, > > drivers/firmware/efi/runtime-wrappers.c: In function ‘virt_efi_get_time’: > arch/x86/include/asm/efi.h:46:4: error: ‘efi_efi’ undeclared (first use in this function) > ((efi_##f##_t __attribute__((regparm(0)))*) \ > ^ > > but that's easily fixed up. Oops! Sorry about that. I had done a pretty recent pull before I did my last build, but it was probably before these updates came in. I'll rebase my patches onto the latest tip kernel and fix this. > > +/* > > + * Wrap around the new efi_call_virt_generic macros so that the > > + * code doesn't get too cluttered > > + */ > > +#define efi_call_virt(f, args...) \ > > + efi_call_virt_generic(efi.systab->runtime, f, args) > > +#define __efi_call_virt(f, args...) \ > > + __efi_call_virt_generic(efi.systab->runtime, f, args) > > + > > +void efi_call_virt_check_flags(unsigned long flags, const char *call) > > { > > unsigned long cur_flags, mismatch; > > > > I'm not crazy about using "generic" in the name. How about > efi_call_virt_function() or efi_call_virt_pointer()? I'm not married to "generic." I'll change it to efi_call_virt_pointer. I think efi_call_virt_function is a little confusing/redundant, since a call is always to a function, right? I will fix this stuff up and send a v2. Thanks for looking this over, Matt! - Alex