From b4679db71a8fa41c637530bdfabbf807239f27e3 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Fri, 23 Feb 2024 13:18:13 -0500 Subject: Remove import of kcmp --- src/extract_gpuinfo_amdgpu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/extract_gpuinfo_amdgpu.c b/src/extract_gpuinfo_amdgpu.c index 93095b9..e166cc9 100644 --- a/src/extract_gpuinfo_amdgpu.c +++ b/src/extract_gpuinfo_amdgpu.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include @@ -814,9 +813,6 @@ static bool parse_drm_fdinfo_amd(struct gpu_info *info, FILE *fdinfo_file, struc // Client id is a unique identifier. From the DRM documentation "Unique value relating to the open DRM // file descriptor used to distinguish duplicated and shared file descriptors. Conceptually the value should map // 1:1 to the in kernel representation of struct drm_file instances." - // This information is available for the AMDGPU driver shipping with - // the kernel >= 5.19. We still have to use the kcmp syscall to - // distinguish duplicated file descriptors for older kernels. char *endptr; cid = strtoul(val, &endptr, 10); if (*endptr) -- cgit v1.2.3