Skip to content

Commit 5d29490

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 explicitly includes <linux/vmalloc.h> on x86, preventing build errors caused by implicit declarations in kernels since v5.6-rc1. Co-authored-by: Cheng-Yang Chou <yphbchou0911@gmail.com> Close #1
1 parent 63980d4 commit 5d29490

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

main.c

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#include <linux/sysfs.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
#include "game.h"
1417
#include "mcts.h"

scripts/aspell-pws

+1
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,4 @@ kfifo
177177
PTR
178178
ttt
179179
tictactoe
180+
vmalloc

0 commit comments

Comments
 (0)