The patch titled Subject: zsmalloc: replace IS_ERR() with IS_ERR_VALUE() has been added to the -mm mm-unstable branch. Its filename is zsmalloc-replace-is_err-with-is_err_value.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zsmalloc-replace-is_err-with-is_err_value.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Deming Wang <wangdeming@xxxxxxxxxx> Subject: zsmalloc: replace IS_ERR() with IS_ERR_VALUE() Date: Thu, 3 Nov 2022 22:38:18 -0400 Avoid typecasts that are needed for IS_ERR() and use IS_ERR_VALUE() instead. Link: https://lkml.kernel.org/r/20221104023818.1728-1-wangdeming@xxxxxxxxxx Signed-off-by: Deming Wang <wangdeming@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/zsmalloc.c~zsmalloc-replace-is_err-with-is_err_value +++ a/mm/zsmalloc.c @@ -379,7 +379,7 @@ static int zs_zpool_malloc(void *pool, s { *handle = zs_malloc(pool, size, gfp); - if (IS_ERR((void *)(*handle))) + if (IS_ERR_VALUE(*handle)) return PTR_ERR((void *)*handle); return 0; } _ Patches currently in -mm which might be from wangdeming@xxxxxxxxxx are mm-use-vma_lookup-instead-of-find_vma.patch zsmalloc-replace-is_err-with-is_err_value.patch