[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v11 8/9] xen: use DECLARE_BOUNDS in alternative.c



On Wed, 6 Mar 2019, Jan Beulich wrote:
> >>> On 05.03.19 at 23:38, <sstabellini@xxxxxxxxxx> wrote:
> > @@ -193,8 +191,10 @@ void init_or_livepatch apply_alternatives(struct 
> > alt_instr *start,
> 
> Seeing this relevant part of the function parameters, ...
> 
> >       *
> >       * So be careful if you want to change the scan order to any other
> >       * order.
> > +     *
> > +     * start and end could be pointers to different objects.
> >       */
> > -    for ( a = base = start; a < end; a++ )
> > +    for ( a = base = (struct alt_instr *)start; alt_instr_lt(a, end); a++ )
> 
> ... why the cast?

To remove const (see the other email about the problematic sites).

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.