aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib.h
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2010-06-02 20:21:07 -0400
committerRoland Dreier <rolandd@cisco.com>2010-07-19 16:21:24 -0400
commitcc323b2aaa3921c4eeec309ff64256b0c43ca752 (patch)
tree9f07d591a8baf9a267897a3c2a87859f54c27ce2 /drivers/infiniband/hw/qib/qib.h
parent589643be6693c46fbc54bae77745f336c8ed4bcc (diff)
IB/qib: Avoid variable-length array
Rather than use a variable size array allocation on the stack, define a constant for the maximum array size possible. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib.h')
-rw-r--r--drivers/infiniband/hw/qib/qib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/qib/qib.h b/drivers/infiniband/hw/qib/qib.h
index 3593983df7ba..e67dba40d52e 100644
--- a/drivers/infiniband/hw/qib/qib.h
+++ b/drivers/infiniband/hw/qib/qib.h
@@ -326,6 +326,9 @@ struct qib_verbs_txreq {
326 326
327#define QIB_DEFAULT_MTU 4096 327#define QIB_DEFAULT_MTU 4096
328 328
329/* max number of IB ports supported per HCA */
330#define QIB_MAX_IB_PORTS 2
331
329/* 332/*
330 * Possible IB config parameters for f_get/set_ib_table() 333 * Possible IB config parameters for f_get/set_ib_table()
331 */ 334 */