amdgpu: use local kernel headers instead of libdrm

Use local copies of amdgpu and DRM headers for consistency.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov 2025-11-04 14:41:52 +00:00 committed by Andrei Vagin
parent 29525f8cb3
commit 1db7eed69f
3 changed files with 7 additions and 2 deletions

View file

@ -20,7 +20,6 @@
#include <xf86drm.h>
#include <libdrm/amdgpu.h>
#include <libdrm/amdgpu_drm.h>
#include "criu-plugin.h"
#include "plugin.h"
@ -38,6 +37,7 @@
#include "rst-malloc.h"
#include "common/list.h"
#include "amdgpu_drm.h"
#include "amdgpu_plugin_dmabuf.h"
#include "amdgpu_plugin_drm.h"
#include "amdgpu_plugin_util.h"

View file

@ -23,6 +23,8 @@
#include "fdstore.h"
#include "criu-amdgpu.pb-c.h"
/* Define __user as empty for kernel headers in user-space */
#define __user
#include "drm.h"

View file

@ -23,9 +23,12 @@
#ifndef KFD_IOCTL_H_INCLUDED
#define KFD_IOCTL_H_INCLUDED
#include <libdrm/drm.h>
#include <linux/ioctl.h>
/* Define __user as empty for kernel headers in user-space */
#define __user
#include "drm.h"
/*
* - 1.1 - initial version
* - 1.3 - Add SMI events support