]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Add missing static function annotation
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 17 Feb 2019 13:21:27 +0000 (15:21 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Feb 2019 22:15:03 +0000 (14:15 -0800)
commitfdce18596fbf38e3faf300ffaaad94b02c9dc0c0
tree093650aeef2e694df4a0cfd0d51b181b2d5f655f
parent62d9744a1fc7ef73da9be10f8501f6ef13607e44
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: 242e8611b6b3 ("net/mlx5e: Use monitor counters for update stats")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/monitor_stats.c