From: Zhu Lingshan Date: Mon, 29 Jul 2024 11:28:36 +0000 (+0800) Subject: drm/amdkfd: always include uapi header in priv.h X-Git-Tag: v6.14-rc1~174^2~2^2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c901693f368f99a858bd410576427adc6a518612;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index c32b255c0eb2d..d8cd913aa772b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include