From: Tim Deegan Subject: Re: [PATCH] common/sched: Correct function prototypes Date: Fri, 11 Oct 2013 10:40:46 +0100 Message-ID: <20131011094046.GA88315@ocelot.phlegethon.org> References: <1381424754-7451-1-git-send-email-andrew.cooper3@citrix.com> <5257BD0F02000078000FA700@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VUZDK-0006Ru-Et for xen-devel@lists.xenproject.org; Fri, 11 Oct 2013 09:40:54 +0000 Content-Disposition: inline In-Reply-To: <5257BD0F02000078000FA700@nat28.tlf.novell.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: Jan Beulich Cc: Andrew Cooper , Keir Fraser , xen-devel List-Id: xen-devel@lists.xenproject.org At 07:55 +0100 on 11 Oct (1381478143), Jan Beulich wrote: > >>> On 10.10.13 at 20:25, Keir Fraser wrote: > > On 10/10/2013 18:05, "Andrew Cooper" wrote: > > > >> struct vcpu pointers are traditionally v rather than d. > >> > >> Signed-off-by: Andrew Cooper > >> CC: Keir Fraser > >> CC: Jan Beulich > >> George Dunlap > > > > Acked-by: Keir Fraser > > I'll commit it as is, but ... > > >> --- a/xen/include/xen/sched.h > >> +++ b/xen/include/xen/sched.h > >> @@ -567,9 +567,9 @@ void sched_set_node_affinity(struct domain *, nodemask_t *); > >> int sched_id(void); > >> void sched_tick_suspend(void); > >> void sched_tick_resume(void); > >> -void vcpu_wake(struct vcpu *d); > >> -void vcpu_sleep_nosync(struct vcpu *d); > >> -void vcpu_sleep_sync(struct vcpu *d); > >> +void vcpu_wake(struct vcpu *v); > >> +void vcpu_sleep_nosync(struct vcpu *v); > >> +void vcpu_sleep_sync(struct vcpu *v); > > ... I'd much prefer if we stopped naming parameters in declarations > where the parameter types are already sufficiently describing them. I'd rather not -- I prefer the declarations to match the definitions. Tim.