mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 20:53:00 +07:00
d5767057c9
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>
24 lines
569 B
C
24 lines
569 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_SWAB_H
|
|
#define _LINUX_SWAB_H
|
|
|
|
#include <uapi/linux/swab.h>
|
|
|
|
# define swab16 __swab16
|
|
# define swab32 __swab32
|
|
# define swab64 __swab64
|
|
# define swab __swab
|
|
# define swahw32 __swahw32
|
|
# define swahb32 __swahb32
|
|
# define swab16p __swab16p
|
|
# define swab32p __swab32p
|
|
# define swab64p __swab64p
|
|
# define swahw32p __swahw32p
|
|
# define swahb32p __swahb32p
|
|
# define swab16s __swab16s
|
|
# define swab32s __swab32s
|
|
# define swab64s __swab64s
|
|
# define swahw32s __swahw32s
|
|
# define swahb32s __swahb32s
|
|
#endif /* _LINUX_SWAB_H */
|