common/cnxk: reduce function visibility
authorJakub Palider <jpalider@marvell.com>
Mon, 26 Jul 2021 13:58:13 +0000 (08:58 -0500)
committerJerin Jacob <jerinj@marvell.com>
Tue, 28 Sep 2021 10:09:14 +0000 (12:09 +0200)
Some functions are not used outside of local ROC scope. These need
updating classifiers and removal from header.

Signed-off-by: Jakub Palider <jpalider@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_bphy_irq.c
drivers/common/cnxk/roc_bphy_irq.h
drivers/common/cnxk/version.map

index 882066e..be3c405 100644 (file)
@@ -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 @@ leave:
        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)
index 19ec5fd..0d1335b 100644 (file)
@@ -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,
index 9b7cbf6..b4dd95b 100644 (file)
@@ -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;