From: "Jan Beulich" Subject: Re: [PATCH] common/sched: Correct function prototypes Date: Fri, 11 Oct 2013 07:55:43 +0100 Message-ID: <5257BD0F02000078000FA700@nat28.tlf.novell.com> References: <1381424754-7451-1-git-send-email-andrew.cooper3@citrix.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 1VUWdW-0001rX-3o for xen-devel@lists.xenproject.org; Fri, 11 Oct 2013 06:55:46 +0000 In-Reply-To: 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: Andrew Cooper , Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> 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. You may have noted that for quite some time patches of mine have already been doing that (and a trace of this can even be seen in the patch hunk header above). I would even suggest adding a respective statement to the coding style document. Jan