error: incompatible type for argument 5 of ‘BS->CreateEventEx’ 369 | ExitGuid,
I am having this error while compiling the driver in lunix .
main.c: In function ‘efi_main’:
main.c:354:65: error: incompatible type for argument 5 of ‘BS->CreateEventEx’
354 | VirtualGuid,
| ^~~~~~~~~~~
| |
| EFI_GUID
main.c:354:65: note: expected ‘const EFI_GUID *’ but argument is of type ‘EFI_GUID’
main.c:369:65: error: incompatible type for argument 5 of ‘BS->CreateEventEx’
369 | ExitGuid,
| ^~~~~~~~
| |
| EFI_GUID
main.c:369:65: note: expected ‘const EFI_GUID *’ but argument is of type ‘EFI_GUID’
make: *** [
add "&" before virtualguid and exitguid.