staging: erofs: fix a compile warning of Z_EROFS_VLE_VMAP_ONSTACK_PAGES

This change “staging: erofs: fix a compile warning of Z_EROFS_VLE_VMAP_ONSTACK_PAGES” in Linux kernel is authored by Gao Xiang <gaoxiang25 [at]> on Sat Jul 28 15:10:32 2018 +0800.

staging: erofs: fix a compile warning of Z_EROFS_VLE_VMAP_ONSTACK_PAGES

There is a type mismatch in the definition of

Reported-by: kbuild test robot <>
Signed-off-by: Gao Xiang <>
Signed-off-by: Greg Kroah-Hartman <>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit 81edee7.

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/erofs/unzip_vle.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/erofs/unzip_vle.h b/drivers/staging/erofs/unzip_vle.h
index 3521dfb..3939985 100644
--- a/drivers/staging/erofs/unzip_vle.h
+++ b/drivers/staging/erofs/unzip_vle.h
@@ -218,7 +218,7 @@ static inline void z_erofs_onlinepage_endio(struct page *page)
-	min(THREAD_SIZE / 8 / sizeof(struct page *), 96UL)
+	min_t(unsigned int, THREAD_SIZE / 8 / sizeof(struct page *), 96U)
 /* unzip_vle_lz4.c */

The commit for this change in Linux stable tree is 81edee7 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *