[PATCH 5/8] Silence warning in arch/powerpc/mm/ppc_mmu_32.c

Stephen Rothwell sfr at canb.auug.org.au
Thu Jul 31 15:21:25 EST 2008


Hi Tony,

On Thu, 31 Jul 2008 13:51:43 +1000 (EST) Tony Breeds <tony at bakeyournoodle.com> wrote:
>
> total_memory is a 'phys_addr_t', cast to unsigned long to silence
> warning.
> 
> Signed-off-by: Tony Breeds <tony at bakeyournoodle.com>
> ---
>  arch/powerpc/mm/ppc_mmu_32.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/powerpc/mm/ppc_mmu_32.c b/arch/powerpc/mm/ppc_mmu_32.c
> index c53145f..9c19655 100644
> --- a/arch/powerpc/mm/ppc_mmu_32.c
> +++ b/arch/powerpc/mm/ppc_mmu_32.c
> @@ -237,7 +237,7 @@ void __init MMU_init_hw(void)
>  	Hash_end = (struct hash_pte *) ((unsigned long)Hash + Hash_size);
>  
>  	printk("Total memory = %ldMB; using %ldkB for hash table (at %p)\n",
> -	       total_memory >> 20, Hash_size >> 10, Hash);
> +	       (unsigned long)total_memory >> 20, Hash_size >> 10, Hash);

Will this ever be built with CONFIG_PHYS_64BIT?

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080731/bbe9936c/attachment.pgp>


More information about the Linuxppc-dev mailing list