From patchwork Fri May 19 01:38:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9735595 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E507D601A1 for ; Fri, 19 May 2017 01:38:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAC3D223A5 for ; Fri, 19 May 2017 01:38:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF71126AE3; Fri, 19 May 2017 01:38:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F1FBB288B2 for ; Fri, 19 May 2017 01:38:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C07272486; Fri, 19 May 2017 01:38:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 0C07272486 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 0C07272486 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OT0y6Nmn" Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B36845C8A6; Fri, 19 May 2017 01:38:30 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 90AF6180BAF8; Fri, 19 May 2017 01:38:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v4J1cP4r023652 for ; Thu, 18 May 2017 21:38:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id B70FC784BF; Fri, 19 May 2017 01:38:25 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE29D784BB for ; Fri, 19 May 2017 01:38:23 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5A2524E4CA for ; Fri, 19 May 2017 01:38:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5A2524E4CA Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=xose.vazquez@gmail.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5A2524E4CA Received: by mail-wm0-f66.google.com with SMTP id k15so13644213wmh.3 for ; Thu, 18 May 2017 18:38:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=iHFtxBuXAD/x1CG2PVruEx+DBWZBVq8X4HzFkivzeow=; b=OT0y6Nmn2A8/7Rlk+b6EwmuMyPxJJhfN80kptt3QLhK2BBeD2owuZQwEPh08C9Y8K3 /SNIBDb5nPRUOXojjkNXskii2j/ZYI4rveKRipWY2s/jxfPYVNoMcqnJ8SZnxhwVPGWT FVGP9bCEPavV1hv0hhylaXvI+nulnzgjEArtvFFmHT5P1m3JzzGSsm1hklFlDjNB+hH4 J4g+swVAVchKaCv3714l75yimI4RmEPx5DphQAy7KF0Z90dnqPVwnXTkNgUovL0c/+dg QrtQ2jHSKTmI6KfPjm9b5jiQ3ayMofyjngyEjxyOxhhcQtCPsOxj52b7wfurlFJ1fVIg KN7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iHFtxBuXAD/x1CG2PVruEx+DBWZBVq8X4HzFkivzeow=; b=T5fh/33rn4q9xJiQwkZprllLmXp2zLglQLTW3z+CezrVlpVx+cDMUNKKFwUbaxg5dW /QQzGT3sypI+AombqegMrjvvSEphWPG5+I09m63XlEDjta9chwduLKHZ9o6p5670ZPpn sbaTiwBgJ3tNG8bMKAuJixM5IekTyH283PC59vxXvPqxm6fX2a4H4Jqt1PXY/8zDjK3K xZAbfYd+QL/Xkd6n2UA/I6Psd8mcaL2qlsd+wHXKcNVAPR7GI1UzTxbvoHTWrRZhqTTW 9j6GSRcM1WfhSH88DY1UD3x/UPY/sSHhNpk20b16efN5Inxww/WrItaNuBO1FkXLDRq9 fgtA== X-Gm-Message-State: AODbwcB9BTb3Y0HDNlLzvwEuDMVGPIN2oG2Le12bTVAt4Z3zpywdIalz kbk7+D8zlIhik78j X-Received: by 10.28.31.16 with SMTP id f16mr15831546wmf.118.1495157900983; Thu, 18 May 2017 18:38:20 -0700 (PDT) Received: from localhost (201.199.218.87.dynamic.jazztel.es. [87.218.199.201]) by smtp.gmail.com with ESMTPSA id s29sm974313wrb.21.2017.05.18.18.38.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 18 May 2017 18:38:19 -0700 (PDT) From: Xose Vazquez Perez To: Date: Fri, 19 May 2017 03:38:18 +0200 Message-Id: <20170519013818.15130-1-xose.vazquez@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 19 May 2017 01:38:22 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 19 May 2017 01:38:22 +0000 (UTC) for IP:'74.125.82.66' DOMAIN:'mail-wm0-f66.google.com' HELO:'mail-wm0-f66.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.17 * (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_SORBS_SPAM, SPF_PASS) 74.125.82.66 mail-wm0-f66.google.com 74.125.82.66 mail-wm0-f66.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez Subject: [dm-devel] [PATCH] multipath-tools: replace 64bit archs macros by __LP64__ X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Fri, 19 May 2017 01:38:32 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- kpartx/lopart.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kpartx/lopart.c b/kpartx/lopart.c index 4e6dab4..3c16eb0 100644 --- a/kpartx/lopart.c +++ b/kpartx/lopart.c @@ -38,11 +38,10 @@ #define LOOP_CTL_GET_FREE 0x4C82 #endif -#if !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) \ - && !defined (__s390x__) -#define int2ptr(x) ((void *) ((int) x)) -#else +#if defined (__LP64__) #define int2ptr(x) ((void *) ((long) x)) +#else +#define int2ptr(x) ((void *) ((int) x)) #endif static char *