]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdkfd: always include uapi header in priv.h
authorZhu Lingshan <lingshan.zhu@amd.com>
Mon, 29 Jul 2024 11:28:36 +0000 (19:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jan 2025 19:44:29 +0000 (14:44 -0500)
commitc901693f368f99a858bd410576427adc6a518612
tree1a0eb997bbc5bb9cd17fe6e35577538fd31931a5
parent2b11179e1878fafcc5c63de726d1b6b8b281e8e9
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>
drivers/gpu/drm/amd/amdkfd/kfd_priv.h