Re: [PATCH v1] xz: fix arm fdt compile error for kmalloc replacement
From: Lasse Collin
Date: Sun Feb 22 2026 - 13:01:43 EST
On 2026-02-22 Haiyue Wang wrote:
> Align to the commit bf4afc53b77a ("Convert 'alloc_obj' family to use
> the new default GFP_KERNEL argument") update the 'kmalloc_obj'
> declaration for userspace to fix below comiple error:
The patch looks good. Without it, XZ-compressed kernel wouldn't build
on a few archs. The commit message could be clearer about this.
Suggestion:
----
xz: Fix the preboot code to match the kmalloc_obj change
kmalloc was replaced with kmalloc_obj in lib/xz. Make the same change
also in the preboot code to fix building of XZ-compressed kernel on
a few archs. For example, on ARM:
<the error message here>
Fixes: 69050f8d6d07 ("treewide: Replace kmalloc with kmalloc_obj for non-scalar types")
----
Thanks!
Acked-by: Lasse Collin <lasse.collin@xxxxxxxxxxx>
--
Lasse Collin