From patchwork Mon Oct 17 19:11:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9380301 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 9B0BA60487 for ; Mon, 17 Oct 2016 19:12:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EE3928567 for ; Mon, 17 Oct 2016 19:12:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7374928FE7; Mon, 17 Oct 2016 19:12:06 +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 15D8928567 for ; Mon, 17 Oct 2016 19:12:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964865AbcJQTMF (ORCPT ); Mon, 17 Oct 2016 15:12:05 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:56990 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964808AbcJQTME (ORCPT ); Mon, 17 Oct 2016 15:12:04 -0400 Received: from [83.175.99.196] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwDKO-0006cN-19 for linux-rdma@vger.kernel.org; Mon, 17 Oct 2016 19:12:04 +0000 From: Christoph Hellwig To: linux-rdma@vger.kernel.org Subject: [PATCH 12/13] ibacm: mark symbols static where possible Date: Mon, 17 Oct 2016 21:11:21 +0200 Message-Id: <1476731482-26491-13-git-send-email-hch@lst.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1476731482-26491-1-git-send-email-hch@lst.de> References: <1476731482-26491-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 --- ibacm/prov/acmp/src/acmp.c | 2 +- ibacm/src/acm.c | 2 +- ibacm/src/acme.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ibacm/prov/acmp/src/acmp.c b/ibacm/prov/acmp/src/acmp.c index 1e37ee4..2ca0bf5 100644 --- a/ibacm/prov/acmp/src/acmp.c +++ b/ibacm/prov/acmp/src/acmp.c @@ -259,7 +259,7 @@ static atomic_t wait_cnt; static pthread_t retry_thread_id; static int retry_thread_started = 0; -__thread char log_data[ACM_MAX_ADDRESS]; +static __thread char log_data[ACM_MAX_ADDRESS]; /* * Service options - may be set through ibacm_opts.cfg file. diff --git a/ibacm/src/acm.c b/ibacm/src/acm.c index 0571363..b7f1dc0 100644 --- a/ibacm/src/acm.c +++ b/ibacm/src/acm.c @@ -186,7 +186,7 @@ static struct acmc_client client_array[FD_SETSIZE - 1]; static FILE *flog; static pthread_mutex_t log_lock; -__thread char log_data[ACM_MAX_ADDRESS]; +static __thread char log_data[ACM_MAX_ADDRESS]; static atomic_t counter[ACM_MAX_COUNTER]; static struct acmc_device * diff --git a/ibacm/src/acme.c b/ibacm/src/acme.c index 5a571cf..36221f4 100644 --- a/ibacm/src/acme.c +++ b/ibacm/src/acme.c @@ -69,10 +69,10 @@ enum perf_query_output { PERF_QUERY_EP_ADDR }; static enum perf_query_output perf_query; -int verbose; +static int verbose; -struct ibv_context **verbs; -int dev_cnt; +static struct ibv_context **verbs; +static int dev_cnt; #define VPRINT(format, ...) do { if (verbose) printf(format, ## __VA_ARGS__ ); } while (0)