The patch titled Subject: mm/vmstat: remove unneeded return value has been added to the -mm tree. Its filename is mm-vmstat-remove-unneeded-return-value.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-vmstat-remove-unneeded-return-value.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-vmstat-remove-unneeded-return-value.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Miaohe Lin <linmiaohe@xxxxxxxxxx> Subject: mm/vmstat: remove unneeded return value The return value of pagetypeinfo_showfree and pagetypeinfo_showblockcount are unused now. Remove them. Link: https://lkml.kernel.org/r/20210715122911.15700-4-linmiaohe@xxxxxxxxxx Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmstat.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) --- a/mm/vmstat.c~mm-vmstat-remove-unneeded-return-value +++ a/mm/vmstat.c @@ -1452,7 +1452,7 @@ static void pagetypeinfo_showfree_print( } /* Print out the free pages at each order for each migatetype */ -static int pagetypeinfo_showfree(struct seq_file *m, void *arg) +static void pagetypeinfo_showfree(struct seq_file *m, void *arg) { int order; pg_data_t *pgdat = (pg_data_t *)arg; @@ -1464,8 +1464,6 @@ static int pagetypeinfo_showfree(struct seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, true, false, pagetypeinfo_showfree_print); - - return 0; } static void pagetypeinfo_showblockcount_print(struct seq_file *m, @@ -1501,7 +1499,7 @@ static void pagetypeinfo_showblockcount_ } /* Print out the number of pageblocks for each migratetype */ -static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg) +static void pagetypeinfo_showblockcount(struct seq_file *m, void *arg) { int mtype; pg_data_t *pgdat = (pg_data_t *)arg; @@ -1512,8 +1510,6 @@ static int pagetypeinfo_showblockcount(s seq_putc(m, '\n'); walk_zones_in_node(m, pgdat, true, false, pagetypeinfo_showblockcount_print); - - return 0; } /* _ Patches currently in -mm which might be from linmiaohe@xxxxxxxxxx are mm-vmscan-put-the-redirtied-madv_free-pages-back-to-anonymous-lru-list.patch mm-vmscan-remove-misleading-setting-to-sc-priority.patch mm-vmscan-remove-unneeded-return-value-of-kswapd_run.patch mm-vmscan-add-else-to-remove-check_pending-label.patch mm-vmscan-fix-misleading-comment-in-isolate_lru_pages.patch mm-vmstat-correct-some-wrong-comments.patch mm-vmstat-simplify-the-array-size-calculation.patch mm-vmstat-remove-unneeded-return-value.patch mm-zsmallocc-close-race-window-between-zs_pool_dec_isolated-and-zs_unregister_migration.patch mm-zsmallocc-combine-two-atomic-ops-in-zs_pool_dec_isolated.patch