rename and define some local var/funcs static
authorSam Sortais <sam.sortais@xilinx.com>
Mon, 29 Feb 2016 06:05:50 +0000 (22:05 -0800)
committerSam Sortais <sam.sortais@xilinx.com>
Sat, 5 Mar 2016 02:33:19 +0000 (18:33 -0800)
Signed-off-by: Sam Sortais <sam.sortais@xilinx.com>
lib/remoteproc/drivers/zynqmp_remoteproc_a53.c
lib/system/generic/bm_env.c

index 83a9c7e4062dc00d77838a1b1d0ae2dbdbac7a90..acfaa38a76f1440a6d3fe8c8712e2479b0cd2411 100644 (file)
@@ -133,7 +133,7 @@ static int _enable_interrupt(struct proc_vring *vring_hw)
 }
 
 /* In case there is an interrupt received after deinit. */
-void _reg_ipi_after_deinit(struct proc_vring *vring_hw)
+static void _reg_ipi_after_deinit(struct proc_vring *vring_hw)
 {
        struct ipi_info *chn_ipi_info =
            (struct ipi_info *)(vring_hw->intr_info.data);
@@ -148,7 +148,7 @@ void _reg_ipi_after_deinit(struct proc_vring *vring_hw)
                     "remoteproc_a53", 1);
 }
 
-void _notify(int cpu_id, struct proc_intr *intr_info)
+static void _notify(int cpu_id, struct proc_intr *intr_info)
 {
 
        (void)cpu_id;
@@ -162,14 +162,14 @@ void _notify(int cpu_id, struct proc_intr *intr_info)
                        chn_ipi_info->ipi_chn_mask);
 }
 
-int _boot_cpu(int cpu_id, unsigned int load_addr)
+static int _boot_cpu(int cpu_id, unsigned int load_addr)
 {
        (void)cpu_id;
        (void)load_addr;
        return -1;
 }
 
-void _shutdown_cpu(int cpu_id)
+static void _shutdown_cpu(int cpu_id)
 {
        (void)cpu_id;
        return;
index d6b9fa0ab1b5ae9a31501b258c65eec0dbfe1cac..fff9bb5176fdbb3bc6bb6e4e149814256f8fcdc7 100755 (executable)
@@ -66,11 +66,11 @@ struct isr_info {
        void (*isr)(int vector, void *data);
 };
 struct isr_info isr_table[ISR_COUNT];
-int Intr_Count = 0;
+static int intr_count = 0;
 /* Flag to show status of global interrupts. 0 for disabled and 1 for enabled. This
  * is added to prevent recursive global interrupts enablement/disablement.
  */
-int Intr_Enable_Flag = 1;
+static int intr_enable_flag = 1;
 
 /**
  * env_init
@@ -348,9 +348,9 @@ void env_sleep_msec(int num_msec)
  */
 void env_disable_interrupts()
 {
-       if (Intr_Enable_Flag == 1) {
+       if (intr_enable_flag == 1) {
                disable_global_interrupts();
-               Intr_Enable_Flag = 0;
+               intr_enable_flag = 0;
        }
 }
 
@@ -362,9 +362,9 @@ void env_disable_interrupts()
  */
 void env_restore_interrupts()
 {
-       if (Intr_Enable_Flag == 0) {
+       if (intr_enable_flag == 0) {
                restore_global_interrupts();
-               Intr_Enable_Flag = 1;
+               intr_enable_flag = 1;
        }
 }
 
@@ -385,13 +385,13 @@ void env_register_isr_shared(int vector, void *data,
 {
        env_disable_interrupts();
 
-       if (Intr_Count < ISR_COUNT) {
+       if (intr_count < ISR_COUNT) {
                /* Save interrupt data */
-               isr_table[Intr_Count].vector = vector;
-               isr_table[Intr_Count].data = data;
-               isr_table[Intr_Count].name = name;
-               isr_table[Intr_Count].shared = shared;
-               isr_table[Intr_Count++].isr = isr;
+               isr_table[intr_count].vector = vector;
+               isr_table[intr_count].data = data;
+               isr_table[intr_count].name = name;
+               isr_table[intr_count].shared = shared;
+               isr_table[intr_count++].isr = isr;
        }
 
        env_restore_interrupts();