File scsi-block-remove-REQ_OP_WRITE_SAME-support-v5.18.patch of Package lttng-modules
21
1
From: Michael Jeanson <mjeanson@efficios.com>
2
Date: Mon Apr 4 14:12:13 2022 -0400
3
Git-commit: aaf6547b534309da88219031ceab0c105f5bf1e5
4
Signed-off-by: Tony Jones <tonyj@suse.de>
5
6
fix: scsi: block: Remove REQ_OP_WRITE_SAME support (v5.18)
7
8
SUSE: Adjust this commit to reflect SLE15-SP5 backport
9
10
--- a/include/instrumentation/events/block.h
11
+++ b/include/instrumentation/events/block.h
12
13
#define lttng_bio_op(bio) bio_op(bio)
14
#define lttng_bio_rw(bio) ((bio)->bi_opf)
15
16
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0))
17
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,18,0) || defined(CONFIG_SUSE_KERNEL))
18
#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
19
#define blk_rwbs_ctf_integer(type, rwbs, op, rw, bytes) \
20
ctf_enum(block_rq_type, type, rwbs, \
21