Sfoglia il codice sorgente

target: Avoid compiler warnings about signed one-bit bitfields

Convert to unsigned bit fields for active I/O shutdown fields.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Bart Van Assche 13 anni fa
parent
commit
5f655e8d2a
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      include/target/target_core_base.h

+ 3 - 3
include/target/target_core_base.h

@@ -423,8 +423,8 @@ struct se_cmd {
 	/* Transport protocol dependent state, see transport_state_table */
 	/* Transport protocol dependent state, see transport_state_table */
 	enum transport_state_table t_state;
 	enum transport_state_table t_state;
 	/* Used to signal cmd->se_tfo->check_release_cmd() usage per cmd */
 	/* Used to signal cmd->se_tfo->check_release_cmd() usage per cmd */
-	int			check_release:1;
-	int			cmd_wait_set:1;
+	unsigned		check_release:1;
+	unsigned		cmd_wait_set:1;
 	/* See se_cmd_flags_table */
 	/* See se_cmd_flags_table */
 	u32			se_cmd_flags;
 	u32			se_cmd_flags;
 	u32			se_ordered_id;
 	u32			se_ordered_id;
@@ -560,7 +560,7 @@ struct se_node_acl {
 } ____cacheline_aligned;
 } ____cacheline_aligned;
 
 
 struct se_session {
 struct se_session {
-	int			sess_tearing_down:1;
+	unsigned		sess_tearing_down:1;
 	u64			sess_bin_isid;
 	u64			sess_bin_isid;
 	struct se_node_acl	*se_node_acl;
 	struct se_node_acl	*se_node_acl;
 	struct se_portal_group *se_tpg;
 	struct se_portal_group *se_tpg;