kselftests: hid: fix missing headers_install step
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 6 Dec 2022 14:59:36 +0000 (15:59 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Sat, 10 Dec 2022 09:41:42 +0000 (10:41 +0100)
commite9d48abbce93e2138e37a695ba5931f3d3c9fdd9
tree0dc49110c788331669b4e7e0e210e3d2309f6198
parentd0b93a0d2b00a719d6c761bab5bbe72f41a81a30
kselftests: hid: fix missing headers_install step

The Makefile was assuming that headers_install was already done in
the top source directory, and was searching for installed uapi headers
there.
Unfortunately this is not the case and we need to manually call that step.

To do so, reorder the declaration of the variables, and reuses top_srcdir
provided by lib.mk

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202212060216.a6X8Py5H-lkp@intel.com/#t
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Jiri Kosina <jkosina@suse.cz>
Link: https://lore.kernel.org/r/20221206145936.922196-6-benjamin.tissoires@redhat.com
tools/testing/selftests/hid/Makefile