Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242687
b: refs/heads/master
c: 35ce9e2
h: refs/heads/master
i:
  242685: d51233b
  242683: 2636d58
  242679: 28b1828
  242671: 447b23a
  242655: bb91b45
  242623: d52890e
  242559: c88e064
  242431: 0e360e8
  242175: 039da57
  241663: 83152cc
v: v3
  • Loading branch information
Nicholas Bellinger authored and James Bottomley committed Mar 23, 2011
1 parent 90d4ef4 commit ad87400
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5dd7ed2e811d5cd12f31fb7f0c5ad0107d494a12
refs/heads/master: 35ce9e26d7e0674892f77a9172c898dfcba50064
22 changes: 11 additions & 11 deletions trunk/include/target/target_core_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ struct se_task {
struct list_head t_state_list;
} ____cacheline_aligned;

#define TASK_CMD(task) ((struct se_cmd *)task->task_se_cmd)
#define TASK_DEV(task) ((struct se_device *)task->se_dev)
#define TASK_CMD(task) ((task)->task_se_cmd)
#define TASK_DEV(task) ((task)->se_dev)

struct se_cmd {
/* SAM response code being sent to initiator */
Expand Down Expand Up @@ -551,8 +551,8 @@ struct se_cmd {
void (*transport_complete_callback)(struct se_cmd *);
} ____cacheline_aligned;

#define T_TASK(cmd) ((struct se_transport_task *)(cmd->t_task))
#define CMD_TFO(cmd) ((struct target_core_fabric_ops *)cmd->se_tfo)
#define T_TASK(cmd) ((cmd)->t_task)
#define CMD_TFO(cmd) ((cmd)->se_tfo)

struct se_tmr_req {
/* Task Management function to be preformed */
Expand Down Expand Up @@ -615,8 +615,8 @@ struct se_session {
struct list_head sess_acl_list;
} ____cacheline_aligned;

#define SE_SESS(cmd) ((struct se_session *)(cmd)->se_sess)
#define SE_NODE_ACL(sess) ((struct se_node_acl *)(sess)->se_node_acl)
#define SE_SESS(cmd) ((cmd)->se_sess)
#define SE_NODE_ACL(sess) ((sess)->se_node_acl)

struct se_device;
struct se_transform_info;
Expand Down Expand Up @@ -803,8 +803,8 @@ struct se_device {
struct list_head g_se_dev_list;
} ____cacheline_aligned;

#define SE_DEV(cmd) ((struct se_device *)(cmd)->se_lun->lun_se_dev)
#define SU_DEV(dev) ((struct se_subsystem_dev *)(dev)->se_sub_dev)
#define SE_DEV(cmd) ((cmd)->se_lun->lun_se_dev)
#define SU_DEV(dev) ((dev)->se_sub_dev)
#define DEV_ATTRIB(dev) (&(dev)->se_sub_dev->se_dev_attrib)
#define DEV_T10_WWN(dev) (&(dev)->se_sub_dev->t10_wwn)

Expand Down Expand Up @@ -832,7 +832,7 @@ struct se_hba {
struct se_subsystem_api *transport;
} ____cacheline_aligned;

#define SE_HBA(d) ((struct se_hba *)(d)->se_hba)
#define SE_HBA(dev) ((dev)->se_hba)

struct se_lun {
/* See transport_lun_status_table */
Expand All @@ -852,7 +852,7 @@ struct se_lun {
struct se_port *lun_sep;
} ____cacheline_aligned;

#define SE_LUN(c) ((struct se_lun *)(c)->se_lun)
#define SE_LUN(cmd) ((cmd)->se_lun)

struct scsi_port_stats {
u64 cmd_pdus;
Expand Down Expand Up @@ -919,7 +919,7 @@ struct se_portal_group {
struct config_group tpg_param_group;
} ____cacheline_aligned;

#define TPG_TFO(se_tpg) ((struct target_core_fabric_ops *)(se_tpg)->se_tpg_tfo)
#define TPG_TFO(se_tpg) ((se_tpg)->se_tpg_tfo)

struct se_wwn {
struct target_fabric_configfs *wwn_tf;
Expand Down

0 comments on commit ad87400

Please sign in to comment.