linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IB/qib: Remove empty function
@ 2017-01-18  5:57 Leon Romanovsky
       [not found] ` <20170118055758.27237-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Leon Romanovsky @ 2017-01-18  5:57 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA, Mike Marciniszyn
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Commit f06267104dd9 ("RDMA: Update workqueue usage") removed
content of qib_qsfp_deinit(...) and left it empty.

This patch deletes all leftovers of that function.

Signed-off-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
 drivers/infiniband/hw/qib/qib_iba7322.c |  1 -
 drivers/infiniband/hw/qib/qib_qsfp.c    | 10 ----------
 drivers/infiniband/hw/qib/qib_qsfp.h    |  1 -
 3 files changed, 12 deletions(-)

diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c
index c4a36160..9cc97bd 100644
--- a/drivers/infiniband/hw/qib/qib_iba7322.c
+++ b/drivers/infiniband/hw/qib/qib_iba7322.c
@@ -2893,7 +2893,6 @@ static void qib_setup_7322_cleanup(struct qib_devdata *dd)
 			dd->cspec->gpio_mask &= ~mask;
 			qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask);
 			spin_unlock_irqrestore(&dd->cspec->gpio_lock, flags);
-			qib_qsfp_deinit(&dd->pport[i].cpspec->qsfp_data);
 		}
 	}
 }
diff --git a/drivers/infiniband/hw/qib/qib_qsfp.c b/drivers/infiniband/hw/qib/qib_qsfp.c
index 4c7c3c8..295d40a 100644
--- a/drivers/infiniband/hw/qib/qib_qsfp.c
+++ b/drivers/infiniband/hw/qib/qib_qsfp.c
@@ -485,16 +485,6 @@ void qib_qsfp_init(struct qib_qsfp_data *qd,
 	dd->f_gpio_mod(dd, mask, mask, mask);
 }
 
-void qib_qsfp_deinit(struct qib_qsfp_data *qd)
-{
-	/*
-	 * There is nothing to do here for now.  our work is scheduled
-	 * with queue_work(), and flush_workqueue() from remove_one
-	 * will block until all work setup with queue_work()
-	 * completes.
-	 */
-}
-
 int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len)
 {
 	struct qib_qsfp_cache cd;
diff --git a/drivers/infiniband/hw/qib/qib_qsfp.h b/drivers/infiniband/hw/qib/qib_qsfp.h
index 91908f5..ad8dbd6 100644
--- a/drivers/infiniband/hw/qib/qib_qsfp.h
+++ b/drivers/infiniband/hw/qib/qib_qsfp.h
@@ -186,4 +186,3 @@ extern int qib_refresh_qsfp_cache(struct qib_pportdata *ppd,
 extern int qib_qsfp_mod_present(struct qib_pportdata *ppd);
 extern void qib_qsfp_init(struct qib_qsfp_data *qd,
 			  void (*fevent)(struct work_struct *));
-extern void qib_qsfp_deinit(struct qib_qsfp_data *qd);
-- 
2.10.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] IB/qib: Remove empty function
       [not found] ` <20170118055758.27237-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
@ 2017-01-18  6:22   ` Yuval Shaia
  2017-01-24 21:25   ` Doug Ledford
  1 sibling, 0 replies; 3+ messages in thread
From: Yuval Shaia @ 2017-01-18  6:22 UTC (permalink / raw)
  To: Leon Romanovsky
  Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA, Mike Marciniszyn,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA

On Wed, Jan 18, 2017 at 07:57:58AM +0200, Leon Romanovsky wrote:
> Commit f06267104dd9 ("RDMA: Update workqueue usage") removed
> content of qib_qsfp_deinit(...) and left it empty.
> 
> This patch deletes all leftovers of that function.
> 
> Signed-off-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
>  drivers/infiniband/hw/qib/qib_iba7322.c |  1 -
>  drivers/infiniband/hw/qib/qib_qsfp.c    | 10 ----------
>  drivers/infiniband/hw/qib/qib_qsfp.h    |  1 -
>  3 files changed, 12 deletions(-)
> 
> diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c
> index c4a36160..9cc97bd 100644
> --- a/drivers/infiniband/hw/qib/qib_iba7322.c
> +++ b/drivers/infiniband/hw/qib/qib_iba7322.c
> @@ -2893,7 +2893,6 @@ static void qib_setup_7322_cleanup(struct qib_devdata *dd)
>  			dd->cspec->gpio_mask &= ~mask;
>  			qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask);
>  			spin_unlock_irqrestore(&dd->cspec->gpio_lock, flags);
> -			qib_qsfp_deinit(&dd->pport[i].cpspec->qsfp_data);
>  		}
>  	}
>  }
> diff --git a/drivers/infiniband/hw/qib/qib_qsfp.c b/drivers/infiniband/hw/qib/qib_qsfp.c
> index 4c7c3c8..295d40a 100644
> --- a/drivers/infiniband/hw/qib/qib_qsfp.c
> +++ b/drivers/infiniband/hw/qib/qib_qsfp.c
> @@ -485,16 +485,6 @@ void qib_qsfp_init(struct qib_qsfp_data *qd,
>  	dd->f_gpio_mod(dd, mask, mask, mask);
>  }
>  
> -void qib_qsfp_deinit(struct qib_qsfp_data *qd)
> -{
> -	/*
> -	 * There is nothing to do here for now.  our work is scheduled
> -	 * with queue_work(), and flush_workqueue() from remove_one
> -	 * will block until all work setup with queue_work()
> -	 * completes.
> -	 */
> -}
> -
>  int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len)
>  {
>  	struct qib_qsfp_cache cd;
> diff --git a/drivers/infiniband/hw/qib/qib_qsfp.h b/drivers/infiniband/hw/qib/qib_qsfp.h
> index 91908f5..ad8dbd6 100644
> --- a/drivers/infiniband/hw/qib/qib_qsfp.h
> +++ b/drivers/infiniband/hw/qib/qib_qsfp.h
> @@ -186,4 +186,3 @@ extern int qib_refresh_qsfp_cache(struct qib_pportdata *ppd,
>  extern int qib_qsfp_mod_present(struct qib_pportdata *ppd);
>  extern void qib_qsfp_init(struct qib_qsfp_data *qd,
>  			  void (*fevent)(struct work_struct *));
> -extern void qib_qsfp_deinit(struct qib_qsfp_data *qd);
> -- 

Reviewed-by: Yuval Shaia <yuval.shaia-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>

> 2.10.2
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] IB/qib: Remove empty function
       [not found] ` <20170118055758.27237-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  2017-01-18  6:22   ` Yuval Shaia
@ 2017-01-24 21:25   ` Doug Ledford
  1 sibling, 0 replies; 3+ messages in thread
From: Doug Ledford @ 2017-01-24 21:25 UTC (permalink / raw)
  To: Leon Romanovsky, Mike Marciniszyn; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

On Wed, 2017-01-18 at 07:57 +0200, Leon Romanovsky wrote:
> Commit f06267104dd9 ("RDMA: Update workqueue usage") removed
> content of qib_qsfp_deinit(...) and left it empty.
> 
> This patch deletes all leftovers of that function.
> 
> Signed-off-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>

Thanks, applied to -next area.

-- 
Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-01-24 21:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18  5:57 [PATCH] IB/qib: Remove empty function Leon Romanovsky
     [not found] ` <20170118055758.27237-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-01-18  6:22   ` Yuval Shaia
2017-01-24 21:25   ` Doug Ledford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).