diff options
author | Leon Romanovsky | 2019-02-17 14:21:27 +0100 |
---|---|---|
committer | Saeed Mahameed | 2019-02-19 23:15:03 +0100 |
commit | 36a73471e55967248a4911517ab8deb410882060 (patch) | |
tree | 093650aeef2e694df4a0cfd0d51b181b2d5f655f /drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c | |
parent | net/mlx5e: Remove 'parse_attr' argument in mlx5e_tc_add_fdb_flow() (diff) | |
download | kernel-qcow2-linux-36a73471e55967248a4911517ab8deb410882060.tar.gz kernel-qcow2-linux-36a73471e55967248a4911517ab8deb410882060.tar.xz kernel-qcow2-linux-36a73471e55967248a4911517ab8deb410882060.zip |
net/mlx5e: Add missing static function annotation
Compilation with W=1 produces following warning:
drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c:69:6:
warning: no previous prototype for _mlx5e_monitor_counter_start_ [-Wmissing-prototypes]
void mlx5e_monitor_counter_start(struct mlx5e_priv *priv)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Avoid it by declaring mlx5e_monitor_counter_start() as a static function.
Fixes: 5c7e8bbb0257 ("net/mlx5e: Use monitor counters for update stats")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c b/drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c index 2ce420851e77..7cd5b02e0f10 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c @@ -66,7 +66,7 @@ static int mlx5e_monitor_event_handler(struct notifier_block *nb, return NOTIFY_OK; } -void mlx5e_monitor_counter_start(struct mlx5e_priv *priv) +static void mlx5e_monitor_counter_start(struct mlx5e_priv *priv) { MLX5_NB_INIT(&priv->monitor_counters_nb, mlx5e_monitor_event_handler, MONITOR_COUNTER); |