drm/xe/display: Add i915_active.h compatibility header
authorJouni Högander <jouni.hogander@intel.com>
Tue, 12 Sep 2023 06:47:05 +0000 (09:47 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:44:31 +0000 (11:44 -0500)
Add empty definitions for i915_active_init/fini to kill ifdefs from
frontbuffer tracking code.

Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/compat-i915-headers/i915_active.h [new file with mode: 0644]

diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_active.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_active.h
new file mode 100644 (file)
index 0000000..6f0ab37
--- /dev/null
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2022 Intel Corporation
+ */
+
+#ifndef _I915_ACTIVE_H_
+#define _I915_ACTIVE_H_
+
+#include "i915_active_types.h"
+
+static inline void i915_active_init(struct i915_active *ref,
+                                   int (*active)(struct i915_active *ref),
+                                   void (*retire)(struct i915_active *ref),
+                                   unsigned long flags)
+{
+       (void) active;
+       (void) retire;
+}
+
+#define i915_active_fini(active) do { } while (0)
+
+#endif