Hello,
This error started happening for me with the 3.0.4 patches starting on the 17th
arch/x86/platform/efi/efi_32.c: In function 'efi_call_phys_prelog':
arch/x86/platform/efi/efi_32.c:64:2: error: 'GDT_ENTRY_EFI_CS' undeclared (first use in this function)
arch/x86/platform/efi/efi_32.c:64:2: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/platform/efi/efi_32.c:66:2: error: 'GDT_ENTRY_EFI_DS' undeclared (first use in this function)
arch/x86/platform/efi/efi_32.c: In function 'efi_call_phys_epilog':
arch/x86/platform/efi/efi_32.c:82:2: error: 'GDT_ENTRY_EFI_CS' undeclared (first use in this function)
arch/x86/platform/efi/efi_32.c:83:2: error: 'GDT_ENTRY_EFI_DS' undeclared (first use in this function)
make[3]: *** [arch/x86/platform/efi/efi_32.o] Error 1
AS arch/x86/platform/efi/efi_stub_32.o
make[3]: Target `__build' not remade because of errors.
make[2]: *** [arch/x86/platform/efi] Error 2