All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	xen-devel@lists.xensource.com
Cc: julien.grall@citrix.com, Ian.Campbell@citrix.com
Subject: Re: [PATCH v5 3/8] xen/arm: return int from flush_page_to_ram and *_dcache_va_range
Date: Mon, 13 Oct 2014 16:35:11 +0100	[thread overview]
Message-ID: <543BF12F.6070309@linaro.org> (raw)
In-Reply-To: <1413212324-664-3-git-send-email-stefano.stabellini@eu.citrix.com>

On 10/13/2014 03:58 PM, Stefano Stabellini wrote:
> These functions cannot really fail on ARM, but their x86 equivalents can
> (-EOPNOTSUPP). Change the prototype to return int.
> 
> Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> ---
>  xen/arch/arm/mm.c          |    6 ++++--
>  xen/include/asm-arm/page.h |    8 +++++---
>  xen/include/asm-x86/page.h |    3 ++-
>  3 files changed, 11 insertions(+), 6 deletions(-)
> 
> diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
> index 996687b..f6f20aa 100644
> --- a/xen/arch/arm/mm.c
> +++ b/xen/arch/arm/mm.c
> @@ -377,12 +377,14 @@ unsigned long domain_page_map_to_mfn(const void *ptr)
>  }
>  #endif
>  
> -void flush_page_to_ram(unsigned long mfn)
> +int flush_page_to_ram(unsigned long mfn)

If you decide to change the prototype of flush_page_to_ram, you need to
check the return on every call-site.

IHMO, as this function is implemented as a no-op on x86, I would keep
the void and add an ASSERT below to check ret.

Regards,

-- 
Julien Grall

  reply	other threads:[~2014-10-13 15:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-13 14:57 [PATCH v5 0/8] xen/arm: introduce GNTTABOP_cache_flush Stefano Stabellini
2014-10-13 14:58 ` [PATCH v5 1/8] xen: introduce gnttab_max_frames and gnttab_max_maptrack_frames command line options Stefano Stabellini
2014-10-14 10:50   ` Jan Beulich
2014-10-13 14:58 ` [PATCH v5 2/8] xen/arm: rename *_xen_dcache_* operations to *_dcache_* Stefano Stabellini
2014-10-13 15:36   ` Julien Grall
2014-10-13 14:58 ` [PATCH v5 3/8] xen/arm: return int from flush_page_to_ram and *_dcache_va_range Stefano Stabellini
2014-10-13 15:35   ` Julien Grall [this message]
2014-10-16 11:03     ` Stefano Stabellini
2014-10-13 14:58 ` [PATCH v5 4/8] xen/arm: introduce invalidate_dcache_va_range Stefano Stabellini
2014-10-13 14:58 ` [PATCH v5 5/8] xen/x86: introduce more cache maintenance operations Stefano Stabellini
2014-10-14 10:54   ` Jan Beulich
2014-10-13 14:58 ` [PATCH v5 6/8] xen/arm: introduce GNTTABOP_cache_flush Stefano Stabellini
2014-10-14 11:00   ` Jan Beulich
2014-10-16 10:55     ` Stefano Stabellini
2014-10-16 12:05       ` Jan Beulich
2014-10-16 14:19         ` Stefano Stabellini
2014-10-16 15:39           ` Jan Beulich
2014-10-13 14:58 ` [PATCH v5 7/8] Revert "xen/arm: introduce XENFEAT_grant_map_identity" Stefano Stabellini
2014-10-13 14:58 ` [PATCH v5 8/8] Revert "xen: introduce arch_grant_(un)map_page_identity" Stefano Stabellini

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=543BF12F.6070309@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=julien.grall@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.