diff options
author | Yury Norov <yury.norov@gmail.com> | 2020-01-30 22:16:40 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-17 10:48:43 +0200 |
commit | 9af535dc019ed0474effeffb7af482cf3b08a898 (patch) | |
tree | 6483dccc5d94f3f7d1faf55407dec8e728ce3ca7 /fs/nls/mac-celtic.c | |
parent | dce1622d540119b9643c19ccb8b3953c37107582 (diff) | |
download | linux-stable-9af535dc019ed0474effeffb7af482cf3b08a898.tar.gz linux-stable-9af535dc019ed0474effeffb7af482cf3b08a898.tar.bz2 linux-stable-9af535dc019ed0474effeffb7af482cf3b08a898.zip |
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>
Diffstat (limited to 'fs/nls/mac-celtic.c')
0 files changed, 0 insertions, 0 deletions