From patchwork Thu Oct 13 17:51:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 9375603 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 5C410607FD for ; Thu, 13 Oct 2016 18:22:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EC5F2A167 for ; Thu, 13 Oct 2016 18:22:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42F852A172; Thu, 13 Oct 2016 18:22:24 +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 BBFEA2A167 for ; Thu, 13 Oct 2016 18:22:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933503AbcJMSWW (ORCPT ); Thu, 13 Oct 2016 14:22:22 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:55455 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932753AbcJMSWV (ORCPT ); Thu, 13 Oct 2016 14:22:21 -0400 Received: from [83.175.99.196] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.85_2 #1 (Red Hat Linux)) id 1bukAp-00028d-LF for linux-rdma@vger.kernel.org; Thu, 13 Oct 2016 17:52:08 +0000 From: Christoph Hellwig To: linux-rdma@vger.kernel.org Subject: [PATCH 10/32] iwpmd: move external declarations to iwarp_pm.h Date: Thu, 13 Oct 2016 19:51:13 +0200 Message-Id: <1476381095-20041-11-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.h | 8 ++++++++ iwpmd/iwarp_pm_common.c | 2 -- iwpmd/iwarp_pm_helper.c | 6 ------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iwpmd/iwarp_pm.h b/iwpmd/iwarp_pm.h index 1a2b69a..766e34f 100644 --- a/iwpmd/iwarp_pm.h +++ b/iwpmd/iwarp_pm.h @@ -277,4 +277,12 @@ void free_iwpm_mapped_ports(void); extern struct list_head pending_messages; extern struct list_head mapping_reqs; +extern iwpm_client client_list[IWARP_PM_MAX_CLIENTS]; + +extern pthread_cond_t cond_req_complete; +extern pthread_mutex_t map_req_mutex; +extern int wake; +extern pthread_cond_t cond_pending_msg; +extern pthread_mutex_t pending_msg_mutex; + #endif diff --git a/iwpmd/iwarp_pm_common.c b/iwpmd/iwarp_pm_common.c index aa6b4a0..b20a368 100644 --- a/iwpmd/iwarp_pm_common.c +++ b/iwpmd/iwarp_pm_common.c @@ -44,8 +44,6 @@ char * iwpm_param_names[IWPM_PARAM_NUM] = int iwpm_param_vals[IWPM_PARAM_NUM] = { 0 }; -extern iwpm_client client_list[IWARP_PM_MAX_CLIENTS]; - /** * get_iwpm_param() */ diff --git a/iwpmd/iwarp_pm_helper.c b/iwpmd/iwarp_pm_helper.c index 0b115c8..63530f1 100644 --- a/iwpmd/iwarp_pm_helper.c +++ b/iwpmd/iwarp_pm_helper.c @@ -35,12 +35,6 @@ static LIST_HEAD(mapped_ports); /* list of mapped ports */ -extern pthread_cond_t cond_req_complete; -extern pthread_mutex_t map_req_mutex; -extern int wake; /* set if map_req_thread is wake */ -extern pthread_cond_t cond_pending_msg; -extern pthread_mutex_t pending_msg_mutex; - /** * create_iwpm_map_request - Create a new map request tracking object * @req_nlh: netlink header of the received client message