From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 607ADA0C47; Mon, 26 Jul 2021 15:59:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEBD5410EE; Mon, 26 Jul 2021 15:58:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1D6D1410F6 for ; Mon, 26 Jul 2021 15:58:54 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16QDuH1m006314; Mon, 26 Jul 2021 06:58:51 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=+C8IInlZIH8FbCUNP5yguvrjrUTpNrrF8siicNNqgIs=; b=VXUIvx1cLG9VePeOpDkS4kDSHipSw5YF31Hq/ObvOMXAOelxxC4TQxvvNuITMjKlXWVl Or7dCtOnptYZEVOaUfq695uHDS1iPw31tseG9phhUdBPH4qQIqWiYl9xK8NLM1qV5iUn tPwAhYR32kquxUR0HyzCHwHOBbqutPTtCWFHfftXcvRR6DCIWPO3eE9OKjrEVxQZM83f HtrsxElT3f8+u5HkBLwbMC7zkY3x/B09FVwTeW4pfXjfqX9BO2PvM71TvLVmQSqx42mC oe3VngU3vOszbVwoXRwfIqbrOJlIif+cX8ZyDV+IaeuqrBs5oEsh54EZ+Bwr6Q2sgPHh ng== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com with ESMTP id 3a1m961ura-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 26 Jul 2021 06:58:51 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 26 Jul 2021 06:58:49 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 26 Jul 2021 06:58:49 -0700 Received: from localhost.localdomain (unknown [10.28.34.39]) by maili.marvell.com (Postfix) with ESMTP id 218813F7057; Mon, 26 Jul 2021 06:58:46 -0700 (PDT) From: Tomasz Duszynski To: , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Ray Kinsella CC: , , Jakub Palider Date: Mon, 26 Jul 2021 08:58:13 -0500 Message-ID: <20210726135815.81201-5-tduszynski@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210726135815.81201-1-tduszynski@marvell.com> References: <20210726135815.81201-1-tduszynski@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: LI4dVkuKJWKogk8FxGXLQqkZgsFBgpXB X-Proofpoint-GUID: LI4dVkuKJWKogk8FxGXLQqkZgsFBgpXB X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-07-26_06:2021-07-26, 2021-07-26 signatures=0 Subject: [dpdk-dev] [PATCH 4/6] common/cnxk: reduce function visibility X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Jakub Palider Some functions are not used outside of local ROC scope. These need updating classifiers and removal from header. Signed-off-by: Jakub Palider --- drivers/common/cnxk/roc_bphy_irq.c | 6 +++--- drivers/common/cnxk/roc_bphy_irq.h | 6 ------ drivers/common/cnxk/version.map | 3 --- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/common/cnxk/roc_bphy_irq.c b/drivers/common/cnxk/roc_bphy_irq.c index 882066ef3f..be3c4054af 100644 --- a/drivers/common/cnxk/roc_bphy_irq.c +++ b/drivers/common/cnxk/roc_bphy_irq.c @@ -123,7 +123,7 @@ roc_bphy_intr_fini(struct roc_bphy_irq_chip *irq_chip) plt_free(irq_chip); } -void +static void roc_bphy_irq_stack_remove(int cpu) { struct roc_bphy_irq_stack *curr_stack; @@ -153,7 +153,7 @@ roc_bphy_irq_stack_remove(int cpu) pthread_mutex_unlock(&stacks_mutex); } -void * +static void * roc_bphy_irq_stack_get(int cpu) { #define ARM_STACK_ALIGNMENT (2 * sizeof(void *)) @@ -221,7 +221,7 @@ roc_bphy_intr_handler(unsigned int irq_num) roc_atf_ret(); } -int +static int roc_bphy_irq_handler_set(struct roc_bphy_irq_chip *chip, int irq_num, void (*isr)(int irq_num, void *isr_data), void *isr_data) diff --git a/drivers/common/cnxk/roc_bphy_irq.h b/drivers/common/cnxk/roc_bphy_irq.h index 19ec5fdc4d..0d1335b201 100644 --- a/drivers/common/cnxk/roc_bphy_irq.h +++ b/drivers/common/cnxk/roc_bphy_irq.h @@ -32,13 +32,7 @@ struct roc_bphy_intr { __roc_api struct roc_bphy_irq_chip *roc_bphy_intr_init(void); __roc_api void roc_bphy_intr_fini(struct roc_bphy_irq_chip *irq_chip); -__roc_api void roc_bphy_irq_stack_remove(int cpu); -__roc_api void *roc_bphy_irq_stack_get(int cpu); __roc_api void roc_bphy_intr_handler(unsigned int irq_num); -__roc_api int -roc_bphy_irq_handler_set(struct roc_bphy_irq_chip *chip, int irq_num, - void (*handler)(int irq_num, void *isr_data), - void *isr_data); __roc_api bool roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip, int irq_num); __roc_api int roc_bphy_handler_clear(struct roc_bphy_irq_chip *chip, diff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map index 2cbcc4b93a..7dfc6d8a27 100644 --- a/drivers/common/cnxk/version.map +++ b/drivers/common/cnxk/version.map @@ -43,9 +43,6 @@ INTERNAL { roc_bphy_intr_handler; roc_bphy_intr_init; roc_bphy_intr_register; - roc_bphy_irq_handler_set; - roc_bphy_irq_stack_get; - roc_bphy_irq_stack_remove; roc_clk_freq_get; roc_cpt_afs_print; roc_cpt_dev_clear; -- 2.25.1