From 6382cedf5fe73a9ff2e0cb66707fe38cece28aa3 Mon Sep 17 00:00:00 2001
From: Oliver Neukum <oneukum@suse.com>
Date: Thu, 26 Nov 2020 10:20:27 +0100
Subject: [PATCH] fpga: add kABI padding
Patch-mainline: Never (kABI padding)
References: jsc#SLE-13441
This adds spare elements to structures connected to the fpga
subsystem. This aids future backports for bug fixes and ECOs.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
include/linux/fpga/fpga-bridge.h | 4 ++++
include/linux/fpga/fpga-mgr.h | 6 ++++++
include/linux/fpga/fpga-region.h | 2 ++
3 files changed, 12 insertions(+)
diff --git a/include/linux/fpga/fpga-bridge.h b/include/linux/fpga/fpga-bridge.h
index 817600a32..6e6538256 100644
--- a/include/linux/fpga/fpga-bridge.h
+++ b/include/linux/fpga/fpga-bridge.h
@@ -20,6 +20,8 @@ struct fpga_bridge_ops {
int (*enable_set)(struct fpga_bridge *bridge, bool enable);
void (*fpga_bridge_remove)(struct fpga_bridge *bridge);
const struct attribute_group **groups;
+
+ void *suse_kabi_padding;
};
/**
@@ -40,6 +42,8 @@ struct fpga_bridge {
struct fpga_image_info *info;
struct list_head node;
void *priv;
+
+ void *suse_kabi_padding;
};
#define to_fpga_bridge(d) container_of(d, struct fpga_bridge, dev)
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h
index e8ca62b2c..6a251ab44 100644
--- a/include/linux/fpga/fpga-mgr.h
+++ b/include/linux/fpga/fpga-mgr.h
@@ -103,6 +103,8 @@ struct fpga_image_info {
#ifdef CONFIG_OF
struct device_node *overlay;
#endif
+
+ void *suse_kabi_padding;
};
/**
@@ -134,6 +136,8 @@ struct fpga_manager_ops {
struct fpga_image_info *info);
void (*fpga_remove)(struct fpga_manager *mgr);
const struct attribute_group **groups;
+
+ void *suse_kabi_padding;
};
/* FPGA manager status: Partial/Full Reconfiguration errors */
@@ -172,6 +176,8 @@ struct fpga_manager {
struct fpga_compat_id *compat_id;
const struct fpga_manager_ops *mops;
void *priv;
+
+ void *suse_kabi_padding;
};
#define to_fpga_manager(d) container_of(d, struct fpga_manager, dev)
diff --git a/include/linux/fpga/fpga-region.h b/include/linux/fpga/fpga-region.h
index 27cb70627..dcfd36b87 100644
--- a/include/linux/fpga/fpga-region.h
+++ b/include/linux/fpga/fpga-region.h
@@ -27,6 +27,8 @@ struct fpga_region {
struct fpga_compat_id *compat_id;
void *priv;
int (*get_bridges)(struct fpga_region *region);
+
+ void *suse_kabi_padding;
};
#define to_fpga_region(d) container_of(d, struct fpga_region, dev)
--
2.26.2