]> Git Repo - linux.git/commit
uapi: rename ext2_swab() to swab() and share globally in swab.h
authorYury Norov <[email protected]>
Fri, 31 Jan 2020 06:16:40 +0000 (22:16 -0800)
committerLinus Torvalds <[email protected]>
Fri, 31 Jan 2020 18:30:40 +0000 (10:30 -0800)
commitd5767057c9a76a29f073dad66b7fa12a90e8c748
tree4b954476bbc5e06322a1fb514238e066714d1121
parent4e456fee215677584cafa7f67298a76917e89c64
uapi: rename ext2_swab() to swab() and share globally in swab.h

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/[email protected]
Signed-off-by: Yury Norov <[email protected]>
Cc: Allison Randal <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: William Breathitt Gray <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/swab.h
include/uapi/linux/swab.h
lib/find_bit.c
This page took 0.051283 seconds and 4 git commands to generate.