summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>2022-06-10 13:29:10 +0200
committerJanusz Krzysztofik <janusz.krzysztofik@linux.intel.com>2022-06-14 11:23:27 +0200
commit4b17146f2a0504db694eb89e19d7f9f7f5051983 (patch)
treee870bfed40dffe682c08a8de301ab5499f4d4e10
parent6220aae385a5815093e1672965093b695e32e03b (diff)
lib/intel_memory_region: Fix missing header inclusion
IGT commit 68efa99c62e2 ("i915/gem_eio: Exercise object creation while wedged") extended lib/i915/intel_memory_region.h header with a definition of new struct gem_memory_region. That structure contains a member of type struct drm_i915_gem_memory_class_instance, but definition of that type is not available unless "i915_drm.h" header is included. Include the missing header. ../lib/i915/intel_memory_region.h:118:44: error: field ‘ci’ has incomplete type 118 | struct drm_i915_gem_memory_class_instance ci; Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--lib/i915/intel_memory_region.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/i915/intel_memory_region.h b/lib/i915/intel_memory_region.h
index f9af9401..a8741724 100644
--- a/lib/i915/intel_memory_region.h
+++ b/lib/i915/intel_memory_region.h
@@ -20,6 +20,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
+#include "i915_drm.h"
#include "igt_collection.h"
#ifndef INTEL_MEMORY_REGION_H
@@ -62,8 +63,6 @@ unsigned int gem_get_lmem_region_count(int fd);
bool gem_has_lmem(int fd);
-struct drm_i915_gem_memory_class_instance;
-
int __gem_create_in_memory_region_list(int fd, uint32_t *handle, uint64_t *size,
struct drm_i915_gem_memory_class_instance *mem_regions,
int num_regions);