OSDN Git Service

efivar: fix efi_well_known_guids and efi_well_known_guids_end definitions
authorPeter Jones <pjones@redhat.com>
Thu, 17 May 2018 19:10:40 +0000 (15:10 -0400)
committerPeter Jones <pmjones@gmail.com>
Mon, 21 May 2018 13:27:07 +0000 (09:27 -0400)
commit30e3ddd98814a738b42b35ce5d38ca9b69e0cc83
treeefb659bd7a0a93769348d1a7602ebf0089fa220d
parent2ce70ea119f9a7b4b9aeec8d59ad02cbea6023a1
efivar: fix efi_well_known_guids and efi_well_known_guids_end definitions

From github:

build command: make CROSS_COMPILE=aarch64-linux-gnu- prefix=/home/b58867/Desktop/ls1043ardb/efivar/efivar_arm64 static

compilation error:
aarch64-linux-gnu-gcc -O2 -flto -g3 -I/home/b58867/Desktop/ls1043ardb/efivar/src/include/ -specs=/home/b58867/Desktop/ls1043ardb/efivar/gcc.specs -L. -Wl,-z,muldefs -static -o efivar-static efivar.c dp.static.o dp-acpi.static.o dp-hw.static.o dp-media.static.o dp-message.static.o efivarfs.static.o error.static.o export.static.o guid.static.o guids.static.o guid-symbols.static.o lib.static.o vars.static.o -ldl
guid.c:112:24: error: type of ‘efi_well_known_guids_end’ does not match original declaration [-Werror]
extern struct guidname efi_well_known_guids_end
^
efivar.c:490:28: note: previously declared here
extern struct guidname *efi_well_known_guids_end;
^
efivar.c:489:27: error: type of ‘efi_well_known_guids’ does not match original declaration [-Werror]
extern struct guidname efi_well_known_guids[];
^
guid.c:108:24: note: previously declared here
extern struct guidname efi_well_known_guids
^
lto1: all warnings being treated as errors
lto-wrapper: fatal error: aarch64-linux-gnu-gcc returned 1 exit status

Fixes github issue #102

Signed-off-by: Peter Jones <pjones@redhat.com>
src/efivar.c