summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib/bswapsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lib/bswapsi.c')
-rw-r--r--arch/mips/lib/bswapsi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/lib/bswapsi.c b/arch/mips/lib/bswapsi.c
new file mode 100644
index 0000000000..2ed655497d
--- /dev/null
+++ b/arch/mips/lib/bswapsi.c
@@ -0,0 +1,13 @@
+// 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);