Re: [PATCH] net/mlx4_core: Use min_t instead of if for consistency

2017-05-11 Thread kbuild test robot
Hi Yuval, [auto build test ERROR on net-next/master] [also build test ERROR on v4.11 next-20170511] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Yuval-Shaia/net-mlx4_core-Use-min_t-instead-of-

Re: [PATCH] net/mlx4_core: Use min_t instead of if for consistency

2017-05-11 Thread Leon Romanovsky
On Thu, May 11, 2017 at 11:20:52AM +0300, Yuval Shaia wrote: > Signed-off-by: Yuval Shaia > --- > drivers/net/ethernet/mellanox/mlx4/main.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c > b/drivers/net/ethernet/mellano

Re: [PATCH] net/mlx4_core: Use min_t instead of if for consistency

2017-05-11 Thread Johannes Thumshirn
On 05/11/2017 10:20 AM, Yuval Shaia wrote: > + nreq = min_t(nreq, MAX_MSIX); Ahm... include/linux/kernel.h +802 #define min_t(type, x, y) \ __min(type, type, \ __UNIQUE_ID(min1_), __UNIQUE_ID(min2_), \

[PATCH] net/mlx4_core: Use min_t instead of if for consistency

2017-05-11 Thread Yuval Shaia
Signed-off-by: Yuval Shaia --- drivers/net/ethernet/mellanox/mlx4/main.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 7032054..a58b15a 100644 --- a/drivers/net/ethernet/mel