Skip to content

Commit

Permalink
Merge pull request #12 from powervm/libsrpchanges
Browse files Browse the repository at this point in the history
libsrp .h change to fix return type
  • Loading branch information
Bryant Ly committed Apr 22, 2016
2 parents 8ed8541 + ae6c72c commit df6fba9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions include/scsi/libsrp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_host.h>
#include <scsi/srp.h>
#include <target/target_core_base.h>

enum srp_task_attributes {
SRP_SIMPLE_TASK = 0,
SRP_HEAD_TASK = 1,
SRP_ORDERED_TASK = 2,
SRP_ACA_TASK = 4
SRP_SIMPLE_TASK = 0,
SRP_HEAD_TASK = 1,
SRP_ORDERED_TASK = 2,
SRP_ACA_TASK = 4
};

enum iue_flags {
Expand All @@ -35,6 +36,7 @@ struct srp_queue {

struct srp_target {
struct Scsi_Host *shost;
struct se_device *tgt;
struct device *dev;

spinlock_t lock;
Expand Down Expand Up @@ -82,6 +84,6 @@ static inline int srp_cmd_direction(struct srp_cmd *cmd)
return (cmd->buf_fmt >> 4) ? DMA_TO_DEVICE : DMA_FROM_DEVICE;
}

extern int srp_data_length(struct srp_cmd *cmd, enum dma_data_direction dir);
extern u64 srp_data_length(struct srp_cmd *cmd, enum dma_data_direction dir);

#endif

0 comments on commit df6fba9

Please sign in to comment.