Daniel Wagner c25973
From: Daniel Wagner <dwagner@suse.de>
Daniel Wagner c25973
Date: Fri, 20 Jan 2023 13:56:30 +0100
Daniel Wagner c25973
Subject: blk: kABI: Add suse_kabi_padding to blk layer structs
Daniel Wagner c25973
Patch-mainline: Never, kABI
Daniel Wagner c25973
References: bsc#1207345
Daniel Wagner c25973
Daniel Wagner c25973
Add placeholders for future changes allowing backward compatibility.
Daniel Wagner c25973
Daniel Wagner c25973
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Daniel Wagner c25973
---
Daniel Wagner c25973
 include/linux/blk-mq.h | 4 ++++
Daniel Wagner c25973
 include/linux/blkdev.h | 4 ++++
Daniel Wagner c25973
 2 files changed, 8 insertions(+)
Daniel Wagner c25973
Daniel Wagner c25973
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
Daniel Wagner c25973
index b5b3bc5d23c7..ad9552016be1 100644
Daniel Wagner c25973
--- a/include/linux/blk-mq.h
Daniel Wagner c25973
+++ b/include/linux/blk-mq.h
Daniel Wagner c25973
@@ -419,6 +419,8 @@ struct blk_mq_hw_ctx {
Daniel Wagner c25973
 	struct dentry		*sched_debugfs_dir;
Daniel Wagner c25973
 #endif
Daniel Wagner c25973
 
Daniel Wagner c25973
+	void *suse_kabi_padding;
Daniel Wagner c25973
+
Daniel Wagner c25973
 	/**
Daniel Wagner c25973
 	 * @hctx_list: if this hctx is not in use, this is an entry in
Daniel Wagner c25973
 	 * q->unused_hctx_list.
Daniel Wagner c25973
@@ -637,6 +639,8 @@ struct blk_mq_ops {
Daniel Wagner c25973
 	 */
Daniel Wagner c25973
 	void (*show_rq)(struct seq_file *m, struct request *rq);
Daniel Wagner c25973
 #endif
Daniel Wagner c25973
+
Daniel Wagner c25973
+	void *suse_kabi_padding;
Daniel Wagner c25973
 };
Daniel Wagner c25973
 
Daniel Wagner c25973
 enum {
Daniel Wagner c25973
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
Daniel Wagner c25973
index 74d5663d5a39..b947d40c91da 100644
Daniel Wagner c25973
--- a/include/linux/blkdev.h
Daniel Wagner c25973
+++ b/include/linux/blkdev.h
Daniel Wagner c25973
@@ -169,6 +169,8 @@ struct gendisk {
Daniel Wagner c25973
 	struct badblocks *bb;
Daniel Wagner c25973
 	struct lockdep_map lockdep_map;
Daniel Wagner c25973
 	u64 diskseq;
Daniel Wagner c25973
+
Daniel Wagner c25973
+	void *suse_kabi_padding;
Daniel Wagner c25973
 };
Daniel Wagner c25973
 
Daniel Wagner c25973
 static inline bool disk_live(struct gendisk *disk)
Daniel Wagner c25973
@@ -545,6 +547,8 @@ struct request_queue {
Daniel Wagner c25973
 	 */
Daniel Wagner c25973
 	struct blk_independent_access_ranges *ia_ranges;
Daniel Wagner c25973
 
Daniel Wagner c25973
+	void *suse_kabi_padding;
Daniel Wagner c25973
+
Daniel Wagner c25973
 	/**
Daniel Wagner c25973
 	 * @srcu: Sleepable RCU. Use as lock when type of the request queue
Daniel Wagner c25973
 	 * is blocking (BLK_MQ_F_BLOCKING). Must be the last member
Daniel Wagner c25973
-- 
Daniel Wagner c25973
2.35.3
Daniel Wagner c25973