Skip to content

Commit 56254ad

Browse files
jiaxiyanshijin-aws
authored andcommitted
prov/efa: Remove x86-64 architecture check for static_assert
This commit removes the x86-64 architecture check from the static_assert conditional compilation directive. The static_assert feature is not architecture-dependent and should be checked on all platforms that support it. Signed-off-by: Jessie Yang <[email protected]>
1 parent 736d452 commit 56254ad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

prov/efa/src/rdm/efa_rdm_pke.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ struct efa_rdm_pke {
195195
_Alignas(EFA_RDM_PKE_ALIGNMENT) char wiredata[0];
196196
};
197197

198-
#if defined(static_assert) && defined(__x86_64__)
198+
#if defined(static_assert)
199199
static_assert(sizeof (struct efa_rdm_pke) % EFA_RDM_PKE_ALIGNMENT == 0, "efa_rdm_pke alignment check");
200200
#endif
201201

prov/efa/src/rdm/efa_rdm_protocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
#define EFA_RDM_RUNT_PKT_END 148
105105
#define EFA_RDM_EXTRA_REQ_PKT_END 148
106106

107-
#if defined(static_assert) && defined(__x86_64__)
107+
#if defined(static_assert)
108108
#define EFA_RDM_ENSURE_HEADER_SIZE(hdr, size) \
109109
static_assert(sizeof (struct hdr) == (size), #hdr " size check")
110110
#else

prov/efa/src/rdm/efa_rdm_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#define EFA_RDM_MSG_PREFIX_SIZE (sizeof(struct efa_rdm_pke) + sizeof(struct efa_rdm_eager_msgrtm_hdr) + EFA_RDM_REQ_OPT_RAW_ADDR_HDR_SIZE)
1212

13-
#if defined(static_assert) && defined(__x86_64__)
13+
#if defined(static_assert)
1414
static_assert(EFA_RDM_MSG_PREFIX_SIZE % 8 == 0, "message prefix size alignment check");
1515
#endif
1616

0 commit comments

Comments
 (0)