From patchwork Thu Oct 13 17:51:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9375609 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 11087607FD for ; Thu, 13 Oct 2016 18:22:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 057D12A16D for ; Thu, 13 Oct 2016 18:22:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE3FC2A176; Thu, 13 Oct 2016 18:22:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 870052A16D for ; Thu, 13 Oct 2016 18:22:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933776AbcJMSWf (ORCPT ); Thu, 13 Oct 2016 14:22:35 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:55802 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933943AbcJMSWd (ORCPT ); Thu, 13 Oct 2016 14:22:33 -0400 Received: from [83.175.99.196] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1bukAv-0002Az-DP for linux-rdma@vger.kernel.org; Thu, 13 Oct 2016 17:52:13 +0000 From: Christoph Hellwig To: linux-rdma@vger.kernel.org Subject: [PATCH 12/32] iwpmd: fix the prototype for the pthread_create start functions Date: Thu, 13 Oct 2016 19:51:15 +0200 Message-Id: <1476381095-20041-13-git-send-email-hch@lst.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1476381095-20041-1-git-send-email-hch@lst.de> References: <1476381095-20041-1-git-send-email-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP And also remove the unessecary taking of the address for function arguments while we're at it. Signed-off-by: Christoph Hellwig Reviewed-by: Steve Wise --- iwpmd/iwarp_pm_server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iwpmd/iwarp_pm_server.c b/iwpmd/iwarp_pm_server.c index b8ae3e3..ab90c6c 100644 --- a/iwpmd/iwarp_pm_server.c +++ b/iwpmd/iwarp_pm_server.c @@ -87,7 +87,7 @@ static void iwpm_signal_handler(int signum) /** * iwpm_mapping_reqs_handler - Handle mapping requests timeouts and retries */ -static void *iwpm_mapping_reqs_handler(void) +static void *iwpm_mapping_reqs_handler(void *unused) { iwpm_mapping_request *iwpm_map_req, *next_map_req; int ret = 0; @@ -139,7 +139,7 @@ mapping_reqs_handler_exit: /** * iwpm_pending_msgs_handler - Handle sending iwarp port mapper wire messages */ -static void *iwpm_pending_msgs_handler(void) +static void *iwpm_pending_msgs_handler(void *unused) { iwpm_pending_msg *pending_msg; iwpm_send_msg *send_msg; @@ -1438,11 +1438,11 @@ int main(int argc, char *argv[]) pthread_cond_init(&cond_req_complete, NULL); pthread_cond_init(&cond_pending_msg, NULL); - ret = pthread_create(&map_req_thread, NULL, &iwpm_mapping_reqs_handler, NULL); + ret = pthread_create(&map_req_thread, NULL, iwpm_mapping_reqs_handler, NULL); if (ret) goto error_exit; - ret = pthread_create(&pending_msg_thread, NULL, &iwpm_pending_msgs_handler, NULL); + ret = pthread_create(&pending_msg_thread, NULL, iwpm_pending_msgs_handler, NULL); if (ret) goto error_exit;