Re: [PATCH 2/3] driver core: auxiliary: Annotate probe and id_table with __must_init

From: Johan Hovold

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


On Mon, Nov 30, 2026 at 02:53:39PM -0800, Ian Rogers wrote:
> __auxiliary_driver_register() rejects auxiliary_driver structures that
> omit probe or id_table with WARN_ON(!auxdrv->probe) and
> WARN_ON(!auxdrv->id_table), returning -EINVAL.

IIUC you can't drop the WARN_ON() yet and any superficial testing of the
driver (i.e. probing a device) will catch this. So there's not much to
be gained here either.

Johan