The patch titled Subject: scripts/bloat-o-meter: use the reverse flag for sort has been added to the -mm mm-nonmm-unstable branch. Its filename is scripts-bloat-o-meter-use-the-reverse-flag-for-sort.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/scripts-bloat-o-meter-use-the-reverse-flag-for-sort.patch This patch will later appear in the mm-nonmm-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: Alexander Pantyukhin <apantykhin@xxxxxxxxx> Subject: scripts/bloat-o-meter: use the reverse flag for sort Date: Fri, 6 Jan 2023 14:13:19 +0500 The sort function has the inbuilt reversal option. We can use it to save some time. Link: https://lkml.kernel.org/r/20230106091319.3824-1-apantykhin@xxxxxxxxx Signed-off-by: Alexander Pantyukhin <apantykhin@xxxxxxxxx> Cc: Nikolay Borisov <nborisov@xxxxxxxx> Cc: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/bloat-o-meter | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/scripts/bloat-o-meter~scripts-bloat-o-meter-use-the-reverse-flag-for-sort +++ a/scripts/bloat-o-meter @@ -80,8 +80,7 @@ def calc(oldfile, newfile, format): if d<0: shrink, down = shrink+1, down-d delta.append((d, name)) - delta.sort() - delta.reverse() + delta.sort(reverse=True) return grow, shrink, add, remove, up, down, delta, old, new, otot, ntot def print_result(symboltype, symbolformat): _ Patches currently in -mm which might be from apantykhin@xxxxxxxxx are scripts-bloat-o-meter-use-the-reverse-flag-for-sort.patch