Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: always include uapi header in priv.h

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 <lingshan.zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Zhu Lingshan and committed by
Alex Deucher
c901693f 2b11179e

+1 -1
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
··· 32 32 #include <linux/atomic.h> 33 33 #include <linux/workqueue.h> 34 34 #include <linux/spinlock.h> 35 - #include <linux/kfd_ioctl.h> 35 + #include <uapi/linux/kfd_ioctl.h> 36 36 #include <linux/idr.h> 37 37 #include <linux/kfifo.h> 38 38 #include <linux/seq_file.h>