Re: [PATCH v2] x86/pgtable: Always inline p4d_index

2019-01-16 Thread Nathan Chancellor
On Wed, Jan 16, 2019 at 10:54:25PM +0100, Thomas Gleixner wrote: > On Wed, 16 Jan 2019, Nathan Chancellor wrote: > > > When building an allyesconfig build with Clang, the kernel fails to link > > arch/x86/platform/efi/efi_64.o because of a failed BUILD_BUG_ON: > > > > ld: arch/x86/platform/efi/ef

Re: [PATCH v2] x86/pgtable: Always inline p4d_index

2019-01-16 Thread Thomas Gleixner
On Wed, 16 Jan 2019, Nathan Chancellor wrote: > When building an allyesconfig build with Clang, the kernel fails to link > arch/x86/platform/efi/efi_64.o because of a failed BUILD_BUG_ON: > > ld: arch/x86/platform/efi/efi_64.o: in function > `efi_sync_low_kernel_mappings': > (.text+0x8e5): undef

Re: [PATCH v2] x86/pgtable: Always inline p4d_index

2019-01-16 Thread Randy Dunlap
On 1/16/19 5:41 AM, Nathan Chancellor wrote: > When building an allyesconfig build with Clang, the kernel fails to link > arch/x86/platform/efi/efi_64.o because of a failed BUILD_BUG_ON: > > ld: arch/x86/platform/efi/efi_64.o: in function > `efi_sync_low_kernel_mappings': > (.text+0x8e5): undefin

[PATCH v2] x86/pgtable: Always inline p4d_index

2019-01-16 Thread Nathan Chancellor
When building an allyesconfig build with Clang, the kernel fails to link arch/x86/platform/efi/efi_64.o because of a failed BUILD_BUG_ON: ld: arch/x86/platform/efi/efi_64.o: in function `efi_sync_low_kernel_mappings': (.text+0x8e5): undefined reference to `__compiletime_assert_277' Since there ar