>>> On 05.03.19 at 23:38, <sstabell...@kernel.org> 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?

Jan



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

Reply via email to