Skip to content

Commit

Permalink
memblock: Cast phys_addr_t to unsigned long long for printf use
Browse files Browse the repository at this point in the history
phys_addr_t is not necessarily the same thing as unsigned long long.
It is, however, easier to cast it to unsigned long long for printf
purposes than it is to deal with differnent printf formats.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Tejun Heo <tj@kernel.org>
Link: http://lkml.kernel.org/r/4E1F4D2C.3000507@zytor.com
  • Loading branch information
H. Peter Anvin committed Jul 14, 2011
1 parent 24aa078 commit a150439
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ long __init_memblock memblock_remove(phys_addr_t base, phys_addr_t size)
long __init_memblock memblock_free(phys_addr_t base, phys_addr_t size)
{
memblock_dbg(" memblock_free: [%#016llx-%#016llx] %pF\n",
base, base + size, (void *)_RET_IP_);
(unsigned long long)base,
(unsigned long long)base + size,
(void *)_RET_IP_);

return __memblock_remove(&memblock.reserved, base, size);
}
Expand All @@ -460,7 +462,9 @@ long __init_memblock memblock_reserve(phys_addr_t base, phys_addr_t size)
struct memblock_type *_rgn = &memblock.reserved;

memblock_dbg("memblock_reserve: [%#016llx-%#016llx] %pF\n",
base, base + size, (void *)_RET_IP_);
(unsigned long long)base,
(unsigned long long)base + size,
(void *)_RET_IP_);
BUG_ON(0 == size);

return memblock_add_region(_rgn, base, size);
Expand Down

0 comments on commit a150439

Please sign in to comment.