[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpUH8TmTtdPY9LNhGrUc6aMkS=NYtrk4qXMKj_2Y0iHa_A@mail.gmail.com>
Date: Wed, 5 Dec 2018 10:36:54 -0800
From: Cong Wang <xiyou.wangcong@...il.com>
To: Saeed Mahameed <saeedm@...lanox.com>
Cc: David Miller <davem@...emloft.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
Tariq Toukan <tariqt@...lanox.com>
Subject: Re: [net-next 7/7] net/mlx5e: Improve ethtool private-flags code structure
On Tue, Dec 4, 2018 at 10:27 PM Saeed Mahameed <saeedm@...lanox.com> wrote:
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h
> index a429553002a6..49e90ac5dc8b 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h
...
> #define MLX5E_SET_PFLAG(params, pflag, enable) \
> do { \
> if (enable) \
> - (params)->pflags |= (pflag); \
> + (params)->pflags |= BIT(pflag); \
> else \
> - (params)->pflags &= ~(pflag); \
> + (params)->pflags &= ~(BIT(pflag)); \
> } while (0)
>
Please #include <linux/bits.h> explicitly.
Thanks.
Powered by blists - more mailing lists