Skip to content

Commit b848c32

Browse files
EricccTaiwanvisitorckwrota1001
committed
Always include vmalloc.h on all architectures
Commit 5d29490 ("Only include vmalloc.h on x86") limited the inclusion of <linux/vmalloc.h> to x86 architectures under the assumption that only x86 required it explicitly. However, <linux/vmalloc.h> is not architecture-specific, and other architectures may currently include it indirectly. To ensure consistency and future compatibility, include <linux/vmalloc.h> unconditionally to prevent build failures if indirect includes change in future kernel versions. Co-authored-by: Kuan-Wei Chiu <visitorckw@gmail.com> Co-authored-by: Chisheng Chen <johnny1001s000602@gmail.com>
1 parent 6945998 commit b848c32

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
#include <linux/slab.h>
99
#include <linux/sysfs.h>
1010
#include <linux/version.h>
11-
#include <linux/workqueue.h>
12-
#if defined(CONFIG_X86)
1311
#include <linux/vmalloc.h>
14-
#endif
12+
#include <linux/workqueue.h>
1513

1614
#include "game.h"
1715
#include "mcts.h"

0 commit comments

Comments
 (0)