Skip to content

Avoid passing __GFP_HIGHMEM on newer kernels#1746

Merged
robertbaldyga merged 1 commit intoOpen-CAS:masterfrom
robertbaldyga:vmalloc-highmem-fix
Apr 7, 2026
Merged

Avoid passing __GFP_HIGHMEM on newer kernels#1746
robertbaldyga merged 1 commit intoOpen-CAS:masterfrom
robertbaldyga:vmalloc-highmem-fix

Conversation

@robertbaldyga
Copy link
Copy Markdown
Member

Since 5.18 vmalloc automatically allocates from highmem when possible, therefore this flag is not necessary and on newer kernels there is a warning generated if caller passes __GFP_HIGHMEM.

Since kernels older than 5.18 still need it, simply mask it out in the configure wrapper for pgprot-less variant.

Since 5.18 vmalloc automatically allocates from highmem when possible,
therefore this flag is not necessary and on newer kernels there is
a warning generated if caller passes __GFP_HIGHMEM.

Since kernels older than 5.18 still need it, simply mask it out in
the configure wrapper for pgprot-less variant.

Signed-off-by: Robert Baldyga <robert.baldyga@unvertical.com>
@robertbaldyga robertbaldyga merged commit 48c02e6 into Open-CAS:master Apr 7, 2026
5 checks passed
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.

1 participant