]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/arm64: mte: Makefile: Fix clang compilation
authorAndre Przywara <andre.przywara@arm.com>
Fri, 19 Mar 2021 16:53:32 +0000 (16:53 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 24 Mar 2021 15:43:20 +0000 (15:43 +0000)
commit0e10cdf686aa0396c9d9315fb4642fa245dd5fdc
treead200f5f91fd82ea3e62cb0e310e711619680944
parenta99510f23b3b8ae620c713cc658e7f0dca9b0565
kselftest/arm64: mte: Makefile: Fix clang compilation

When clang finds a header file on the command line, it wants to
precompile that, which would end up in a separate output file.
Specifying -o on that same command line collides with that effort, so
the compiler complains:

clang: error: cannot specify -o when generating multiple output files

Since we are not really after a precompiled header, just drop the header
file from the command line, by removing it from the list of source
files in the Makefile.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Mark Brown <broone@kernel.org>
Link: https://lore.kernel.org/r/20210319165334.29213-10-andre.przywara@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
tools/testing/selftests/arm64/mte/Makefile