[dm-devel] [PATCH 1/4] kpartx: Improve portability of set_loop()
Martin Wilck
mwilck at suse.com
Tue Jun 13 19:33:15 UTC 2017
On Tue, 2017-06-13 at 09:33 -0700, Bart Van Assche wrote:
> Because macros like __x86_64__ are not defined by the C standard
> and because it is easy to convert the int2ptr() macro into
> standard C, use (void*)(uintptr_t) instead of int2ptr(). Inline
> this macro because it only has one user. This patch does not
> change any functionality.
>
> Reported-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
> Signed-off-by: Bart Van Assche <bart.vanassche at sandisk.com>
> Cc: Xose Vazquez Perez <xose.vazquez at gmail.com>
> ---
> kpartx/lopart.c | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
Reviewed-by: Martin Wilck <mwilck at suse.com>
--
Dr. Martin Wilck <mwilck at suse.com>, Tel. +49 (0)911 74053 2107
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
More information about the dm-devel
mailing list