Commit 9693c908 authored by Wang Wensheng's avatar Wang Wensheng
Browse files

drm: Add kabi reserve in drm_plane.h

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9244H



---------------------------

Reserve space for drm_plane and drm_plane_state in drm_plane.h.

Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
parent f2b04e5b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@

#include <linux/list.h>
#include <linux/ctype.h>
#include <linux/kabi.h>
#include <drm/drm_mode_object.h>
#include <drm/drm_color_mgmt.h>
#include <drm/drm_rect.h>
@@ -237,6 +238,10 @@ struct drm_plane_state {

	/** @state: backpointer to global drm_atomic_state */
	struct drm_atomic_state *state;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

static inline struct drm_rect
@@ -748,6 +753,10 @@ struct drm_plane {
	 * scaling.
	 */
	struct drm_property *scaling_filter_property;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

#define obj_to_plane(x) container_of(x, struct drm_plane, base)