From 822a5290c8703cf49f959e1a265aca05adf1ef77 Mon Sep 17 00:00:00 2001 From: Xiongfeng Wang Date: Wed, 5 Feb 2020 12:30:44 +0800 Subject: [PATCH] PCI: fix kabi change in struct pci_bus hulk inclusion category: bugfix bugzilla: NA CVE: NA --------------------------- Fix kabi change in struct pci_bus since the following patch. 12de28f380a9 ("PCI: add a member in 'struct pci_bus' to record the original 'pci_ops'") Signed-off-by: Xiongfeng Wang Reviewed-by: Hanjun Guo Signed-off-by: Yang Yingliang --- include/linux/pci.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index c97de5c8bc35..eb85ed6837b2 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -584,7 +584,6 @@ struct pci_bus { struct resource busn_res; /* Bus numbers routed to this bus */ struct pci_ops *ops; /* Configuration access functions */ - struct pci_ops *backup_ops; struct msi_controller *msi; /* MSI controller */ void *sysdata; /* Hook for sys-specific extension */ struct proc_dir_entry *procdir; /* Directory entry in /proc/bus/pci */ @@ -606,8 +605,11 @@ struct pci_bus { struct bin_attribute *legacy_io; /* Legacy I/O for this bus */ struct bin_attribute *legacy_mem; /* Legacy mem */ unsigned int is_added:1; - +#ifndef __GENKSYMS__ + struct pci_ops *backup_ops; +#else KABI_RESERVE(1) +#endif KABI_RESERVE(2) KABI_RESERVE(3) KABI_RESERVE(4) -- GitLab