* [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static
@ 2020-01-20 12:41 Chen Wandun
2020-01-20 14:33 ` Paul Blakey
0 siblings, 1 reply; 3+ messages in thread
From: Chen Wandun @ 2020-01-20 12:41 UTC (permalink / raw)
To: paulb, ozsh, markb, saeedm, leon, netdev, linux-rdma, linux-kernel
Cc: chenwandun
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@huawei.com>
---
.../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;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static
2020-01-20 12:41 [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static Chen Wandun
@ 2020-01-20 14:33 ` Paul Blakey
2020-01-21 20:44 ` Saeed Mahameed
0 siblings, 1 reply; 3+ messages in thread
From: Paul Blakey @ 2020-01-20 14:33 UTC (permalink / raw)
To: Chen Wandun, Oz Shlomo, Mark Bloch, Saeed Mahameed, leon, netdev,
linux-rdma, linux-kernel
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@huawei.com>
> ---
> .../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@mellanox.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static
2020-01-20 14:33 ` Paul Blakey
@ 2020-01-21 20:44 ` Saeed Mahameed
0 siblings, 0 replies; 3+ messages in thread
From: Saeed Mahameed @ 2020-01-21 20:44 UTC (permalink / raw)
To: linux-rdma, Oz Shlomo, Paul Blakey, Mark Bloch, linux-kernel,
netdev, chenwandun, leon
On Mon, 2020-01-20 at 14:33 +0000, Paul Blakey wrote:
> 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:3
> > 5: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@huawei.com>
> > ---
> > .../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@mellanox.com>
>
Applied to net-next-mlx5,
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-21 20:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 12:41 [PATCH next] net/mlx5: make the symbol 'ESW_POOLS' static Chen Wandun
2020-01-20 14:33 ` Paul Blakey
2020-01-21 20:44 ` Saeed Mahameed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).