Skip to content

Commit 287a63e

Browse files
Christoph HellwigKeith Busch
authored andcommitted
nvme: mark the result argument to nvme_complete_async_event volatile
We'll need that in the PCIe driver soon as we'll read it straight off the CQ. Signed-off-by: Christoph Hellwig <[email protected]>
1 parent cc1d5e7 commit 287a63e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3344,7 +3344,7 @@ static void nvme_fw_act_work(struct work_struct *work)
33443344
}
33453345

33463346
void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
3347-
union nvme_result *res)
3347+
volatile union nvme_result *res)
33483348
{
33493349
u32 result = le32_to_cpu(res->u32);
33503350

drivers/nvme/host/nvme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ int nvme_sec_submit(void *data, u16 spsp, u8 secp, void *buffer, size_t len,
400400
bool send);
401401

402402
void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
403-
union nvme_result *res);
403+
volatile union nvme_result *res);
404404

405405
void nvme_stop_queues(struct nvme_ctrl *ctrl);
406406
void nvme_start_queues(struct nvme_ctrl *ctrl);

0 commit comments

Comments
 (0)