summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib/bswapdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/lib/bswapdi.c')
-rw-r--r--arch/mips/lib/bswapdi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/lib/bswapdi.c b/arch/mips/lib/bswapdi.c
new file mode 100644
index 000000000..88242dc7d
--- /dev/null
+++ b/arch/mips/lib/bswapdi.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 long long __bswapdi2(unsigned long long u);
+
+unsigned long long notrace __bswapdi2(unsigned long long u)
+{
+ return ___constant_swab64(u);
+}
+EXPORT_SYMBOL(__bswapdi2);