All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Hovold <johan@kernel.org>
To: Ian Rogers <irogers@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Rafael J . Wysocki" <rafael@kernel.org>,
	Danilo Krummrich <dakr@kernel.org>,
	Luis Chamberlain <mcgrof@kernel.org>,
	Dave Ertman <david.m.ertman@intel.com>,
	Ira Weiny <iweiny@kernel.org>, Leon Romanovsky <leon@kernel.org>,
	Kees Cook <kees@kernel.org>, Miguel Ojeda <ojeda@kernel.org>,
	Nathan Chancellor <nathan@kernel.org>,
	driver-core@lists.linux.dev, llvm@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] firmware_loader: Annotate mandatory fw_upload_ops with __must_init
Date: Tue, 1 Dec 2026 09:35:52 +0100	[thread overview]
Message-ID: <aw6G6CQgLel_5j07@hovoldconsulting.com> (raw)
In-Reply-To: <20261130225340.96859-4-irogers@google.com>

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

      reply	other threads:[~2026-12-01  8:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 22:53 [PATCH 0/3] driver core: Add __must_init annotations to core registration structs Ian Rogers
2026-11-30 22:53 ` [PATCH 1/3] driver core: Require explicit initialization of class and bus_type name Ian Rogers
2026-12-01  8:26   ` Johan Hovold
2026-12-01 16:36     ` Ian Rogers
2026-11-30 22:53 ` [PATCH 2/3] driver core: auxiliary: Annotate probe and id_table with __must_init Ian Rogers
2026-12-01  8:32   ` Johan Hovold
2026-11-30 22:53 ` [PATCH 3/3] firmware_loader: Annotate mandatory fw_upload_ops " Ian Rogers
2026-12-01  8:35   ` Johan Hovold [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw6G6CQgLel_5j07@hovoldconsulting.com \
    --to=johan@kernel.org \
    --cc=dakr@kernel.org \
    --cc=david.m.ertman@intel.com \
    --cc=driver-core@lists.linux.dev \
    --cc=gregkh@linuxfoundation.org \
    --cc=irogers@google.com \
    --cc=iweiny@kernel.org \
    --cc=kees@kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mcgrof@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rafael@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.