Merge branch 'timer_setup' into for-next
authorDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 17:12:09 +0000 (13:12 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 18 Oct 2017 17:12:09 +0000 (13:12 -0400)
Conflicts:
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/qib/qib_driver.c
drivers/infiniband/hw/qib/qib_mad.c

There were minor fixups needed in these files.  Just minor context diffs
due to patches from independent sources touching the same basic area.

Signed-off-by: Doug Ledford <dledford@redhat.com>
29 files changed:
1  2 
drivers/infiniband/hw/cxgb3/iwch_cm.c
drivers/infiniband/hw/cxgb4/cm.c
drivers/infiniband/hw/cxgb4/iw_cxgb4.h
drivers/infiniband/hw/cxgb4/qp.c
drivers/infiniband/hw/hfi1/chip.c
drivers/infiniband/hw/hfi1/driver.c
drivers/infiniband/hw/hfi1/init.c
drivers/infiniband/hw/hfi1/mad.c
drivers/infiniband/hw/hfi1/sdma.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_utils.c
drivers/infiniband/hw/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_hw.c
drivers/infiniband/hw/nes/nes_nic.c
drivers/infiniband/hw/nes/nes_utils.c
drivers/infiniband/hw/nes/nes_verbs.c
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_7220.h
drivers/infiniband/hw/qib/qib_iba6120.c
drivers/infiniband/hw/qib/qib_iba7220.c
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/hw/qib/qib_mad.c
drivers/infiniband/hw/qib/qib_sd7220.c
drivers/infiniband/hw/qib/qib_tx.c
drivers/infiniband/hw/qib/qib_verbs.c
drivers/infiniband/sw/rdmavt/qp.c
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_main.c

Simple merge
index 78e2916f9c78c423550de73c86cf617387175305,fc981e68f0b27db95e5fefd1e56eeda318785177..7eb8a85e4d42c954ba268076971bf248486aa811
@@@ -2102,9 -2098,8 +2100,8 @@@ static int c4iw_reconnect(struct c4iw_e
        int iptype;
        __u8 *ra;
  
 -      pr_debug("%s qp %p cm_id %p\n", __func__, ep->com.qp, ep->com.cm_id);
 -      c4iw_init_wr_wait(&ep->com.wr_wait);
 +      pr_debug("qp %p cm_id %p\n", ep->com.qp, ep->com.cm_id);
-       init_timer(&ep->timer);
 +      c4iw_init_wr_wait(ep->com.wr_waitp);
  
        /* When MPA revision is different on nodes, the node with MPA_rev=2
         * tries to reconnect with MPA_rev 1 for the same EP through
@@@ -2578,10 -2573,10 +2575,10 @@@ static int pass_accept_req(struct c4iw_
        child_ep->dst = dst;
        child_ep->hwtid = hwtid;
  
 -      pr_debug("%s tx_chan %u smac_idx %u rss_qid %u\n", __func__,
 +      pr_debug("tx_chan %u smac_idx %u rss_qid %u\n",
                 child_ep->tx_chan, child_ep->smac_idx, child_ep->rss_qid);
  
-       init_timer(&child_ep->timer);
+       timer_setup(&child_ep->timer, ep_timeout, 0);
        cxgb4_insert_tid(t, child_ep, hwtid,
                         child_ep->com.local_addr.ss_family);
        insert_ep_tid(child_ep);
index 56655a00012166615b9ea1b0f54d0ce67177ff04,c306def0501c7dbb3126c8750c9e8a4a5b0ad3f9..57b23e33eb8b4ebb49c07d201a15cc53e302c539
@@@ -1929,9 -1935,9 +1929,8 @@@ struct ib_qp *c4iw_create_qp(struct ib_
                qhp->ucontext = ucontext;
        }
        qhp->ibqp.qp_num = qhp->wq.sq.qid;
-       init_timer(&(qhp->timer));
        INIT_LIST_HEAD(&qhp->db_fc_entry);
 -      pr_debug("%s sq id %u size %u memsize %zu num_entries %u rq id %u size %u memsize %zu num_entries %u\n",
 -               __func__,
 +      pr_debug("sq id %u size %u memsize %zu num_entries %u rq id %u size %u memsize %zu num_entries %u\n",
                 qhp->wq.sq.qid, qhp->wq.sq.size, qhp->wq.sq.memsize,
                 attrs->cap.max_send_wr, qhp->wq.rq.qid, qhp->wq.rq.size,
                 qhp->wq.rq.memsize, attrs->cap.max_recv_wr);
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index f5cfb224e153a30ce49a32acc9945a0600757ae2,af7526a275b824f4e4c161bc7040db28f42e9630..4bd54b3675322579cc95b7559b55aae16f8c9b9d
@@@ -1196,9 -1196,10 +1196,9 @@@ static void i40iw_cm_timer_tick(struct 
        struct list_head *list_core_temp;
        struct i40iw_sc_vsi *vsi;
        struct list_head *list_node;
-       struct i40iw_cm_core *cm_core = (struct i40iw_cm_core *)pass;
+       struct i40iw_cm_core *cm_core = from_timer(cm_core, t, tcp_timer);
        u32 settimer = 0;
        unsigned long timetosend;
 -      struct i40iw_sc_dev *dev;
        unsigned long flags;
  
        struct list_head timer_list;
Simple merge
Simple merge
Simple merge
index 0613eb5006cc2d26eaf149e812876405a8b69310,1dc0527e5a05a0088685fb2ff30693f78a70e8b6..21b4a8373acfcaa22e6f942ffd9cd3600b51a2d5
@@@ -880,17 -881,16 +880,16 @@@ no_mh_work
  /**
   * nes_clc
   */
- void nes_clc(unsigned long parm)
+ void nes_clc(struct timer_list *t)
  {
+       struct nes_adapter *nesadapter = from_timer(nesadapter, t, lc_timer);
        unsigned long flags;
-       struct nes_device *nesdev = (struct nes_device *)parm;
-       struct nes_adapter *nesadapter = nesdev->nesadapter;
  
        spin_lock_irqsave(&nesadapter->phy_lock, flags);
 -    nesadapter->link_interrupt_count[0] = 0;
 -    nesadapter->link_interrupt_count[1] = 0;
 -    nesadapter->link_interrupt_count[2] = 0;
 -    nesadapter->link_interrupt_count[3] = 0;
 +      nesadapter->link_interrupt_count[0] = 0;
 +      nesadapter->link_interrupt_count[1] = 0;
 +      nesadapter->link_interrupt_count[2] = 0;
 +      nesadapter->link_interrupt_count[3] = 0;
        spin_unlock_irqrestore(&nesadapter->phy_lock, flags);
  
        nesadapter->lc_timer.expires = jiffies + 3600 * HZ;  /* 1 hour */
Simple merge
index 689f5d00189267fde1913946da42c37020a46c08,f9541a0ee5cd13a059d3e2f847520963b0ceaef2..092ed81038425b7fa6df2be147abbc63d92777f1
@@@ -1280,9 -1299,10 +1280,9 @@@ int qib_twsi_blk_rd(struct qib_devdata 
  int qib_twsi_blk_wr(struct qib_devdata *dd, int dev, int addr,
                    const void *buffer, int len);
  void qib_get_eeprom_info(struct qib_devdata *);
 -#define qib_inc_eeprom_err(dd, eidx, incr)
  void qib_dump_lookup_output_queue(struct qib_devdata *);
  void qib_force_pio_avail_update(struct qib_devdata *);
- void qib_clear_symerror_on_linkup(unsigned long opaque);
+ void qib_clear_symerror_on_linkup(struct timer_list *t);
  
  /*
   * Set LED override, only the two LSBs have "public" meaning, but
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge