Skip to content

Commit 572a5b4

Browse files
EricccTaiwanvisitorckwrota1001
committed
Always include vmalloc.h on all architectures
Commit 5309792 ("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 8c03968 commit 572a5b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

simrupt.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88
#include <linux/module.h>
99
#include <linux/slab.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
MODULE_LICENSE("Dual MIT/GPL");
1715
MODULE_AUTHOR("National Cheng Kung University, Taiwan");

0 commit comments

Comments
 (0)