|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v02 1/3] xen/dt: add match for non-available nodes
On Thu, 2014-07-03 at 13:32 +0300, Andrii Tseglytskyi wrote:
> Hi Ian
>
> On Thu, Jul 3, 2014 at 12:53 PM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:
> > On Wed, 2014-07-02 at 16:49 +0300, Andrii Tseglytskyi wrote:
> >> From: Andrii Anisov <andrii.anisov@xxxxxxxxxxxxxxx>
> >>
> >> Signed-off-by: Andrii Anisov <andrii.anisov@xxxxxxxxxxxxxxx>
> >> Acked-by: Julien Grall <julien.grall@xxxxxxxxxx>
> >
> > Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
> >
> > One nit:
> >> +#define DT_MATCH_NOT_AVAILABLE() { .not_available = 1 }
> >
> > Since its a boot_t s/1/true/?
>
> I tried this first, but one more include is needed to put "true"
> instead of "1". After I found this code in devtree file:
>
> xen/common/device_tree.c
>
> 689 bool_t dt_match_node(const struct dt_device_match *matches,
> 690 const struct dt_device_node *node)
> 691 {
> 692 if ( !matches )
> 693 return 0;
> 694
> 695 while ( matches->path || matches->type ||
> 696 matches->compatible || matches->not_available )
> 697 {
> 698 *bool_t match = 1;*
>
>
> So, I decided to do the same.
OK. I htink the existing code is also wrong but I won't object to you
follow suit.
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |