Yury Norov f4f425f32c uapi: rename ext2_swab() to swab() and share globally in swab.h
[ Upstream commit d5767057c9a76a29f073dad66b7fa12a90e8c748 ]

ext2_swab() is defined locally in lib/find_bit.c However it is not
specific to ext2, neither to bitmaps.

There are many potential users of it, so rename it to just swab() and
move to include/uapi/linux/swab.h

ABI guarantees that size of unsigned long corresponds to BITS_PER_LONG,
therefore drop unneeded cast.

Link: http://lkml.kernel.org/r/20200103202846.21616-1-yury.norov@gmail.com
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Cc: Allison Randal <allison@lohutok.net>
Cc: Joe Perches <joe@perches.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: William Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-25 11:45:14 +02:00
..
2020-08-21 11:01:49 +02:00
2020-06-11 09:22:20 +02:00
2015-04-21 16:16:02 -04:00
2016-12-05 19:43:02 -05:00
2016-09-23 08:40:28 -04:00
2016-10-03 18:52:14 +02:00
2015-08-25 14:41:50 -05:00
2016-08-05 09:00:54 -04:00
2018-03-22 09:17:38 +01:00
2016-06-08 11:36:02 -07:00
2015-04-12 21:25:13 -04:00
2015-12-14 12:19:37 -06:00
2020-08-21 11:01:49 +02:00
2016-03-22 15:36:02 -07:00
2016-06-27 16:31:25 +01:00
2016-04-12 19:54:58 +01:00
2015-08-03 17:30:00 -07:00
2015-07-21 10:39:05 -07:00
2015-11-23 15:06:38 -05:00
2015-05-05 13:40:44 -06:00
2015-04-23 15:16:14 -04:00
2015-07-20 14:58:46 -04:00
2016-05-17 17:14:21 -06:00
2016-09-27 21:52:00 -04:00
2016-09-27 21:52:00 -04:00
2018-04-20 08:21:04 +02:00
2016-04-26 12:00:48 -04:00
2016-04-04 22:11:20 -04:00
2016-09-21 00:23:00 -04:00
2015-06-11 23:37:37 +02:00
2015-12-18 17:48:51 -08:00
2015-10-27 18:55:31 -07:00
2016-05-20 17:58:30 -07:00
2016-08-02 16:53:54 +03:00
2015-03-29 12:13:52 +10:30
2016-04-30 09:26:55 -07:00