DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Jianfeng Tan <jianfeng.tan@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH v2] vhost: fix mmap failure as len not aligned with hugepage size
Date: Thu, 12 Nov 2015 12:18:53 +0100	[thread overview]
Message-ID: <18810031.JvBkFVb3yD@xps13> (raw)
In-Reply-To: <1447279449-11289-1-git-send-email-jianfeng.tan@intel.com>

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

  parent reply	other threads:[~2015-11-12 11:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 22:04 Jianfeng Tan
2015-11-12  6:06 ` [dpdk-dev] [PATCH v3] " Jianfeng Tan
2015-11-24 18:24   ` Thomas Monjalon
2015-11-12  6:39 ` [dpdk-dev] [PATCH v2] " Xie, Huawei
2015-11-12 11:18 ` Thomas Monjalon [this message]
2015-11-12 12:51   ` Tan, Jianfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18810031.JvBkFVb3yD@xps13 \
    --to=thomas.monjalon@6wind.com \
    --cc=dev@dpdk.org \
    --cc=jianfeng.tan@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).