From patchwork Thu Oct 13 17:51:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9375573 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 4267D607FD for ; Thu, 13 Oct 2016 17:53:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2927B2A15E for ; Thu, 13 Oct 2016 17:53:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BC612A167; Thu, 13 Oct 2016 17:53: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 1065D2A15E for ; Thu, 13 Oct 2016 17:53:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934457AbcJMRxd (ORCPT ); Thu, 13 Oct 2016 13:53:33 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:49929 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934401AbcJMRxd (ORCPT ); Thu, 13 Oct 2016 13:53: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 1bukAj-0001yx-Nr for linux-rdma@vger.kernel.org; Thu, 13 Oct 2016 17:52:02 +0000 From: Christoph Hellwig To: linux-rdma@vger.kernel.org Subject: [PATCH 08/32] iwpmd: use proper ANSI-C prototypes for functions without arguments Date: Thu, 13 Oct 2016 19:51:11 +0200 Message-Id: <1476381095-20041-9-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 Signed-off-by: Christoph Hellwig Reviewed-by: Steve Wise --- iwpmd/iwarp_pm_common.c | 2 +- iwpmd/iwarp_pm_server.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iwpmd/iwarp_pm_common.c b/iwpmd/iwarp_pm_common.c index 3a885d8..aa6b4a0 100644 --- a/iwpmd/iwarp_pm_common.c +++ b/iwpmd/iwarp_pm_common.c @@ -212,7 +212,7 @@ create_socket_v6_exit: /** * create_netlink_socket - Create netlink socket for the iwarp port mapper */ -int create_netlink_socket() +int create_netlink_socket(void) { sockaddr_union bind_addr; struct sockaddr_nl *bind_nl; diff --git a/iwpmd/iwarp_pm_server.c b/iwpmd/iwarp_pm_server.c index deed3e7..89d3ee5 100644 --- a/iwpmd/iwarp_pm_server.c +++ b/iwpmd/iwarp_pm_server.c @@ -87,7 +87,7 @@ void iwpm_signal_handler(int signum) /** * iwpm_mapping_reqs_handler - Handle mapping requests timeouts and retries */ -void *iwpm_mapping_reqs_handler() +void *iwpm_mapping_reqs_handler(void) { 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 */ -void *iwpm_pending_msgs_handler() +void *iwpm_pending_msgs_handler(void) { iwpm_pending_msg *pending_msg; iwpm_send_msg *send_msg; @@ -1279,7 +1279,7 @@ static void iwpm_cleanup(void) /** * iwarp_port_mapper - Distribute work orders for processing different types of iwpm messages */ -static int iwarp_port_mapper() +static int iwarp_port_mapper(void) { fd_set select_fdset; /* read fdset */ struct timeval select_timeout; @@ -1355,8 +1355,8 @@ iwarp_port_mapper_exit: /** * daemonize_iwpm_server - Make iwarp port mapper a daemon process - */ -static void daemonize_iwpm_server() + */ +static void daemonize_iwpm_server(void) { pid_t pid, sid;