Re: [PATCH net 6/6] net/mlx5e: Use unsigned for mlx5e_get_max_num_channels
From: Jacob Keller
Date: Thu Feb 12 2026 - 17:42:31 EST
On 2/12/2026 2:32 AM, Tariq Toukan wrote:
From: Cosmin Ratiu <cratiu@xxxxxxxxxx>
The max number of channels is always an unsigned int, use the correct
type to fix compilation errors done with strict type checking, e.g.:
error: call to ‘__compiletime_assert_1110’ declared with attribute
error: min(mlx5e_get_devlink_param_num_doorbells(mdev),
mlx5e_get_max_num_channels(mdev)) signedness error
Reviewed-by: Jacob Keller <jacob.e.keller@xxxxxxxxx>