net/mlx5: add missing void argument to function mlx5_devlink_alloc
authorColin Ian King <colin.king@canonical.com>
Tue, 18 Jun 2019 15:15:10 +0000 (16:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jun 2019 02:28:50 +0000 (22:28 -0400)
Function mlx5_devlink_alloc is missing a void argument, add it
to clean up the non-ANSI function declaration.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/devlink.c

index ed4202e883f087eb06fb0778c68e4e532598c4d7..1533c657220be60863259cca690d44c30de9e7ec 100644 (file)
@@ -37,7 +37,7 @@ static const struct devlink_ops mlx5_devlink_ops = {
        .flash_update = mlx5_devlink_flash_update,
 };
 
-struct devlink *mlx5_devlink_alloc()
+struct devlink *mlx5_devlink_alloc(void)
 {
        return devlink_alloc(&mlx5_devlink_ops, sizeof(struct mlx5_core_dev));
 }