From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id C28088E68 for ; Thu, 12 Nov 2015 12:20:05 +0100 (CET) Received: by wmvv187 with SMTP id v187so27626249wmv.1 for ; Thu, 12 Nov 2015 03:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=MiX1Sms8pm3xfm4hOiJTt5DhzIEp9x2HsYJGYfLxVng=; b=e/IgScLpAsXRa1JJSKkxNCVcK2c8cS9NpmZXkr2f504go/bXYONZ9mWtpZ1/EJZtt8 SqdVKiEm3QdLbi/9QtKyz+tTr254umkn+wF02a14yb/w/oR+uQaxWkoW9VUUOOW/A4Ac KvOzKpGiTBOPv27WVyyMnRXepBei0ybV8FSZMKqOQDLvqtxomXk4aombsEPB5AYJQyWi d00gdG6APSLePOEMY0D8LBQNbs6NbcMj8elIRhn2dHRHiZqDJYI4pgSgIcDgJ0+u1oBs YEE6NCvG4T4M0c8oCxFKRz5RV6COUbXNVH7E+6WghDE4WKEg1zz3Lm6Bq2ESfspVB/tR txpw== 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=MiX1Sms8pm3xfm4hOiJTt5DhzIEp9x2HsYJGYfLxVng=; b=C/2PzQ8UY6AuOK7fx8/yZVIyWVOVHEwatAmdlMcmlKqj5awMvgTOL5/u6pKtIRr3sm xff99clL32JQy+UkMMlJUGLvDCVLwkhnKfTUzOL0ydXkJK0gtUUdSopJKVaOYKOSH5u4 Hlui7bqDS/Y4L2Qgufs5Ey4Z2QM+wwcIghWeY6bjoHAjV+vMgSJpRjsEO9NHBZLPiN9T cV/Lk7bV5owFqPFWfM62p2Sj4DKLFy6Kcy92YuMvIi1HmOKqPgE02jQOmNeLLpG9Qbky iNj7YnHlkL7ugNLXluihuYLg5Y3LyqhSt0mXRkm5sRXYseQGmQRHBrj7Yh7Hd02EUoSh ZOkg== X-Gm-Message-State: ALoCoQnAstvF44H9Nfu5SZdPIvtR2IaGuE2ByIbmxEtu4YMJXu4M2ZZ3fX23mXg+LXR9f62xwheZ X-Received: by 10.195.13.135 with SMTP id ey7mr17704138wjd.25.1447327205544; Thu, 12 Nov 2015 03:20:05 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id at4sm13933032wjc.9.2015.11.12.03.20.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Nov 2015 03:20:04 -0800 (PST) From: Thomas Monjalon To: Jianfeng Tan Date: Thu, 12 Nov 2015 12:18:53 +0100 Message-ID: <18810031.JvBkFVb3yD@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1447279449-11289-1-git-send-email-jianfeng.tan@intel.com> References: <1447279449-11289-1-git-send-email-jianfeng.tan@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 v2] vhost: fix mmap failure as len not aligned with hugepage 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: Thu, 12 Nov 2015 11:20:05 -0000 2015-11-12 06:04, Jianfeng Tan: > - alignment = region[idx].blksz; > - munmap((void *)(uintptr_t) > - RTE_ALIGN_FLOOR( > - region[idx].mapped_address, alignment), > - RTE_ALIGN_CEIL( > - region[idx].mapped_size, alignment)); > + munmap((void *)region[idx].mapped_address, > + region[idx].mapped_size); Sorry, it does not compile for 32-bit: virtio-net-user.c:84:11: error: cast to pointer from integer of different size