Commit f4d507cd authored by Jubin John's avatar Jubin John Committed by Doug Ledford

staging/rdma/hfi1: Add blank link after declarations

Add blank line after declarations to fix checkpatch check:
CHECK: Please use a blank line after function/struct/union/enum
declarations
Reviewed-by: default avatarDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: default avatarJubin John <jubin.john@intel.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent d0d236ea
...@@ -6995,6 +6995,7 @@ static u16 link_width_to_bits(struct hfi1_devdata *dd, u16 width) ...@@ -6995,6 +6995,7 @@ static u16 link_width_to_bits(struct hfi1_devdata *dd, u16 width)
static const u8 bit_counts[16] = { static const u8 bit_counts[16] = {
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4 0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4
}; };
static inline u8 nibble_to_count(u8 nibble) static inline u8 nibble_to_count(u8 nibble)
{ {
return bit_counts[nibble & 0xf]; return bit_counts[nibble & 0xf];
...@@ -10410,6 +10411,7 @@ static int vl_arb_match_cache(struct vl_arb_cache *cache, ...@@ -10410,6 +10411,7 @@ static int vl_arb_match_cache(struct vl_arb_cache *cache,
{ {
return !memcmp(cache->table, vl, VL_ARB_TABLE_SIZE * sizeof(*vl)); return !memcmp(cache->table, vl, VL_ARB_TABLE_SIZE * sizeof(*vl));
} }
/* end functions related to vl arbitration table caching */ /* end functions related to vl arbitration table caching */
static int set_vl_weights(struct hfi1_pportdata *ppd, u32 target, static int set_vl_weights(struct hfi1_pportdata *ppd, u32 target,
......
...@@ -71,6 +71,7 @@ static const struct seq_operations _##name##_seq_ops = { \ ...@@ -71,6 +71,7 @@ static const struct seq_operations _##name##_seq_ops = { \
.stop = _##name##_seq_stop, \ .stop = _##name##_seq_stop, \
.show = _##name##_seq_show \ .show = _##name##_seq_show \
} }
#define DEBUGFS_SEQ_FILE_OPEN(name) \ #define DEBUGFS_SEQ_FILE_OPEN(name) \
static int _##name##_open(struct inode *inode, struct file *s) \ static int _##name##_open(struct inode *inode, struct file *s) \
{ \ { \
......
...@@ -113,6 +113,7 @@ struct css_header { ...@@ -113,6 +113,7 @@ struct css_header {
u32 exponent_size; /* in DWORDs */ u32 exponent_size; /* in DWORDs */
u32 reserved[22]; u32 reserved[22];
}; };
/* expected field values */ /* expected field values */
#define CSS_MODULE_TYPE 0x00000006 #define CSS_MODULE_TYPE 0x00000006
#define CSS_HEADER_LEN 0x000000a1 #define CSS_HEADER_LEN 0x000000a1
...@@ -172,6 +173,7 @@ enum fw_state { ...@@ -172,6 +173,7 @@ enum fw_state {
FW_FINAL, FW_FINAL,
FW_ERR FW_ERR
}; };
static enum fw_state fw_state = FW_EMPTY; static enum fw_state fw_state = FW_EMPTY;
static int fw_err; static int fw_err;
static struct firmware_details fw_8051; static struct firmware_details fw_8051;
......
...@@ -1495,6 +1495,7 @@ static inline int valid_ib_mtu(unsigned int mtu) ...@@ -1495,6 +1495,7 @@ static inline int valid_ib_mtu(unsigned int mtu)
mtu == 1024 || mtu == 2048 || mtu == 1024 || mtu == 2048 ||
mtu == 4096; mtu == 4096;
} }
static inline int valid_opa_max_mtu(unsigned int mtu) static inline int valid_opa_max_mtu(unsigned int mtu)
{ {
return mtu >= 2048 && return mtu >= 2048 &&
......
...@@ -529,6 +529,7 @@ static void tune_pcie_caps(struct hfi1_devdata *dd) ...@@ -529,6 +529,7 @@ static void tune_pcie_caps(struct hfi1_devdata *dd)
pcie_set_readrq(dd->pcidev, ep_mrrs); pcie_set_readrq(dd->pcidev, ep_mrrs);
} }
} }
/* End of PCIe capability tuning */ /* End of PCIe capability tuning */
/* /*
......
...@@ -105,6 +105,7 @@ struct send_context { ...@@ -105,6 +105,7 @@ struct send_context {
struct hfi1_devdata *dd; /* device */ struct hfi1_devdata *dd; /* device */
void __iomem *base_addr; /* start of PIO memory */ void __iomem *base_addr; /* start of PIO memory */
union pio_shadow_ring *sr; /* shadow ring */ union pio_shadow_ring *sr; /* shadow ring */
volatile __le64 *hw_free; /* HW free counter */ volatile __le64 *hw_free; /* HW free counter */
struct work_struct halt_work; /* halted context work queue entry */ struct work_struct halt_work; /* halted context work queue entry */
unsigned long flags; /* flags */ unsigned long flags; /* flags */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment