aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <[email protected]>2025-02-17 02:25:05 +0000
committerJens Axboe <[email protected]>2025-02-17 12:34:50 +0000
commit94a4274bb6ebc5b4293559304d0f00928de0d8c0 (patch)
treed1c357565cfff75155063cb82401439b5fd3c906 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentio_uring: introduce type alias for io_tw_state (diff)
downloadkernel-94a4274bb6ebc5b4293559304d0f00928de0d8c0.tar.gz
kernel-94a4274bb6ebc5b4293559304d0f00928de0d8c0.zip
io_uring: pass struct io_tw_state by value
8e5b3b89ecaf ("io_uring: remove struct io_tw_state::locked") removed the only field of io_tw_state but kept it as a task work callback argument to "forc[e] users not to invoke them carelessly out of a wrong context". Passing the struct io_tw_state * argument adds a few instructions to all callers that can't inline the functions and see the argument is unused. So pass struct io_tw_state by value instead. Since it's a 0-sized value, it can be passed without any instructions needed to initialize it. Signed-off-by: Caleb Sander Mateos <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions