fcst: Use BUILD_BUG_ON() instead of static_assert()

BUILD_BUG_ON() works with older gcc versions but static_assert() not.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9577 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-09-15 03:10:32 +00:00
parent 13c6449016
commit 3d527cb0b5

View File

@@ -350,7 +350,7 @@ int ft_get_transport_id(struct scst_tgt *tgt, struct scst_session *scst_sess,
u8 __resv2[8];
} *id;
static_assert(sizeof(*id) == 24);
BUILD_BUG_ON(sizeof(*id) != 24);
if (!scst_sess)
return SCSI_TRANSPORTID_PROTOCOLID_FCP2;