All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IB/hfi1: Remove the repeated declaration
@ 2021-05-19  9:43 Shaokun Zhang
  2021-05-20 15:30 ` Jason Gunthorpe
  0 siblings, 1 reply; 2+ messages in thread
From: Shaokun Zhang @ 2021-05-19  9:43 UTC (permalink / raw)
  To: linux-rdma
  Cc: Shaokun Zhang, Mike Marciniszyn, Dennis Dalessandro,
	Doug Ledford, Jason Gunthorpe

Function 'init_credit_return' and 'sc_return_credits' are declared
twice, remove the repeated declaration.

Cc: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
---
 drivers/infiniband/hw/hfi1/pio.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/infiniband/hw/hfi1/pio.h b/drivers/infiniband/hw/hfi1/pio.h
index 0102262343c0..9e5f08d2b985 100644
--- a/drivers/infiniband/hw/hfi1/pio.h
+++ b/drivers/infiniband/hw/hfi1/pio.h
@@ -279,7 +279,6 @@ int init_credit_return(struct hfi1_devdata *dd);
 void free_credit_return(struct hfi1_devdata *dd);
 int init_sc_pools_and_sizes(struct hfi1_devdata *dd);
 int init_send_contexts(struct hfi1_devdata *dd);
-int init_credit_return(struct hfi1_devdata *dd);
 int init_pervl_scs(struct hfi1_devdata *dd);
 struct send_context *sc_alloc(struct hfi1_devdata *dd, int type,
 			      uint hdrqentsize, int numa);
@@ -294,7 +293,6 @@ void sc_stop(struct send_context *sc, int bit);
 struct pio_buf *sc_buffer_alloc(struct send_context *sc, u32 dw_len,
 				pio_release_cb cb, void *arg);
 void sc_release_update(struct send_context *sc);
-void sc_return_credits(struct send_context *sc);
 void sc_group_release_update(struct hfi1_devdata *dd, u32 hw_context);
 void sc_add_credit_return_intr(struct send_context *sc);
 void sc_del_credit_return_intr(struct send_context *sc);
-- 
2.7.4


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

* Re: [PATCH] IB/hfi1: Remove the repeated declaration
  2021-05-19  9:43 [PATCH] IB/hfi1: Remove the repeated declaration Shaokun Zhang
@ 2021-05-20 15:30 ` Jason Gunthorpe
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Gunthorpe @ 2021-05-20 15:30 UTC (permalink / raw)
  To: Shaokun Zhang
  Cc: linux-rdma, Mike Marciniszyn, Dennis Dalessandro, Doug Ledford

On Wed, May 19, 2021 at 05:43:35PM +0800, Shaokun Zhang wrote:
> Function 'init_credit_return' and 'sc_return_credits' are declared
> twice, remove the repeated declaration.
> 
> Cc: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
> Cc: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
> Cc: Doug Ledford <dledford@redhat.com>
> Cc: Jason Gunthorpe <jgg@ziepe.ca>
> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
> ---
>  drivers/infiniband/hw/hfi1/pio.h | 2 --
>  1 file changed, 2 deletions(-)

Applied to for-next, thanks

Jason

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

end of thread, other threads:[~2021-05-20 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19  9:43 [PATCH] IB/hfi1: Remove the repeated declaration Shaokun Zhang
2021-05-20 15:30 ` Jason Gunthorpe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.