From: Cyril Chemparathy Date: Wed, 12 Sep 2012 14:19:05 +0000 (-0400) Subject: ARM: fix type of PHYS_PFN_OFFSET to unsigned long X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~41^2^2~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b20c5b2f014ecc0a6310988af69cd7ede9e7c67;p=pandora-kernel.git ARM: fix type of PHYS_PFN_OFFSET to unsigned long On LPAE machines, PHYS_OFFSET evaluates to a phys_addr_t and this type is inherited by the PHYS_PFN_OFFSET definition as well. Consequently, the kernel build emits warnings of the form: init/main.c: In function 'start_kernel': init/main.c:588:7: warning: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'phys_addr_t' [-Wformat] This patch fixes this warning by pinning down the PFN type to unsigned long. Signed-off-by: Cyril Chemparathy Acked-by: Nicolas Pitre Tested-by: Santosh Shilimkar Tested-by: Subash Patel Signed-off-by: Will Deacon --- Reading git-diff-tree failed