Commit 515eb767 authored by Wang Wensheng's avatar Wang Wensheng
Browse files

drm/ttm: Add kabi reserve in ttm_resource.h

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



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

Reserve space for ttm_resource_manager_func, ttm_resource_manager,
ttm_bus_placement and ttm_resource in ttm_resource.h

Signed-off-by: default avatarWang Wensheng <wangwensheng4@huawei.com>
parent fd8d76a3
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@
#include <linux/mutex.h>
#include <linux/iosys-map.h>
#include <linux/dma-fence.h>
#include <linux/kabi.h>

#include <drm/drm_print.h>
#include <drm/ttm/ttm_caching.h>
@@ -132,6 +133,10 @@ struct ttm_resource_manager_func {
	 */
	void (*debug)(struct ttm_resource_manager *man,
		      struct drm_printer *printer);
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

/**
@@ -174,6 +179,8 @@ struct ttm_resource_manager {
	 * bdev->lru_lock.
	 */
	uint64_t usage;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/**
@@ -191,6 +198,8 @@ struct ttm_bus_placement {
	phys_addr_t		offset;
	bool			is_iomem;
	enum ttm_caching	caching;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/**
@@ -218,6 +227,10 @@ struct ttm_resource {
	 * @lru: Least recently used list, see &ttm_resource_manager.lru
	 */
	struct list_head lru;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

/**