From patchwork Thu Oct 13 17:51:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9375607 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 92E0260865 for ; Thu, 13 Oct 2016 18:22:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88DA52A167 for ; Thu, 13 Oct 2016 18:22:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DC432A172; Thu, 13 Oct 2016 18:22:32 +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 149D12A16D for ; Thu, 13 Oct 2016 18:22:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932666AbcJMSW2 (ORCPT ); Thu, 13 Oct 2016 14:22:28 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:55760 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933630AbcJMSW0 (ORCPT ); Thu, 13 Oct 2016 14:22:26 -0400 Received: from [83.175.99.196] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1bukAy-0002G0-8x for linux-rdma@vger.kernel.org; Thu, 13 Oct 2016 17:52:16 +0000 From: Christoph Hellwig To: linux-rdma@vger.kernel.org Subject: [PATCH 13/32] librdmacm: mark symbols static where possible Date: Thu, 13 Oct 2016 19:51:16 +0200 Message-Id: <1476381095-20041-14-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 --- librdmacm/addrinfo.c | 2 +- librdmacm/examples/rcopy.c | 4 ++-- librdmacm/examples/rdma_client.c | 10 +++++----- librdmacm/examples/rdma_server.c | 10 +++++----- librdmacm/examples/rdma_xclient.c | 10 +++++----- librdmacm/examples/rdma_xserver.c | 10 +++++----- librdmacm/rsocket.c | 2 +- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/librdmacm/addrinfo.c b/librdmacm/addrinfo.c index 2f4e674..2c515a2 100644 --- a/librdmacm/addrinfo.c +++ b/librdmacm/addrinfo.c @@ -43,7 +43,7 @@ #include #include -struct rdma_addrinfo nohints; +static struct rdma_addrinfo nohints; static void ucma_convert_to_ai(struct addrinfo *ai, struct rdma_addrinfo *rai) { diff --git a/librdmacm/examples/rcopy.c b/librdmacm/examples/rcopy.c index 085b017..38f6929 100644 --- a/librdmacm/examples/rcopy.c +++ b/librdmacm/examples/rcopy.c @@ -59,8 +59,8 @@ static char *src_file; static struct timeval start, end; //static void buf[1024 * 1024]; static uint64_t bytes; -int fd; -void *file_addr; +static int fd; +static void *file_addr; enum { CMD_NOOP, diff --git a/librdmacm/examples/rdma_client.c b/librdmacm/examples/rdma_client.c index d7f65f5..fd7bbc2 100644 --- a/librdmacm/examples/rdma_client.c +++ b/librdmacm/examples/rdma_client.c @@ -39,11 +39,11 @@ static char *server = "127.0.0.1"; static char *port = "7471"; -struct rdma_cm_id *id; -struct ibv_mr *mr, *send_mr; -int send_flags; -uint8_t send_msg[16]; -uint8_t recv_msg[16]; +static struct rdma_cm_id *id; +static struct ibv_mr *mr, *send_mr; +static int send_flags; +static uint8_t send_msg[16]; +static uint8_t recv_msg[16]; static int run(void) { diff --git a/librdmacm/examples/rdma_server.c b/librdmacm/examples/rdma_server.c index d98d11a..3c7c15e 100644 --- a/librdmacm/examples/rdma_server.c +++ b/librdmacm/examples/rdma_server.c @@ -38,11 +38,11 @@ static char *port = "7471"; -struct rdma_cm_id *listen_id, *id; -struct ibv_mr *mr, *send_mr; -int send_flags; -uint8_t send_msg[16]; -uint8_t recv_msg[16]; +static struct rdma_cm_id *listen_id, *id; +static struct ibv_mr *mr, *send_mr; +static int send_flags; +static uint8_t send_msg[16]; +static uint8_t recv_msg[16]; static int run(void) { diff --git a/librdmacm/examples/rdma_xclient.c b/librdmacm/examples/rdma_xclient.c index 8dba266..d86fee1 100644 --- a/librdmacm/examples/rdma_xclient.c +++ b/librdmacm/examples/rdma_xclient.c @@ -40,12 +40,12 @@ static char *server = "127.0.0.1"; static char port[6] = "7471"; -struct rdma_cm_id *id; -struct ibv_mr *mr; -struct rdma_addrinfo hints; +static struct rdma_cm_id *id; +static struct ibv_mr *mr; +static struct rdma_addrinfo hints; -uint8_t send_msg[16]; -uint32_t srqn; +static uint8_t send_msg[16]; +static uint32_t srqn; static int post_send(void) { diff --git a/librdmacm/examples/rdma_xserver.c b/librdmacm/examples/rdma_xserver.c index 69f170b..f838e7d 100644 --- a/librdmacm/examples/rdma_xserver.c +++ b/librdmacm/examples/rdma_xserver.c @@ -40,12 +40,12 @@ static char *port = "7471"; -struct rdma_cm_id *listen_id, *id; -struct ibv_mr *mr; -struct rdma_addrinfo hints; +static struct rdma_cm_id *listen_id, *id; +static struct ibv_mr *mr; +static struct rdma_addrinfo hints; -uint8_t recv_msg[16]; -uint32_t srqn; +static uint8_t recv_msg[16]; +static uint32_t srqn; static int create_srq(void) { diff --git a/librdmacm/rsocket.c b/librdmacm/rsocket.c index 7e7a38e..e0755dd 100644 --- a/librdmacm/rsocket.c +++ b/librdmacm/rsocket.c @@ -505,7 +505,7 @@ static int rs_scale_to_value(int value, int bits) (void) rc; \ } -void rs_configure(void) +static void rs_configure(void) { FILE *f; static int init;