From: "Jan Beulich" Subject: Re: [PATCH v4 2/3] xen: introduce arch_grant_(un)map_page_identity Date: Mon, 28 Jul 2014 11:52:16 +0100 Message-ID: <53D6478002000078000268A2@mail.emea.novell.com> References: <1406542610-18724-2-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XBiXX-0003Py-13 for xen-devel@lists.xenproject.org; Mon, 28 Jul 2014 10:52:23 +0000 In-Reply-To: <1406542610-18724-2-git-send-email-stefano.stabellini@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 28.07.14 at 12:16, wrote: > Changes in v4: > - declare the x86 implementations as extern; What you say here is what I asked for, but ... > --- a/xen/arch/x86/mm/p2m.c > +++ b/xen/arch/x86/mm/p2m.c > @@ -1905,6 +1905,19 @@ out: > rcu_unlock_domain(fdom); > return rc; > } > + > + > +int arch_grant_map_page_identity(struct domain *d, unsigned long frame, > + bool_t writeable) > +{ > + return -ENOSYS; > +} > + > +int arch_grant_unmap_page_identity(struct domain *d, unsigned long frame) > +{ > + return -ENOSYS; > +} > + ... what's this (not to speak of the double blank line you introduce)? I specifically said declare but don't define, to catch problems at build rather than run time. Jan