diff options
author | Palmer Dabbelt <palmer@sifive.com> | 2018-07-04 14:07:14 -0700 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2018-08-13 08:31:28 -0700 |
commit | 4938c79bd0f5f3650c8c2cd4cdc972f0a6962ce4 (patch) | |
tree | 198e34af316772b42f6b22aed4f0da56dbb7de5f /include/linux/io.h | |
parent | 94710cac0ef4ee177a63b5227664b38c95bbf703 (diff) | |
download | linux-stable-4938c79bd0f5f3650c8c2cd4cdc972f0a6962ce4.tar.gz linux-stable-4938c79bd0f5f3650c8c2cd4cdc972f0a6962ce4.tar.bz2 linux-stable-4938c79bd0f5f3650c8c2cd4cdc972f0a6962ce4.zip |
RISC-V: Use KBUILD_CFLAGS instead of KCFLAGS when building the vDSO
If you use a 64-bit compiler to build a 32-bit kernel then you'll get an
error when building the vDSO due to a library mismatch. The happens
because the relevant "-march" argument isn't supplied to the GCC run
that generates one of the vDSO intermediate files.
I'm not actually sure what the right thing to do here is as I'm not
particularly familiar with the kernel build system. I poked the
documentation and it appears that KCFLAGS is the correct thing to do
(it's suggested that should be used when building modules), but we set
KBUILD_CFLAGS in arch/riscv/Makefile.
This does at least fix the build error.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'include/linux/io.h')
0 files changed, 0 insertions, 0 deletions