From 0f817a40ef0557af7a9fa02e76fd730131cf1b40 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 7 Sep 2021 15:51:56 +0000 Subject: [PATCH] fcst: Remove one occurrence of __attribute__((packed)) Remove this occurrence because it is not necessary and because checkpatch complains about it. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9573 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_sess.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fcst/ft_sess.c b/fcst/ft_sess.c index 1c5142c96..99762bc3b 100644 --- a/fcst/ft_sess.c +++ b/fcst/ft_sess.c @@ -348,7 +348,9 @@ int ft_get_transport_id(struct scst_tgt *tgt, struct scst_session *scst_sess, u8 __resv1[7]; __be64 port_name; /* N_Port Name */ u8 __resv2[8]; - } __attribute__((__packed__)) *id; + } *id; + + static_assert(sizeof(*id) == 24); if (!scst_sess) return SCSI_TRANSPORTID_PROTOCOLID_FCP2;