]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dmaengine: idxd: Allow registers.h to be included from tools/
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:08 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:08 +0000 (12:14 -0600)
commit003e6faf2c8ff1670c35622f11ff6211be563a9e
tree95c7efc433326c937693a171f12ffddaf203c0a3
parent3fe305773bbeb2d946b9fb3c1224c8b00d6755ef
dmaengine: idxd: Allow registers.h to be included from tools/

Allow drivers/dma/idxd/registers.h to be included from userspace in
tools/ by adjusting the include path to uapi/linux/idxd.h if __KERNEL__
is not defined.

A subsequent commit will use registers.h to implement a userspace driver
for Intel DSA devices in tools/testing/selftests/vfio.

Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-22-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/dma/idxd/registers.h