Re: [dm-devel] [PATCH] multipath-tools: replace 64bit archs macros by __LP64__

2017-06-13 Thread Bart Van Assche
On Sun, 2017-06-11 at 21:14 +0200, Xose Vazquez Perez wrote: > On 05/19/2017 05:31 AM, Bart Van Assche wrote: > > Since there is only one user of int2ptr(), please remove the macro > > definitions > > and use the following construct: (void *)(uintptr_t)(...). > > No time for a proper patch, use

Re: [dm-devel] [PATCH] multipath-tools: replace 64bit archs macros by __LP64__

2017-06-11 Thread Xose Vazquez Perez
On 05/19/2017 05:31 AM, Bart Van Assche wrote: > On Fri, 2017-05-19 at 03:38 +0200, Xose Vazquez Perez wrote: >> Rationale: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html >> >> __LP64__ >> _LP64 >> These macros are defined, with value 1, if (and only if) the compilation is >>

Re: [dm-devel] [PATCH] multipath-tools: replace 64bit archs macros by __LP64__

2017-05-18 Thread Bart Van Assche
On Fri, 2017-05-19 at 03:38 +0200, Xose Vazquez Perez wrote: > Rationale: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html > > __LP64__ > _LP64 > These macros are defined, with value 1, if (and only if) the compilation is > for a target where long int and pointer both use

[dm-devel] [PATCH] multipath-tools: replace 64bit archs macros by __LP64__

2017-05-18 Thread Xose Vazquez Perez
Rationale: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html __LP64__ _LP64 These macros are defined, with value 1, if (and only if) the compilation is for a target where long int and pointer both use 64-bits and int uses 32-bit. Cc: Christophe Varoqui