diff options
author | Jouni Högander <[email protected]> | 2023-09-12 09:47:05 +0300 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:44:31 -0500 |
commit | 0071f1713dab8656e6c939d7be980f2ad3e8d312 (patch) | |
tree | 22523ebde5179cbbf3f1b09dc579b06c1ebe8e7b | |
parent | cd494efdb8433f4a78f9bedb3e67d7505690f141 (diff) |
drm/xe/display: Add i915_active.h compatibility header
Add empty definitions for i915_active_init/fini to kill ifdefs from
frontbuffer tracking code.
Signed-off-by: Jouni Högander <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/compat-i915-headers/i915_active.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 index 000000000000..6f0ab3753563 --- /dev/null +++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_active.h @@ -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 |