]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-linux/boot-monitor.git/commitdiff
boot-monitor: fix build warning using gcc 4.9 tool chain master
authorMurali Karicheri <m-karicheri2@ti.com>
Thu, 6 Aug 2015 15:21:39 +0000 (11:21 -0400)
committerMurali Karicheri <m-karicheri2@ti.com>
Thu, 6 Aug 2015 15:21:39 +0000 (11:21 -0400)
Fix the following build warning when using gcc 4.9 tool chain,

skern.c: In function 'skern_init':
skern.c:285:15: warning: assignment makes integer from pointer without a cast
   addr[i * 2] = (unsigned int *)_skern_123_init;

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
sec/skern.c

index b86d338d3a86a85a3a2992c7dad6bcea852f02fc..9f35d0d1a069cb0ca3efb8d2b8951e545193dc7a 100644 (file)
@@ -282,7 +282,7 @@ void *skern_init(unsigned int (*fcn_p()), unsigned int from,
        skernel_cpu_data.arch_timer_freq = freq;
 
        for (i = 1; i < ARM_CLUSTER_NUM_CPUS; i++) {
-               addr[i * 2] = (void*)_skern_123_init;
+               addr[i * 2] = (unsigned int )_skern_123_init;
        }
 
        /* initialize the GIC, registers to enable group1 irqs */