From db38076da5c1a25284cafa13ba0859499494cd19 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Tue, 4 May 2010 16:18:26 -0700 Subject: [PATCH] ibacm: fix building warnings Fix build warnings compiling on 2.6.18-164.el5 Signed-off-by: Sean Hefty --- linux/acme_linux.c | 1 - linux/dlist.h | 3 ++- linux/osd.h | 1 + src/acm.c | 6 +++--- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/linux/acme_linux.c b/linux/acme_linux.c index f3ae745..2cb422a 100644 --- a/linux/acme_linux.c +++ b/linux/acme_linux.c @@ -40,7 +40,6 @@ #include #include -#include extern struct ibv_context **verbs; extern int dev_cnt; diff --git a/linux/dlist.h b/linux/dlist.h index 5cf9304..dc4934d 100644 --- a/linux/dlist.h +++ b/linux/dlist.h @@ -78,4 +78,5 @@ static void DListRemove(DLIST_ENTRY *pEntry) } #endif -#endif // _DLIST_H_ \ No newline at end of file +#endif // _DLIST_H_ + diff --git a/linux/osd.h b/linux/osd.h index 6c74ad3..dc8bc1f 100644 --- a/linux/osd.h +++ b/linux/osd.h @@ -122,3 +122,4 @@ static inline int beginthread(void (*func)(void *), void *arg) } #endif /* OSD_H */ + diff --git a/src/acm.c b/src/acm.c index 5cbc080..5fe89be 100644 --- a/src/acm.c +++ b/src/acm.c @@ -1094,7 +1094,7 @@ static void acm_process_acm_recv(struct acm_ep *ep, struct ibv_wc *wc, struct ac } static int -acm_client_query_resp(struct acm_ep *ep, struct acm_client *client, +acm_client_query_resp(struct acm_client *client, struct acm_resolve_msg *msg, uint8_t status) { int ret; @@ -1138,7 +1138,7 @@ acm_client_sa_resp(struct acm_send_msg *msg, struct ibv_wc *wc, struct acm_mad * } acm_log(2, "status 0x%x\n", status); - acm_client_query_resp(msg->ep, req->client, client_req, status); + acm_client_query_resp(req->client, client_req, status); acm_free_req(req); } @@ -1726,7 +1726,7 @@ acm_svr_query(struct acm_client *client, struct acm_resolve_msg *msg) acm_free_req(req); resp: - return acm_client_query_resp(ep, client, msg, status); + return acm_client_query_resp(client, msg, status); } static uint8_t -- 2.41.0