From 5d2e8ad3812642bfbe7eb3df7117590b9b20450a Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Wed, 18 Mar 2020 14:34:56 +0100
Subject: [PATCH] kABI: more hooks for PCI changes
Patch-mainline: never, kABI guards
References: bsc#1141558
This bug may do extensive surgery in the future, adding maximum hooks
Signed-off-by: Oliver Neukum <oneukum@suse.de>
---
drivers/pci/hotplug/pciehp.h | 2 ++
include/linux/pci.h | 11 +++++++++++
2 files changed, 13 insertions(+)
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -112,6 +112,8 @@ struct controller {
unsigned int ist_running;
int request_result;
wait_queue_head_t requester;
+
+ void* suse_kabi_padding;
};
/**
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -78,6 +78,8 @@ struct pci_slot {
struct hotplug_slot *hotplug; /* Hotplug info (move here) */
unsigned char number; /* PCI_SLOT(pci_dev->devfn) */
struct kobject kobj;
+
+ void* suse_kabi_padding;
};
static inline const char *pci_slot_name(const struct pci_slot *slot)
@@ -507,6 +509,8 @@ struct pci_dev {
size_t romlen; /* Length if not from BAR */
char *driver_override; /* Driver name to force a match */
+ void* suse_kabi_padding;
+
unsigned long priv_flags; /* Private flags for the PCI driver */
/* These methods index pci_reset_fn_methods[] */
@@ -568,6 +572,8 @@ struct pci_host_bridge {
unsigned int size_windows:1; /* Enable root bus sizing */
unsigned int msi_domain:1; /* Bridge wants MSI domain */
+ void* suse_kabi_padding;
+
/* Resource alignment requirements */
resource_size_t (*align_resource)(struct pci_dev *dev,
const struct resource *res,
@@ -658,6 +664,8 @@ 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 */
+
+ void* suse_kabi_padding;
};
#define to_pci_bus(n) container_of(n, struct pci_bus, dev)
@@ -907,6 +915,9 @@ struct pci_driver {
const struct pci_error_handlers *err_handler;
const struct attribute_group **groups;
const struct attribute_group **dev_groups;
+
+ void* suse_kabi_padding;
+
struct device_driver driver;
struct pci_dynids dynids;
bool driver_managed_dma;