linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] lib: cleanup bitmap-related headers
@ 2022-07-01 12:54 Yury Norov
  2022-07-01 12:54 ` [PATCH 1/8] arm: align find_bit declarations with generic kernel Yury Norov
                   ` (7 more replies)
  0 siblings, 8 replies; 16+ messages in thread
From: Yury Norov @ 2022-07-01 12:54 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton, Andy Shevchenko, David Howells,
	Geert Uytterhoeven, Jonathan Corbet, Kirill A . Shutemov,
	Matthew Wilcox, NeilBrown, Rasmus Villemoes, Russell King,
	Vlastimil Babka, William Kucharski, linux-doc, linux-arm-kernel,
	linux-mm
  Cc: Yury Norov

This series unifies declarations of bitmap-related functions and aligns
return types with values that actually returned. Also, it moves one-liner
wrappers around cpumask functions into headers, so that compiler has a
chance to optimize better.

With this series, GCC 11.2 for ARM64 with kernel v5.19-rc4:
add/remove: 15/7 grow/shrink: 461/164 up/down: 14844/-4580 (10264)

This +10K didn't surprize me because  modern compilers are more agressive
in inlining, loop unrolling, and other techniques that increase size of
the image.

Yury Norov (8):
  arm: align find_bit defs with generic kernel
  lib/bitmap: change return values to bool where appropriate
  lib/bitmap: change type of bitmap_weight to unsigned int
  cpumask: change return types to bool where appropriate
  lib/cpumask: change return types to unsigned
  lib/cpumask: move one-line wrappers around find_bit to the header
  mm: split include/linux/gfp.h
  lib/cpumask: move some one-line wrappers to header file

 Documentation/core-api/mm-api.rst |   8 +-
 MAINTAINERS                       |   1 +
 arch/arm/include/asm/bitops.h     |  20 +-
 include/linux/bitmap.h            |  10 +-
 include/linux/cpumask.h           | 125 +++++++++--
 include/linux/gfp.h               | 334 +----------------------------
 include/linux/gfp_flags.h         | 338 ++++++++++++++++++++++++++++++
 lib/bitmap.c                      |   9 +-
 lib/cpumask.c                     |  97 +--------
 tools/include/linux/bitmap.h      |  12 +-
 tools/lib/bitmap.c                |   6 +-
 11 files changed, 483 insertions(+), 477 deletions(-)
 create mode 100644 include/linux/gfp_flags.h

-- 
2.34.1



^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-07-02 22:06 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-01 12:54 [PATCH 0/8] lib: cleanup bitmap-related headers Yury Norov
2022-07-01 12:54 ` [PATCH 1/8] arm: align find_bit declarations with generic kernel Yury Norov
2022-07-02 11:55   ` Andy Shevchenko
2022-07-01 12:54 ` [PATCH 2/8] lib/bitmap: change return types to bool where appropriate Yury Norov
2022-07-01 12:54 ` [PATCH 3/8] lib/bitmap: change type of bitmap_weight to unsigned int Yury Norov
2022-07-02 11:57   ` Andy Shevchenko
2022-07-01 12:54 ` [PATCH 4/8] cpumask: change return types to bool where appropriate Yury Norov
2022-07-01 12:54 ` [PATCH 5/8] lib/cpumask: change return types to unsigned " Yury Norov
2022-07-02 12:00   ` Andy Shevchenko
2022-07-02 21:59     ` Yury Norov
2022-07-01 12:54 ` [PATCH 6/8] lib/cpumask: move trivial wrappers around find_bit to the header Yury Norov
2022-07-01 12:54 ` [PATCH 7/8] mm: split include/linux/gfp.h Yury Norov
2022-07-02 12:05   ` Andy Shevchenko
2022-07-02 12:09     ` Andy Shevchenko
2022-07-02 22:06       ` Yury Norov
2022-07-01 12:54 ` [PATCH 8/8] lib/cpumask: move some one-line wrappers to header file Yury Norov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox