]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: sysfs: fix build warning.
authorIan Campbell <ian.campbell@citrix.com>
Wed, 17 Oct 2012 08:39:10 +0000 (09:39 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 4 Dec 2012 17:44:22 +0000 (12:44 -0500)
commit1086f622027f262dd635a7d777356b4296defca3
tree77bffac5cf4d6a469c4a7abfed02623567ad49e8
parent5f54deb2edf0614f6d83c850c0a03d6cc57e8b1e
xen: sysfs: fix build warning.

Define PRI macros for xen_ulong_t and xen_pfn_t and use to fix:
drivers/xen/sys-hypervisor.c:288:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'xen_ulong_t' [-Wformat]

Ideally this would use PRIx64 on ARM but these (or equivalent) don't
seem to be available in the kernel.

Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/arm/include/asm/xen/interface.h
arch/x86/include/asm/xen/interface.h
drivers/xen/sys-hypervisor.c