From 6432d8c90b4fb66c6e09c847927fb7a57e6fa0bf Mon Sep 17 00:00:00 2001 From: Yang Yingliang Date: Mon, 24 Feb 2020 21:23:43 +0800 Subject: [PATCH] Revert "PCI: fix kabi change in struct pci_bus" hulk inclusion category: bugfix bugzilla: 30939 CVE: NA --------------------------- The kabi can be broken before official release. This reverts commit 8664b79edac95322379eee025763ba0840d458d1. Signed-off-by: Yang Yingliang Reviewed-By: Xie XiuQi Signed-off-by: Yang Yingliang --- include/linux/pci.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/pci.h b/include/linux/pci.h index eb85ed6837b2..c97de5c8bc35 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -584,6 +584,7 @@ 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 */ @@ -605,11 +606,8 @@ 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