aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_bit.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2020-01-31 06:16:47 +0000
committerLinus Torvalds <[email protected]>2020-01-31 18:30:41 +0000
commit7dfaa98f646bbc29c3575bc184f2b37aa2dd62c5 (patch)
treec7f53ad910ea297a193c5accf8aa5af8856d86f1 /lib/find_bit.c
parentlib/find_bit.c: join _find_next_bit{_le} (diff)
downloadkernel-7dfaa98f646bbc29c3575bc184f2b37aa2dd62c5.tar.gz
kernel-7dfaa98f646bbc29c3575bc184f2b37aa2dd62c5.zip
lib/find_bit.c: uninline helper _find_next_bit()
It saves 25% of .text for arm64, and more for BE architectures. Before: $ size lib/find_bit.o text data bss dec hex filename 1012 56 0 1068 42c lib/find_bit.o After: $ size lib/find_bit.o text data bss dec hex filename 776 56 0 832 340 lib/find_bit.o Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yury Norov <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Allison Randal <[email protected]> Cc: William Breathitt Gray <[email protected]> Cc: Joe Perches <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/find_bit.c')
-rw-r--r--lib/find_bit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find_bit.c b/lib/find_bit.c
index c897c127316d..49f875f1baf7 100644
--- a/lib/find_bit.c
+++ b/lib/find_bit.c
@@ -27,7 +27,7 @@
* searching it for one bits.
* - The optional "addr2", which is anded with "addr1" if present.
*/
-static inline unsigned long _find_next_bit(const unsigned long *addr1,
+static unsigned long _find_next_bit(const unsigned long *addr1,
const unsigned long *addr2, unsigned long nbits,
unsigned long start, unsigned long invert, unsigned long le)
{