Skip to content

Commit 5309792

Browse files
Include <linux/vmalloc.h> explicitly on x86
Commit 1f059dfdf5d1 ("mm/vmalloc: Add empty <asm/vmalloc.h> headers and use them from <linux/vmalloc.h>") restructured kernel header dependencies since kernel v5.6-rc1, necessitating explicit inclusion of <linux/vmalloc.h> on x86 architectures. This ensures compatibility across kernel versions and prevents build errors due to implicit declarations on kernels since v5.6-rc1. Tested-by: Chisheng Chen <johnny1001s000602@gmail.com> Co-authored-by: Po-Ying Chiu <charlie910417@gmail.com>
1 parent ca28bbc commit 5309792

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

scripts/aspell-pws

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,4 @@ kfifo
177177
PTR
178178
ttt
179179
tictactoe
180+
vmalloc

simrupt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#include <linux/slab.h>
1010
#include <linux/version.h>
1111
#include <linux/workqueue.h>
12+
#if defined(CONFIG_X86)
13+
#include <linux/vmalloc.h>
14+
#endif
1215

1316
MODULE_LICENSE("Dual MIT/GPL");
1417
MODULE_AUTHOR("National Cheng Kung University, Taiwan");

0 commit comments

Comments
 (0)