Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net/mlx5: Use to_delayed_work()

Use to_delayed_work() instead of open-coding it.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Acked-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20250514072419.2707578-1-nichen@iscas.ac.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Chen Ni and committed by
Jakub Kicinski
ee39bae6 4c032725

+1 -2
+1 -2
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
··· 927 927 928 928 static void cb_timeout_handler(struct work_struct *work) 929 929 { 930 - struct delayed_work *dwork = container_of(work, struct delayed_work, 931 - work); 930 + struct delayed_work *dwork = to_delayed_work(work); 932 931 struct mlx5_cmd_work_ent *ent = container_of(dwork, 933 932 struct mlx5_cmd_work_ent, 934 933 cb_timeout_work);