Skip to content

Commit a5c357e

Browse files
authored
kernel: Fix building sulog on kernel 6.1 & x86_64 (#3401)
untagged_addr used to be a marco on mm.h for x86
1 parent 0e4dafc commit a5c357e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

kernel/sulog/event.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
#include <linux/string.h>
1010
#include <linux/uaccess.h>
1111

12+
#include <linux/version.h>
13+
#if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
14+
#include <linux/mm.h>
15+
#endif
16+
1217
#include "feature/sulog.h"
1318
#include "infra/event_queue.h"
1419
#include "klog.h" // IWYU pragma: keep

0 commit comments

Comments
 (0)