rtl8821cu: __fswab16 and __fswab32 redefine in powerpc arch

This commit is contained in:
ElonH 2020-04-22 19:39:42 +08:00
parent 10c270b440
commit 00487f23db
No known key found for this signature in database
GPG Key ID: 5BCDD7F78A258D4C

View File

@ -0,0 +1,20 @@
diff --git a/include/byteorder/swab.h b/include/byteorder/swab.h
index a8dd46b..c4b4298 100644
--- a/include/byteorder/swab.h
+++ b/include/byteorder/swab.h
@@ -104,6 +104,7 @@ __inline static __u64 __arch__swab64(__u64 x)
#define __swab64(x) __fswab64(x)
#endif /* __swab16 */
+#ifndef _UAPI_LINUX_SWAB_H
#ifdef PLATFORM_FREEBSD
__inline static __u16 __fswab16(__u16 x)
#else
@@ -120,6 +121,7 @@ __inline static __u64 __arch__swab64(__u64 x)
{
return __arch__swab32(x);
}
+#endif
#if defined(PLATFORM_LINUX) || defined(PLATFORM_WINDOWS)
#define swab16 __swab16