8e6ec6ce02
Use macro definitions ___constant_swab64 and ___constant_swab32 to simplify __bswapdi2() and __bswapsi2(). Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
14 lines
311 B
C
14 lines
311 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/export.h>
|
|
#include <linux/compiler.h>
|
|
#include <uapi/linux/swab.h>
|
|
|
|
/* To silence -Wmissing-prototypes. */
|
|
unsigned int __bswapsi2(unsigned int u);
|
|
|
|
unsigned int notrace __bswapsi2(unsigned int u)
|
|
{
|
|
return ___constant_swab32(u);
|
|
}
|
|
EXPORT_SYMBOL(__bswapsi2);
|