diff options
author | Or Gerlitz <ogerlitz@mellanox.com> | 2018-01-01 08:19:51 -0500 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-02-20 15:52:56 -0500 |
commit | 9afe9a5353778994d4396f3d5ff639221bfa5cc9 (patch) | |
tree | 980472c2b1dd4a25586985ec6d0405f32f49cc65 | |
parent | f600c6088018d1dbc5777d18daa83660f7ea4a64 (diff) |
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: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 47bab842c5ee..a64b9226d281 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c | |||
@@ -2994,8 +2994,8 @@ static int mlx5e_setup_tc_block(struct net_device *dev, | |||
2994 | } | 2994 | } |
2995 | #endif | 2995 | #endif |
2996 | 2996 | ||
2997 | int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type, | 2997 | static int mlx5e_setup_tc(struct net_device *dev, enum tc_setup_type type, |
2998 | void *type_data) | 2998 | void *type_data) |
2999 | { | 2999 | { |
3000 | switch (type) { | 3000 | switch (type) { |
3001 | #ifdef CONFIG_MLX5_ESWITCH | 3001 | #ifdef CONFIG_MLX5_ESWITCH |
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c index e159243e0fcf..857035583ccd 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/highmem.h> | 34 | #include <linux/highmem.h> |
35 | #include <rdma/mlx5-abi.h> | 35 | #include <rdma/mlx5-abi.h> |
36 | #include "en.h" | 36 | #include "en.h" |
37 | #include "clock.h" | ||
37 | 38 | ||
38 | enum { | 39 | enum { |
39 | MLX5_CYCLES_SHIFT = 23 | 40 | MLX5_CYCLES_SHIFT = 23 |