diff options
author | Matthew Wilcox <willy@infradead.org> | 2019-02-20 16:21:00 -0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-04-01 13:31:35 -0300 |
commit | 059d48fbf61bec9aae7cd9a00604d7ccf95463b5 (patch) | |
tree | 01988e8ab2d0d07ae04b8aab9601ba45148e095d /drivers/infiniband/hw/qib/qib_iba7322.c | |
parent | 03b92789e5cfdac66805c1a98f1ec67336199d56 (diff) | |
download | linux-059d48fbf61bec9aae7cd9a00604d7ccf95463b5.tar.gz linux-059d48fbf61bec9aae7cd9a00604d7ccf95463b5.tar.bz2 linux-059d48fbf61bec9aae7cd9a00604d7ccf95463b5.zip |
qib: Convert qib_unit_table to XArray
Also remove qib_devs_list.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_iba7322.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_iba7322.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index 17d6b24b3473..5f4aa36e5ca4 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c @@ -6140,7 +6140,7 @@ static void set_no_qsfp_atten(struct qib_devdata *dd, int change) static int setup_txselect(const char *str, const struct kernel_param *kp) { struct qib_devdata *dd; - unsigned long val; + unsigned long index, val; char *n; if (strlen(str) >= ARRAY_SIZE(txselect_list)) { @@ -6156,7 +6156,7 @@ static int setup_txselect(const char *str, const struct kernel_param *kp) } strncpy(txselect_list, str, ARRAY_SIZE(txselect_list) - 1); - list_for_each_entry(dd, &qib_dev_list, list) + xa_for_each(&qib_dev_table, index, dd) if (dd->deviceid == PCI_DEVICE_ID_QLOGIC_IB_7322) set_no_qsfp_atten(dd, 1); return 0; |