aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-18 16:15:10 +0100
committerDavid S. Miller <davem@davemloft.net>2019-06-18 22:28:50 -0400
commit39f5886032380e49119786b23274b38e9b3aa99c (patch)
tree90d85551fbaec595636fa5e0938b11de1e6fa993 /drivers/net/ethernet/mellanox/mlx5/core/devlink.c
parentMerge branch 'net-mvpp2-cls-Allow-steering-based-on-vlan-tag' (diff)
downloadlinux-dev-39f5886032380e49119786b23274b38e9b3aa99c.tar.xz
linux-dev-39f5886032380e49119786b23274b38e9b3aa99c.zip
net/mlx5: add missing void argument to function mlx5_devlink_alloc
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>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/devlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
index ed4202e883f0..1533c657220b 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c
@@ -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));
}