From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [v4 15/17] arm: add a dummy arch hooks for scheduler Date: Thu, 23 Jul 2015 12:54:07 +0100 Message-ID: <55B0D5DF.9080400@citrix.com> References: <1437651353-5275-1-git-send-email-feng.wu@intel.com> <1437651353-5275-16-git-send-email-feng.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1437651353-5275-16-git-send-email-feng.wu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Feng Wu , xen-devel@lists.xen.org Cc: Tim Deegan , Stefano Stabellini , Ian Campbell List-Id: xen-devel@lists.xenproject.org Hi, On 23/07/15 12:35, Feng Wu wrote: > Add a dummy arch hooks for scheduler to make the build successful > in ARM. I would make more sense if you introduce the dummy hooks in the patch where you effectively use it (i.e #16). Actually you also introduce arch_vcpu_wake for x86 there too. > CC: Ian Campbell > CC: Stefano Stabellini > CC: Tim Deegan > Signed-off-by: Feng Wu > --- > v4: > - Newly added > > xen/include/asm-arm/domain.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-arm/domain.h > index f1a087e..7f25fd5 100644 > --- a/xen/include/asm-arm/domain.h > +++ b/xen/include/asm-arm/domain.h > @@ -265,6 +265,8 @@ static inline unsigned int domain_max_vcpus(const struct domain *d) > return MAX_VIRT_CPUS; > } > > +static void arch_vcpu_wake(struct vcpu *v) {} > + Please use static inline here. > #endif /* __ASM_DOMAIN_H__ */ > > /* > Regards, -- Julien Grall