IB/ehca: Fix warnings issued by checkpatch.pl
Run the existing ehca code through checkpatch.pl and clean up the worst of the coding style violations. Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:

zatwierdzone przez
Roland Dreier

rodzic
187c72e31f
commit
2b94397adc
@@ -53,13 +53,13 @@ struct ehca_vsgentry {
|
||||
u32 length;
|
||||
};
|
||||
|
||||
#define GRH_FLAG_MASK EHCA_BMASK_IBM(7,7)
|
||||
#define GRH_IPVERSION_MASK EHCA_BMASK_IBM(0,3)
|
||||
#define GRH_TCLASS_MASK EHCA_BMASK_IBM(4,12)
|
||||
#define GRH_FLOWLABEL_MASK EHCA_BMASK_IBM(13,31)
|
||||
#define GRH_PAYLEN_MASK EHCA_BMASK_IBM(32,47)
|
||||
#define GRH_NEXTHEADER_MASK EHCA_BMASK_IBM(48,55)
|
||||
#define GRH_HOPLIMIT_MASK EHCA_BMASK_IBM(56,63)
|
||||
#define GRH_FLAG_MASK EHCA_BMASK_IBM( 7, 7)
|
||||
#define GRH_IPVERSION_MASK EHCA_BMASK_IBM( 0, 3)
|
||||
#define GRH_TCLASS_MASK EHCA_BMASK_IBM( 4, 12)
|
||||
#define GRH_FLOWLABEL_MASK EHCA_BMASK_IBM(13, 31)
|
||||
#define GRH_PAYLEN_MASK EHCA_BMASK_IBM(32, 47)
|
||||
#define GRH_NEXTHEADER_MASK EHCA_BMASK_IBM(48, 55)
|
||||
#define GRH_HOPLIMIT_MASK EHCA_BMASK_IBM(56, 63)
|
||||
|
||||
/*
|
||||
* Unreliable Datagram Address Vector Format
|
||||
@@ -206,10 +206,10 @@ struct ehca_wqe {
|
||||
|
||||
};
|
||||
|
||||
#define WC_SEND_RECEIVE EHCA_BMASK_IBM(0,0)
|
||||
#define WC_IMM_DATA EHCA_BMASK_IBM(1,1)
|
||||
#define WC_GRH_PRESENT EHCA_BMASK_IBM(2,2)
|
||||
#define WC_SE_BIT EHCA_BMASK_IBM(3,3)
|
||||
#define WC_SEND_RECEIVE EHCA_BMASK_IBM(0, 0)
|
||||
#define WC_IMM_DATA EHCA_BMASK_IBM(1, 1)
|
||||
#define WC_GRH_PRESENT EHCA_BMASK_IBM(2, 2)
|
||||
#define WC_SE_BIT EHCA_BMASK_IBM(3, 3)
|
||||
#define WC_STATUS_ERROR_BIT 0x80000000
|
||||
#define WC_STATUS_REMOTE_ERROR_FLAGS 0x0000F800
|
||||
#define WC_STATUS_PURGE_BIT 0x10
|
||||
|
Reference in New Issue
Block a user