ARM: plat-omap: Fix warnings
authorAfzal Mohammed <afzal@ti.com>
Fri, 28 Oct 2011 07:10:07 +0000 (12:40 +0530)
committerVaibhav Hiremath <hvaibhav@ti.com>
Mon, 23 Jan 2012 19:14:34 +0000 (00:44 +0530)
Fix,

arch/arm/plat-omap/sram.c: In function 'omap3_sram_restore_context':
arch/arm/plat-omap/sram.c:330:3: warning: initialization makes pointer from integer without a cast
arch/arm/mach-omap2/pm34xx.c: In function 'omap_push_sram_idle':
arch/arm/mach-omap2/pm34xx.c:848:22: warning: initialization makes pointer from integer without a cast
arch/arm/mach-omap2/pm34xx.c:851:28: warning: initialization makes pointer from integer without a cast

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
arch/arm/plat-omap/include/plat/sram.h

index 1be45a640fd74d2b387872e8339a1e46d03526bb..bfe33ee795e64a74dab14d95e23f0d0655821f76 100644 (file)
@@ -22,14 +22,14 @@ extern struct gen_pool *omap_gen_pool;
  * Note that fncpy requires the SRAM address to be aligned to an 8-byte
  * boundary, so the min_alloc_order for the pool is set appropriately.
  */
-#define omap_sram_push(funcp, size) ({                         \
-       typeof(&(funcp)) _res;                                  \
-       size_t _sz = size;                                      \
-       void *_sram = gen_pool_alloc(omap_gen_pool, _sz);       \
-       _res = (_sram ? fncpy(_sram, &(funcp), _sz) : NULL);    \
-       if (!_res)                                              \
-               pr_err("Not enough space in SRAM\n");           \
-       _res;                                                   \
+#define omap_sram_push(funcp, size) ({                                 \
+       typeof(&(funcp)) _res;                                          \
+       size_t _sz = size;                                              \
+       void *_sram = (void *) gen_pool_alloc(omap_gen_pool, _sz);      \
+       _res = (_sram ? fncpy(_sram, &(funcp), _sz) : NULL);            \
+       if (!_res)                                                      \
+               pr_err("Not enough space in SRAM\n");                   \
+       _res;                                                           \
 })
 
 extern void omap_sram_reprogram_clock(u32 dpllctl, u32 ckctl);