summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Schmitt <Syllo@users.noreply.github.com>2024-02-26 17:31:43 +0100
committerGitHub <noreply@github.com>2024-02-26 17:31:43 +0100
commitf61ee5019c35474eb1dd6bae72babb330c4b5f79 (patch)
tree64d4115266422b9eaa45116157a40ef40424d1d9
parentfb9ef11db110928eb0ff377050efb5b4980e59f6 (diff)
parentb4679db71a8fa41c637530bdfabbf807239f27e3 (diff)
Merge pull request #272 from hmaarrfk/patch-2
Remove import of kcmp
-rw-r--r--src/extract_gpuinfo_amdgpu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/extract_gpuinfo_amdgpu.c b/src/extract_gpuinfo_amdgpu.c
index 200ba58..39b20b9 100644
--- a/src/extract_gpuinfo_amdgpu.c
+++ b/src/extract_gpuinfo_amdgpu.c
@@ -37,7 +37,6 @@
#include <inttypes.h>
#include <libdrm/amdgpu.h>
#include <libdrm/amdgpu_drm.h>
-#include <linux/kcmp.h>
#include <math.h>
#include <stdarg.h>
#include <stdbool.h>
@@ -824,9 +823,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)