[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160627112255.GD1113@leverpostej>
Date: Mon, 27 Jun 2016 12:22:56 +0100
From: Mark Rutland <mark.rutland@....com>
To: Ingo Molnar <mingo@...nel.org>
Cc: Matt Fleming <matt@...eblueprint.co.uk>,
Thomas Gleixner <tglx@...utronix.de>,
"H . Peter Anvin" <hpa@...or.com>,
Alex Thorlton <athorlton@....com>,
Ard Biesheuvel <ard.biesheuvel@...aro.org>,
linux-kernel@...r.kernel.org, linux-efi@...r.kernel.org,
Catalin Marinas <catalin.marinas@....com>,
Dimitri Sivanich <sivanich@....com>,
Ingo Molnar <mingo@...hat.com>,
Roy Franz <roy.franz@...aro.org>, Russ Anderson <rja@....com>,
Russell King <linux@...linux.org.uk>,
Will Deacon <will.deacon@....com>
Subject: Re: [PATCH 4/7] efi: Convert efi_call_virt to efi_call_virt_pointer
On Mon, Jun 27, 2016 at 01:00:50PM +0200, Ingo Molnar wrote:
>
> * Matt Fleming <matt@...eblueprint.co.uk> wrote:
>
> > +#define efi_call_virt_pointer(p, f, args...) \
> > +({ \
> > + efi_status_t __s; \
> > + unsigned long flags; \
> > + \
> > + arch_efi_call_virt_setup(); \
> > + \
> > + local_save_flags(flags); \
> > + __s = arch_efi_call_virt(p, f, args); \
> > + efi_call_virt_check_flags(flags, __stringify(f)); \
> > + \
> > + arch_efi_call_virt_teardown(); \
> > + \
> > + __s; \
> > +})
> > +
> > +#define __efi_call_virt_pointer(p, f, args...) \
> > +({ \
> > + unsigned long flags; \
> > + \
> > + arch_efi_call_virt_setup(); \
> > + \
> > + local_save_flags(flags); \
> > + arch_efi_call_virt(p, f, args); \
> > + efi_call_virt_check_flags(flags, __stringify(f)); \
> > + \
> > + arch_efi_call_virt_teardown(); \
> > +})
>
> Note that while at it I renamed 'flags' to '__flags' because 'flags' is
> a commonly used variable name and the 'efi_status_t __s' variable was
> macro-prefixed already.
>
> Any objections?
FWIW, none from me. I probably should have done that when I wrote the
original {__,}efi_call_virt macros.
Thanks,
Mark.
Powered by blists - more mailing lists