On Mon, May 18, 2026 at 4:39 AM Rosen Penev <[email protected]> wrote:

> > -       sfp->num_saved_regs = info->nsaved_regs;
> > +       sfp->num_saved_regs = num_saved_regs;

> yeah and this is used absolutely nowhere. Both for loops are of the form
>
> for (i = 0 ; i < sfp->info->nsaved_regs ; i++)
>
> I really don't think __counted_by is worth it here.

__counted_by() is used by compiler instrumentation, i.e. by hardening
code that is not visible directly in the driver.

During compilation, code will be inserted that checks boundaries of the
array at runtime.

Yours,
Linus Walleij

Reply via email to