From 7b0681f1661b54b5a6eaf8bab6b41e84b28d0137 Mon Sep 17 00:00:00 2001 From: Khazhismel Kumykov Date: Fri, 1 Sep 2017 18:06:12 -0700 Subject: iscsi_if.h: use attribute instead of '__packed' More consistent, doesn't rely on __packed being defined in userspace. Signed-off-by: Khazhismel Kumykov --- include/iscsi_if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/iscsi_if.h b/include/iscsi_if.h index 9d15811..5be1981 100644 --- a/include/iscsi_if.h +++ b/include/iscsi_if.h @@ -341,7 +341,7 @@ struct iscsi_iface_param_info { uint8_t iface_type; /* IPv4 or IPv6 */ uint8_t param_type; /* iscsi_param_type */ uint8_t value[0]; /* length sized value follows */ -} __packed; +} __attribute__((__packed__)); /* * To keep the struct iscsi_uevent size the same for userspace code -- cgit v1.2.1