net/mlx5: clean function declarations in eswitch.c up
authorBaoyou Xie <baoyou.xie@linaro.org>
Sun, 18 Sep 2016 08:44:22 +0000 (16:44 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2016 01:52:10 +0000 (21:52 -0400)
commit766a0e978fc2ba98d4865b466f8b572402317189
treebf9a06fb372d06912abb868e1e431e6238ce1fcf
parentd766e7e6b68d681d46d74e228ad0ba133e730e36
net/mlx5: clean function declarations in eswitch.c up

We get 2 warnings when building kernel with W=1:
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:463:5: warning: no previous prototype for 'esw_offloads_init' [-Wmissing-prototypes]
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c:521:6: warning: no previous prototype for 'esw_offloads_cleanup' [-Wmissing-prototypes]

In fact, both functions are declared in
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c,but should be
declared in a header file, thus can be recognized in other file.

So this patch moves the declarations into
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h

Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h