summaryrefslogtreecommitdiff
path: root/drivers/hwmon/max31722.c
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2021-03-26 03:04:35 +0300
committerBorislav Petkov <bp@suse.de>2021-03-26 13:34:58 +0300
commit58d746c119dfa28e72fc35aacaf3d2a3ac625cd0 (patch)
treec871bff71ce4f2f02d03d6cf1ef4e4f1ddb7ef7f /drivers/hwmon/max31722.c
parentd5cbd80e302dfea59726c44c56ab7957f822409f (diff)
downloadlinux-58d746c119dfa28e72fc35aacaf3d2a3ac625cd0.tar.xz
efi/libstub: Add $(CLANG_FLAGS) to x86 flags
When cross compiling x86 on an ARM machine with clang, there are several errors along the lines of: arch/x86/include/asm/page_64.h:52:7: error: invalid output constraint '=D' in asm This happens because the x86 flags in the EFI stub are not derived from KBUILD_CFLAGS like the other architectures are and the clang flags that set the target architecture ('--target=') and the path to the GNU cross tools ('--prefix=') are not present, meaning that the host architecture is targeted. These flags are available as $(CLANG_FLAGS) from the main Makefile so add them to the cflags for x86 so that cross compiling works as expected. Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de> Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lkml.kernel.org/r/20210326000435.4785-4-nathan@kernel.org
Diffstat (limited to 'drivers/hwmon/max31722.c')
0 files changed, 0 insertions, 0 deletions