diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2021-07-27 22:17:00 -0700 |
---|---|---|
committer | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2021-07-29 10:35:43 -0700 |
commit | bb1c96b29234f86cd71d9cbd019aafada9097f24 (patch) | |
tree | 6ba715e51688684cee8d8637cdbef5c52eab816d /lib/igt_gt.h | |
parent | 88c457f16a7205f06bef86d48cd24520b91f57c4 (diff) |
lib/i915: Add i915_drm_local.h
It is necessary on occasion to add uapi declarations to IGT before they
appear in imported kernel uapi headers. This is typically done at present
using LOCAL declarations (or #ifndef's) which are dispersed across multiple
source and header files. Such declarations sometimes linger on in the code
for months or years till someone thinks of cleaning them up.
As opposed to this, provide a central location (in i915_drm_local.h) for
such early uapi declarations in IGT. These declarations will be added to
i915_drm_local.h exactly as they are expected to appear in the kernel uapi
headers, i.e. without the LOCAL_ or local_ prefix. They can be cleaned up
when the uapi headers are sync'd or they can live on (if they don't
conflict with the kernel headers) but at least they will be in a single
place and more visible. At least that is the hope.
Cc: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_gt.h')
-rw-r--r-- | lib/igt_gt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_gt.h b/lib/igt_gt.h index 2ea360cc..d87fae2d 100644 --- a/lib/igt_gt.h +++ b/lib/igt_gt.h @@ -28,6 +28,7 @@ #include "igt_dummyload.h" #include "igt_core.h" +#include "i915/i915_drm_local.h" #include "i915_drm.h" void igt_require_hang_ring(int fd, int ring); |