From patchwork Thu Oct 13 17:51:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9375617 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 60A03607FD for ; Thu, 13 Oct 2016 18:22:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56FEE2A167 for ; Thu, 13 Oct 2016 18:22:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C5122A176; Thu, 13 Oct 2016 18:22:59 +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 E9D022A167 for ; Thu, 13 Oct 2016 18:22:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934907AbcJMSWl (ORCPT ); Thu, 13 Oct 2016 14:22:41 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:55839 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933655AbcJMSWi (ORCPT ); Thu, 13 Oct 2016 14:22:38 -0400 Received: from [83.175.99.196] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1bukAe-0001yM-ET for linux-rdma@vger.kernel.org; Thu, 13 Oct 2016 17:51:56 +0000 From: Christoph Hellwig To: linux-rdma@vger.kernel.org Subject: [PATCH 06/32] srp_daemon: mark symbols as static where possible Date: Thu, 13 Oct 2016 19:51:09 +0200 Message-Id: <1476381095-20041-7-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: Bart Van Assche --- srp_daemon/srp_daemon.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/srp_daemon/srp_daemon.c b/srp_daemon/srp_daemon.c index 2317508..f0f05cf 100644 --- a/srp_daemon/srp_daemon.c +++ b/srp_daemon/srp_daemon.c @@ -151,7 +151,7 @@ static int check_process_uniqueness(struct config_t *conf) return fd; } -int srpd_sys_read_string(const char *dir_name, const char *file_name, +static int srpd_sys_read_string(const char *dir_name, const char *file_name, char *str, int max_len) { char path[256], *s; @@ -177,7 +177,7 @@ int srpd_sys_read_string(const char *dir_name, const char *file_name, return 0; } -int srpd_sys_read_gid(char *dir_name, char *file_name, uint8_t *gid) +static int srpd_sys_read_gid(char *dir_name, char *file_name, uint8_t *gid) { char buf[64], *str, *s; uint16_t *ugid = (uint16_t *)gid; @@ -195,7 +195,7 @@ int srpd_sys_read_gid(char *dir_name, char *file_name, uint8_t *gid) return 0; } -int srpd_sys_read_uint64(char *dir_name, char *file_name, uint64_t *u) +static int srpd_sys_read_uint64(char *dir_name, char *file_name, uint64_t *u) { char buf[32]; int r; @@ -257,7 +257,7 @@ check_equal_uint16(char *dir_name, char *attr, uint16_t val) static int recalc(struct resources *res); -void pr_cmd(char *target_str, int not_connected) +static void pr_cmd(char *target_str, int not_connected) { int ret; @@ -343,7 +343,7 @@ static int check_not_equal_int(char *dir_name, char *attr, int value) return 0; } -int is_enabled_by_rules_file(struct target_details *target) +static int is_enabled_by_rules_file(struct target_details *target) { int rule; struct config_t *conf = config; @@ -584,7 +584,7 @@ static int add_non_exist_target(struct target_details *target) return 1; } -int send_and_get(int portid, int agent, srp_ib_user_mad_t *out_mad, +static int send_and_get(int portid, int agent, srp_ib_user_mad_t *out_mad, srp_ib_user_mad_t *in_mad, int in_mad_size) { struct srp_dm_mad *out_dm_mad = (void *) out_mad->hdr.data; @@ -1804,7 +1804,7 @@ static int umad_resources_create(struct umad_resources *umad_res) return 0; } -void *run_thread_retry_to_connect(void *res_in) +static void *run_thread_retry_to_connect(void *res_in) { struct resources *res = (struct resources *)res_in; struct target_details *target;