File fix-btrfs_chunk-tracepoints-changed-in-linux-6.8.0-rc1.patch of Package lttng-modules

From: Kienan Stewart <kstewart@efficios.com>
Date: Mon Jan 22 12:17:33 2024 -0500
Subject: Fix: btrfs_chunk tracepoints changed in linux 6.8.0-rc1
References: bsc#1229151
Git-commit: 8d19592744d1bbdb9ff58c52ed142008ca1fe145
Signed-off-by: Tony Jones <tonyj@suse.de>

Enable (via CONFIG_SUSE_KERNEL) the changes for upstream 8d19592744d1bbdb9ff58c52ed142008ca1fe145

diff --git a/include/instrumentation/events/btrfs.h b/include/instrumentation/events/btrfs.h
index 7c7b9b0c..a2a412b1 100644
--- a/include/instrumentation/events/btrfs.h
+++ b/include/instrumentation/events/btrfs.h
@@ -1742,7 +1742,7 @@
 )
 #endif
 
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,8,0) || defined(CONFIG_SUSE_KERNEL))
 
 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__chunk,
 
openSUSE Build Service is sponsored by