Re: [PATCH 3/3] firmware_loader: Annotate mandatory fw_upload_ops with __must_init

From: Johan Hovold

Date: Tue Dec 01 2026 - 03:36:07 EST


On Mon, Nov 30, 2026 at 02:53:40PM -0800, Ian Rogers wrote:
> firmware_upload_register() requires prepare, write, poll_complete, and
> cancel in struct fw_upload_ops and returns ERR_PTR(-EINVAL) if any are
> omitted.

And same here, as you cannot drop the sanity checks during registration
yet, even if I guess this may aid a developer while writing a driver a
tiny bit (i.e. before the first test run).

Johan