Unverified Commit 98109e29 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4423 kabi: reserve space for pci subsystem and thread_info

Merge Pull Request from: @ci-robot 
 
PR sync from: Jialin Zhang <zhangjialin11@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/YTBRTPDOCCCDFO6IO3TP5LXGG3LYN7D3/ 
Reserve space for pci subsystem and thread_info

Jialin Zhang (1):
  kabi: reserve space for thread_info structure

Tan Xiaojun (1):
  kabi: reserve space for pci subsystem related structure


-- 
2.25.1
 
https://gitee.com/openeuler/kernel/issues/I90MT2
https://gitee.com/openeuler/kernel/issues/I90MTG 
 
Link:https://gitee.com/openeuler/kernel/pulls/4423

 

Reviewed-by: default avatarJason Zeng <jason.zeng@intel.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Reviewed-by: default avatarZhang Jianhua <chris.zjh@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parents 46e918f5 3ee68ad7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ struct task_struct;
#include <asm/memory.h>
#include <asm/stack_pointer.h>
#include <asm/types.h>
#include <linux/kabi.h>

/*
 * low level task data that entry.S needs immediate access to.
@@ -46,6 +47,9 @@ struct thread_info {
	u64			mpam_partid_pmg;
#endif
	u32			cpu;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

#define thread_saved_pc(tsk)	\
+4 −0
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
#include <asm/page.h>
#include <asm/percpu.h>
#include <asm/types.h>
#include <linux/kabi.h>

/*
 * TOP_OF_KERNEL_STACK_PADDING is a number of unused bytes that we
@@ -60,6 +61,9 @@ struct thread_info {
#ifdef CONFIG_SMP
	u32			cpu;		/* current CPU */
#endif

	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

#define INIT_THREAD_INFO(tsk)			\
+9 −0
Original line number Diff line number Diff line
@@ -310,6 +310,15 @@ struct pci_sriov {
	u16		subsystem_device; /* VF subsystem device */
	resource_size_t	barsz[PCI_SRIOV_NUM_BARS];	/* VF BAR size */
	bool		drivers_autoprobe; /* Auto probing of VFs by driver */

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
	KABI_RESERVE(8)
};

#ifdef CONFIG_PCI_DOE
+34 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
#include <linux/args.h>
#include <linux/mod_devicetable.h>

#include <linux/kabi.h>
#include <linux/types.h>
#include <linux/init.h>
#include <linux/ioport.h>
@@ -536,6 +537,22 @@ struct pci_dev {
	 */
	unsigned long   slot_being_removed_rescanned;
	struct pci_dev  *rpdev; /* root port pci_dev */

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
	KABI_RESERVE(8)
	KABI_RESERVE(9)
	KABI_RESERVE(10)
	KABI_RESERVE(11)
	KABI_RESERVE(12)
	KABI_RESERVE(13)
	KABI_RESERVE(14)
	KABI_RESERVE(15)
};

static inline struct pci_dev *pci_physfn(struct pci_dev *dev)
@@ -686,6 +703,14 @@ struct pci_bus {
	struct bin_attribute	*legacy_mem;	/* Legacy mem */
	unsigned int		is_added:1;
	unsigned int		unsafe_warn:1;	/* warned about RW1C config write */

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
};

#define to_pci_bus(n)	container_of(n, struct pci_bus, dev)
@@ -941,6 +966,15 @@ struct pci_driver {
	struct device_driver	driver;
	struct pci_dynids	dynids;
	bool driver_managed_dma;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
	KABI_RESERVE(8)
};

static inline struct pci_driver *to_pci_driver(struct device_driver *drv)
+18 −0
Original line number Diff line number Diff line
@@ -45,6 +45,15 @@ struct hotplug_slot_ops {
	int (*get_latch_status)		(struct hotplug_slot *slot, u8 *value);
	int (*get_adapter_status)	(struct hotplug_slot *slot, u8 *value);
	int (*reset_slot)		(struct hotplug_slot *slot, bool probe);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
	KABI_RESERVE(8)
};

/**
@@ -63,6 +72,15 @@ struct hotplug_slot {
	struct pci_slot			*pci_slot;
	struct module			*owner;
	const char			*mod_name;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
	KABI_RESERVE(5)
	KABI_RESERVE(6)
	KABI_RESERVE(7)
	KABI_RESERVE(8)
};

static inline const char *hotplug_slot_name(const struct hotplug_slot *slot)