]> git.ipfire.org Git - thirdparty/grub.git/commit
efi: Allow expression as func argument to efi_call_* macros on all platforms
authorGlenn Washburn <development@efficientek.com>
Tue, 21 Feb 2023 18:20:32 +0000 (12:20 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Feb 2023 12:32:26 +0000 (13:32 +0100)
commitbe0b23ef99e15ee34c146621149d7aab7105425e
tree95085114197c61b865d428800b8815de02dffd6a
parentcd9680219023f76a434305bc66d8ac91ec7047ae
efi: Allow expression as func argument to efi_call_* macros on all platforms

On EFI platforms where EFI calls do not require a wrapper (notably i386-efi
and arm64-efi), the func argument needs to be wrapped in parenthesis to
allow valid syntax when func is an expression which evaluates to a function
pointer. On EFI platforms that do need a wrapper, this was never an issue
because func is passed to the C function wrapper as an argument and thus
does not need parenthesis to be evaluated.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
include/grub/efi/api.h