From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 3DCEC6A80 for ; Mon, 9 Mar 2015 12:50:15 +0100 (CET) Received: by widfb4 with SMTP id fb4so8508099wid.0 for ; Mon, 09 Mar 2015 04:50:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=3lTsxpt1dI9EJuv5kGSGIEzFH8O6DFIcGtqZCE0PRzc=; b=T0XfEewBy0yOrvxdCw/TMPs1QCq764NVNTsKg6KdVoMYVTdwgAC/nlAWemiRmaS+P+ HdAaIispBxWiEGVUYQBAdzI93yiYuq7aeFfP0DVQw7lJEgZABP9fLYbLI64SU642ZD/X 7kxg5++ibypW0IS/M5JvefWNg7YEJNFBPmDOb8q2OkVz31iVCFqgkWMxEQrv4M3I6omm RiqX56m/cSx6hsbKb0mns2SjisA2mceOCcPpm6lfm4jaXRKxP8Gm6fy4CUj+AcjxE1rf 7Gn6QmzDGNDh42UQc7tjL+x6nF7IaD/wcIB0obt5xhLBuL6zI13qq71N424GCSO0VI7O AA1w== X-Gm-Message-State: ALoCoQlUPSXPx5v1RYMcyIM8QyvsrHCVlpiQo3tpi4PqUIDxjGZMlwbX7Ffi8MX58XahrLldEket X-Received: by 10.194.189.138 with SMTP id gi10mr58456551wjc.86.1425901815117; Mon, 09 Mar 2015 04:50:15 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id lb6sm27929116wjb.22.2015.03.09.04.50.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Mar 2015 04:50:14 -0700 (PDT) From: Thomas Monjalon To: "Qiu, Michael" Date: Mon, 09 Mar 2015 12:43:38 +0100 Message-ID: <3556491.n1SbkH6aXT@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: <1425541598-8669-1-git-send-email-michael.qiu@intel.com> <1425611587-769-1-git-send-email-michael.qiu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] librte_eal/common: Fix cast from pointer to integer of different size X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Mar 2015 11:50:15 -0000 > > ./i686-native-linuxapp-gcc/include/rte_memcpy.h:592:23: error: > > cast from pointer to integer of different size [-Werror=pointer-to-int-cast] > > > > dstofss = 16 - (int)((long long)(void *)dst & 0x0F) + 16; > > > > Type 'long long' is 64-bit in i686 platform while 'void *' > > is 32-bit. > > > > Signed-off-by: Michael Qiu > > Signed-off-by: Zhihong Wang > > --- > > v4 --> v3: > > fix dstofss/bits to size_t in rte_memcpy() > > v3 --> v2: > > make dstofss and srcofs to be type size_t > > casting type use uintptr_t > > > > v2 --> v1: > > Remove unnecessary casting (void *) > > Acked-by: Wang, Zhihong Applied, thanks