]> Git Repo - linux.git/commitdiff
drm/amdkfd: always include uapi header in priv.h
authorZhu Lingshan <[email protected]>
Mon, 29 Jul 2024 11:28:36 +0000 (19:28 +0800)
committerAlex Deucher <[email protected]>
Mon, 6 Jan 2025 19:44:29 +0000 (14:44 -0500)
The header usr/linux/kfd_ioctl.h is a duplicate of uapi/linux/kfd_ioctl.h.
And it is actually not a file in the source code tree.
Ideally, the usr version should be updated whenever the source code is recompiled.

However, I have noticed a discrepancy between the two headers
even after rebuilding the kernel.

This commit modifies kfd_priv.h to always include the header from uapi to ensure
the latest changes are reflected. We should always include the source
code header other than the duplication.

Signed-off-by: Zhu Lingshan <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h

index c32b255c0eb2d4886098d04ea878936c2c76d141..d8cd913aa772ba2b450f59122752d90bc51e17b7 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/atomic.h>
 #include <linux/workqueue.h>
 #include <linux/spinlock.h>
-#include <linux/kfd_ioctl.h>
+#include <uapi/linux/kfd_ioctl.h>
 #include <linux/idr.h>
 #include <linux/kfifo.h>
 #include <linux/seq_file.h>
This page took 0.093765 seconds and 4 git commands to generate.