Re: [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/20/2020 2:41 PM, Chen Wandun wrote:
> Fix the following sparse warning:
> drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c:35:20: warning: symbol 'ESW_POOLS' was not declared. Should it be static?
>
> Fixes: 39ac237ce009 ("net/mlx5: E-Switch, Refactor chains and priorities")
> Signed-off-by: Chen Wandun <chenwandun@xxxxxxxxxx>
> ---
>   .../ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c
> index 3a60eb5360bd..c5a446e295aa 100644
> --- a/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c
> +++ b/drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c
> @@ -32,10 +32,10 @@
>    * pools.
>    */
>   #define ESW_SIZE (16 * 1024 * 1024)
> -const unsigned int ESW_POOLS[] = { 4 * 1024 * 1024,
> -				   1 * 1024 * 1024,
> -				   64 * 1024,
> -				   4 * 1024, };
> +static const unsigned int ESW_POOLS[] = { 4 * 1024 * 1024,
> +					  1 * 1024 * 1024,
> +					  64 * 1024,
> +					  4 * 1024, };
>   
>   struct mlx5_esw_chains_priv {
>   	struct rhashtable chains_ht;

Acked-by: Paul Blakey <paulb@xxxxxxxxxxxx>





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux