From: Gao Xiang Date: Sat, 28 Jul 2018 07:10:32 +0000 (+0800) Subject: staging: erofs: fix a compile warning of Z_EROFS_VLE_VMAP_ONSTACK_PAGES X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81edee7ac83c5782859db4053a866fc0c29f982f;p=openwrt%2Fstaging%2Fblogic.git staging: erofs: fix a compile warning of Z_EROFS_VLE_VMAP_ONSTACK_PAGES There is a type mismatch in the definition of Z_EROFS_VLE_VMAP_ONSTACK_PAGES, let's fix it. Link: https://lists.01.org/pipermail/kbuild-all/2018-July/050707.html Reported-by: kbuild test robot Signed-off-by: Gao Xiang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/erofs/unzip_vle.h b/drivers/staging/erofs/unzip_vle.h index 3521dfb31906..393998500865 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) } #define Z_EROFS_VLE_VMAP_ONSTACK_PAGES \ - min(THREAD_SIZE / 8 / sizeof(struct page *), 96UL) + min_t(unsigned int, THREAD_SIZE / 8 / sizeof(struct page *), 96U) #define Z_EROFS_VLE_VMAP_GLOBAL_PAGES 2048 /* unzip_vle_lz4.c */