The patch titled Subject: mm/zsmalloc.c: fix -Wunneeded-internal-declaration warning has been added to the -mm tree. Its filename is mm-zsmalloc-fix-wunneeded-internal-declaration-warning.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-zsmalloc-fix-wunneeded-internal-declaration-warning.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-zsmalloc-fix-wunneeded-internal-declaration-warning.patch 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/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Nick Desaulniers <nick.desaulniers@xxxxxxxxx> Subject: mm/zsmalloc.c: fix -Wunneeded-internal-declaration warning is_first_page() is only called from the macro VM_BUG_ON_PAGE() which is only compiled in as a runtime check when CONFIG_DEBUG_VM is set, otherwise is checked at compile time and not actually compiled in. Fixes the following warning, found with Clang: mm/zsmalloc.c:472:12: warning: function 'is_first_page' is not needed and will not be emitted [-Wunneeded-internal-declaration] static int is_first_page(struct page *page) ^ Link: http://lkml.kernel.org/r/20170524053859.29059-1-nick.desaulniers@xxxxxxxxx Signed-off-by: Nick Desaulniers <nick.desaulniers@xxxxxxxxx> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> Acked-by: Minchan Kim <minchan@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zsmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/zsmalloc.c~mm-zsmalloc-fix-wunneeded-internal-declaration-warning mm/zsmalloc.c --- a/mm/zsmalloc.c~mm-zsmalloc-fix-wunneeded-internal-declaration-warning +++ a/mm/zsmalloc.c @@ -469,7 +469,7 @@ static bool is_zspage_isolated(struct zs return zspage->isolated; } -static int is_first_page(struct page *page) +static __maybe_unused int is_first_page(struct page *page) { return PagePrivate(page); } _ Patches currently in -mm which might be from nick.desaulniers@xxxxxxxxx are mm-vmscan-fix-unsequenced-modification-and-access-warning.patch mm-zsmalloc-fix-wunneeded-internal-declaration-warning.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html