]> sourceware.org Git - systemtap.git/commitdiff
Address the Linux 6.12 move of the unaligned.h include file
authorWilliam Cohen <wcohen@redhat.com>
Mon, 7 Oct 2024 15:27:10 +0000 (11:27 -0400)
committerWilliam Cohen <wcohen@redhat.com>
Mon, 7 Oct 2024 15:27:10 +0000 (11:27 -0400)
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.

runtime/sym.c

index 10225796524ea403dbadb72b7e6ae9e247ac1cbc..acae95818d743f8d1ce346f115ed1e5d2ddc629c 100644 (file)
 #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>
This page took 0.026948 seconds and 5 git commands to generate.