File: move-unaligned.patch

package info (click to toggle)
systemtap 5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,964 kB
  • sloc: cpp: 80,838; ansic: 54,757; xml: 49,725; exp: 43,665; sh: 11,527; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (26 lines) | stat: -rw-r--r-- 786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
commit c5774e18b7241cc484ef9d5e17214651b9b9d439
Author: William Cohen <wcohen@redhat.com>
Date:   Mon Oct 7 11:27:10 2024 -0400

    Address the Linux 6.12 move of the unaligned.h include file
    
    The Linux git commit 5f60d5f6bb moved unaligned.h from asm/unaligned.h
    to linux/unaligned.h.  Adjusted runtime/sym.c to include the
    unaligned.h from the appropriate location.

diff --git a/runtime/sym.c b/runtime/sym.c
index 102257965..acae95818 100644
--- a/runtime/sym.c
+++ b/runtime/sym.c
@@ -18,7 +18,11 @@
 #ifdef STP_NEED_LINE_DATA
 #include "unwind/unwind.h"
 #endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0)
+#include <linux/unaligned.h>
+#else
 #include <asm/unaligned.h>
+#endif
 #include <asm/uaccess.h>
 #include <linux/list.h>
 #include <linux/module.h>