From: Ian Campbell Subject: Re: [PATCH 3/7] mini-os: Moved events code under arch Date: Fri, 6 Jun 2014 14:54:47 +0100 Message-ID: <1402062887.1313.50.camel@kazak.uk.xensource.com> References: <538D9161.6090402@linaro.org> <1401897998-29569-1-git-send-email-talex5@gmail.com> <1401897998-29569-4-git-send-email-talex5@gmail.com> <538F480A.50206@linaro.org> 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 1Wsubb-0005vz-T8 for xen-devel@lists.xenproject.org; Fri, 06 Jun 2014 13:54:52 +0000 In-Reply-To: <538F480A.50206@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, Thomas Leonard List-Id: xen-devel@lists.xenproject.org On Wed, 2014-06-04 at 17:23 +0100, Julien Grall wrote: > Hi Thomas, > > I'm not sure why you dropped everyone in cc (i.e Minios Maintainers & > Karim). > > On 06/04/2014 05:06 PM, Thomas Leonard wrote: > > diff --git a/extras/mini-os/events.c b/extras/mini-os/events.c > > index 2da9b01..c2bda1a 100644 > > --- a/extras/mini-os/events.c > > +++ b/extras/mini-os/events.c > > > [..] > > > + > > + arch_init_events(); > > } > > > > +void arch_fini_events(void); > > It's better to define the prototype in an header so the compiler can > check if the function declaration is actually matching the prototype. > > This will avoid error if someone decide to modify the function > declaration without modifying the call-site... > > I'm planning to send a patch to enable -Wmissing-prototypes on the > hypervisor side. It might be a good idea to enable -Wmissing-prototypes > on mini-os. It's a good idea but not a prerequisite for this series IMHO, although any new cross module functions should have prototypes in headers not .c files regardless. Ian.