[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 2/3] xen/types: Correct the definition of uintptr_t



>>> On 01.08.16 at 18:34, <andrew.cooper3@xxxxxxxxxx> wrote:
> uintptr_t is specified as unsigned int in 32bit, not unsigned long.  This is
> why, when copying inttypes.h from GCC, the use of PRIxPTR and similar is
> broken for 32bit builds.
> 
> Use __attribute__((__mode__(__pointer__))) to get the compilers default
> pointer type, which matches the pre-existing inttypes.h
> 
> Fix the identified breakage with ELF_PRPTRVAL
> 
> Compile tested on all architectures, with a manual printk() to trigger any
> potential -Wformat issues.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.