[PATCH 5/9] firewire: core: add context analysis annotation to queue_bus_reset_event()

From: Takashi Sakamoto

Date: Sun Nov 01 2026 - 23:23:43 EST


The caller of fill_bus_reset_event() must hold the client list mutex. This
requirement is also satisfied when the function is called from
queue_bus_reset_event() via fw_device_cdev_update(), but compiler-based
context analysis reports a warning because queue_bus_reset_event() lacks
the corresponding context annotation.

Add the annotation to queue_bus_reset_event().

Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
---
drivers/firewire/core-cdev.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index cbf61dc06971..927363d03846 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -443,6 +443,7 @@ static void for_each_client(struct fw_device *device,
}

static void queue_bus_reset_event(struct client *client)
+__must_hold(&client->device->client_list_mutex)
{
struct bus_reset_event *e;
struct client_resource *resource;
--
2.53.0