From: Ian Campbell Subject: Re: [PATCH v2 01/15] xen/arm: register mmio handler at runtime Date: Fri, 4 Apr 2014 13:59:20 +0100 Message-ID: <1396616360.4211.226.camel@kazak.uk.xensource.com> References: <1396612593-443-1-git-send-email-vijay.kilari@gmail.com> <1396612593-443-2-git-send-email-vijay.kilari@gmail.com> <533EA307.4000900@linaro.org> <1396615352.4211.216.camel@kazak.uk.xensource.com> <533EAB84.3090005@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <533EAB84.3090005@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: Vijay Kilari , Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , xen-devel@lists.xen.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-04 at 13:54 +0100, Julien Grall wrote: > On 04/04/2014 01:42 PM, Ian Campbell wrote: > > On Fri, 2014-04-04 at 18:00 +0530, Vijay Kilari wrote: > >>>> + handler->mmio_handlers[handler->num_entries++] = handle; > >>>> + spin_unlock_irqrestore(&handler_lock, flags); > >>>> +} > >>>> /* > >>>> * Local variables: > >>>> * mode: C > >>>> diff --git a/xen/arch/arm/io.h b/xen/arch/arm/io.h > >>>> index 8d252c0..5fc1660 100644 > >>>> --- a/xen/arch/arm/io.h > >>>> +++ b/xen/arch/arm/io.h > >>> > >>> As you are modifying this header. Can you move it in > >> include/asm-arm? > >> OK. > > > > Please don't mix movement and modifications. Unless you are adding uses > > from outside xen/arch/arm requiring ugly relative includes there is no > > need to move this IMHO. > > My point was to clean up and having a single place for every headers. Why? What your goal with this "clean up"? If a header is only used by .c files in the same directory then it is absolutely fine for the header to live in that directory and be included with #include "foo.h" Ian.