Commit fd8d76a3 authored by Wang Wensheng's avatar Wang Wensheng
Browse files

drm/ttm: Add kabi reserve in ttm_bo.h

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



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

Reserve space for ttm_buffer_object and ttm_operation_ctx in ttm_bo.h

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

#include <linux/kref.h>
#include <linux/list.h>
#include <linux/kabi.h>

#include "ttm_device.h"

@@ -133,6 +134,10 @@ struct ttm_buffer_object {
	 * either of these locks held.
	 */
	struct sg_table *sg;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

/**
@@ -183,6 +188,8 @@ struct ttm_operation_ctx {
	bool force_alloc;
	struct dma_resv *resv;
	uint64_t bytes_moved;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/**