selftests: futex: Correctly include headers dirs
authorAndré Almeida <andrealmeid@collabora.com>
Tue, 27 Apr 2021 13:53:27 +0000 (10:53 -0300)
committerIngo Molnar <mingo@kernel.org>
Wed, 12 May 2021 18:44:58 +0000 (20:44 +0200)
commitc7d84e7ff5a651d186a6ec41361c4f07acc2fb9c
tree54c390cb28f5d54008bba4eac4dc566a823b6617
parent93d0955e6cf562d02aae37f5f8d98d9d9d16e0d4
selftests: futex: Correctly include headers dirs

When building selftests, the build system will install uapi linux
headers at usr/include in kernel source's root directory. When building
with a different output folder, the headers will be installed at
kselftests/usr/include.

Add both paths so we can build the tests using up-to-date headers.

Currently, this is uncommon to happen since it's rare to find a
build system with an outdated futex header, but it happens
when testing new futex operations.

Signed-off-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210427135328.11013-2-andrealmeid@collabora.com
tools/testing/selftests/futex/functional/Makefile