diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2025-01-27 12:12:05 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-04-29 13:53:40 +0000 |
| commit | 901256f6ea3cda2e0951b80b9be466e1b596f7fa (patch) | |
| tree | 2101ec93e3e2ae87ec636fc956c972eb53cfbb02 /sys/dev/mlx5/mlx5_core/mlx5_main.c | |
| parent | 325aa4dbd10d04a61a9529e1d76212b5649b3c73 (diff) | |
Diffstat (limited to 'sys/dev/mlx5/mlx5_core/mlx5_main.c')
| -rw-r--r-- | sys/dev/mlx5/mlx5_core/mlx5_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/mlx5/mlx5_core/mlx5_main.c b/sys/dev/mlx5/mlx5_core/mlx5_main.c index 2b0c9f584088..221781327b51 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_main.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_main.c @@ -761,8 +761,8 @@ static inline int fw_initializing(struct mlx5_core_dev *dev) static int wait_fw_init(struct mlx5_core_dev *dev, u32 max_wait_mili, u32 warn_time_mili) { - int warn = jiffies + msecs_to_jiffies(warn_time_mili); - int end = jiffies + msecs_to_jiffies(max_wait_mili); + unsigned long warn = jiffies + msecs_to_jiffies(warn_time_mili); + unsigned long end = jiffies + msecs_to_jiffies(max_wait_mili); int err = 0; MPASS(max_wait_mili > warn_time_mili); @@ -774,8 +774,8 @@ static int wait_fw_init(struct mlx5_core_dev *dev, u32 max_wait_mili, } if (warn_time_mili && time_after(jiffies, warn)) { mlx5_core_warn(dev, - "Waiting for FW initialization, timeout abort in %u s\n", - (unsigned)(jiffies_to_msecs(end - warn) / 1000)); + "Waiting for FW initialization, timeout abort in %lu s\n", + (unsigned long)(jiffies_to_msecs(end - warn) / 1000)); warn = jiffies + msecs_to_jiffies(warn_time_mili); } msleep(FW_INIT_WAIT_MS); |
