]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: fix warning when compiling immap_qe.h
authorTimur Tabi <timur@freescale.com>
Thu, 14 Oct 2010 20:15:30 +0000 (15:15 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 13 Jan 2011 00:02:46 +0000 (18:02 -0600)
commit1cc76725edab917f27dd1c7110e620c8ef45753a
treec242c67f47d4e0f8b83337aa8c39dd62dd891dc1
parent63be543e0b1add8cb9b22ca38ae1f14043e64811
powerpc: fix warning when compiling immap_qe.h

Fix the warnings genereted by arch/powerpc/include/asm/immap_qe.h when
CONFIG_PHYS_ADDR_T_64BIT is defined:

immap_qe.h: In function 'immrbar_virt_to_phys':
immap_qe.h:472:8: warning: cast from pointer to integer of different size
immap_qe.h:472:24: warning: cast from pointer to integer of different size
immap_qe.h:473:5: warning: cast from pointer to integer of different size
immap_qe.h:473:21: warning: cast from pointer to integer of different size
immap_qe.h:474:36: warning: cast from pointer to integer of different size

Note that the QE does not support 36-bit physical addresses, so even when
CONFIG_PHYS_ADDR_T_64BIT is defined, the QE MURAM must be located below the
4GB boundary.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/immap_qe.h