Commit 9afe9a53 authored by Or Gerlitz's avatar Or Gerlitz Committed by Saeed Mahameed

net/mlx5e: Eliminate build warnings on no previous prototype

Fix these gcc warnings on drivers/net/ethernet/mellanox/mlx5:

[..]/core/lib/clock.c:454:6: warning: no previous prototype for 'mlx5_init_clock' [-Wmissing-prototypes]
[..]/core/lib/clock.c:510:6: warning: no previous prototype for 'mlx5_cleanup_clock' [-Wmissing-prototypes]
[..]/core/en_main.c:3141:5: warning: no previous prototype for 'mlx5e_setup_tc' [-Wmissing-prototypes]
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: default avatarMatan Barak <matanb@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent f600c608
...@@ -2994,8 +2994,8 @@ static int mlx5e_setup_tc_block(struct net_device *dev, ...@@ -2994,8 +2994,8 @@ static int mlx5e_setup_tc_block(struct net_device *dev,
} }
#endif #endif
int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type, static int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type,
void *type_data) void *type_data)
{ {
switch (type) { switch (type) {
#ifdef CONFIG_MLX5_ESWITCH #ifdef CONFIG_MLX5_ESWITCH
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
#include <linux/highmem.h> #include <linux/highmem.h>
#include <rdma/mlx5-abi.h> #include <rdma/mlx5-abi.h>
#include "en.h" #include "en.h"
#include "clock.h"
enum { enum {
MLX5_CYCLES_SHIFT = 23 MLX5_CYCLES_SHIFT = 23
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment