Skip to content

Conversation

@EricccTaiwan
Copy link
Contributor

@EricccTaiwan EricccTaiwan commented Mar 31, 2025

Commit 5309792 ("Only include vmalloc.h on x86", #6 ) attempted to limit the inclusion of <linux/vmalloc.h> to x86 architectures, based on the assumption that only x86 requires it explicitly.

However, this header is not architecture-specific, and other architectures may include it indirectly. For consistency and future proofing, it's safer to include <linux/vmalloc.h> unconditionally, avoiding any potential build issues if indirect dependencies change.

Copy link
Contributor

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't check in unrelated files.

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>
@jserv jserv merged commit 4008b10 into sysprog21:main Mar 31, 2025
@jserv
Copy link
Contributor

jserv commented Mar 31, 2025

Thank @EricccTaiwan for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants