Commit: bf6d418
GitHub URL: https://github.com/SCST-project/scst/commit/bf6d41800efe9e13a4919575afe9986d15fc7784
Author: Gleb Chesnokov
Date: 2024-02-16T13:52:34+03:00
Log Message:
-----------
qla2x00t-32gbit: Port to Linux kernel v6.8
Support for the following tracing layer changes in the Linux kernel v6.8:
- d23569979ca1 ("tracing: Allow creating instances with specified system
events")
Modified Paths:
--------------
qla2x00t-32gbit/qla_os.c | 4 ++++
1 file changed, 4 insertions(+)
===================================================================
diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c
index 56a2e71..52e8018 100644
--- a/qla2x00t-32gbit/qla_os.c
+++ b/qla2x00t-32gbit/qla_os.c
@@ -2939,7 +2939,11 @@ static void qla2x00_iocb_work_fn(struct work_struct *work)
static void
qla_trace_init(void)
{
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0)
qla_trc_array = trace_array_get_by_name("qla2xxx");
+#else
+ qla_trc_array = trace_array_get_by_name("qla2xxx", NULL);
+#endif
if (!qla_trc_array) {
ql_log(ql_log_fatal, NULL, 0x0001,
"Unable to create qla2xxx trace instance, instance logging will be disabled.\n");
|