mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
Linux 5.0 compat: ASM_BUG macro
The 5.0 kernel defines the macro ASM_BUG. In order to prevent a conflict and build failure rename ASM_BUG to ZFS_ASM_BUG. This is currently only an issue on aarch64 but all instances of ASM_BUG we're renamed to avoid any future conflict on x86_64. Reviewed-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Chris Dunlop <chris@onthe.net.au> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #8725 Issue #8545
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
#define _R_23(_0, _1, REG2, REG3, ...) REG2, REG3
|
||||
#define R_23(REG...) _R_23(REG, 1, 2, 3)
|
||||
|
||||
#define ASM_BUG() ASSERT(0)
|
||||
#define ZFS_ASM_BUG() ASSERT(0)
|
||||
|
||||
extern const uint8_t gf_clmul_mod_lt[4*256][16];
|
||||
|
||||
@@ -85,7 +85,7 @@ typedef struct v {
|
||||
: : [SRC] "r" (src)); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ typedef struct v {
|
||||
"vpxorq %" VR1(r) ", %" VR3(r)", %" VR3(r)); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ typedef struct v {
|
||||
"vmovdqa64 %" VR1(r) ", %" VR3(r)); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ typedef struct v {
|
||||
: : [SRC] "r" (src)); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ typedef struct v {
|
||||
: : [DST] "r" (dst)); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ typedef struct v {
|
||||
"vmovdqu8 %zmm13, %" VR1(r) "{%k2}"); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -212,7 +212,7 @@ typedef struct v {
|
||||
_MUL2(r); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ static const uint8_t __attribute__((aligned(64))) _mul_mask = 0x0F;
|
||||
[lt] "r" (gf_clmul_mod_lt[4*(c)])); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
@@ -288,7 +288,7 @@ static const uint8_t __attribute__((aligned(64))) _mul_mask = 0x0F;
|
||||
_MULx2(c, R_01(r)); \
|
||||
break; \
|
||||
default: \
|
||||
ASM_BUG(); \
|
||||
ZFS_ASM_BUG(); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user