From: Saeed Mahameed <sae...@mellanox.com> Date: Tue, 2 Apr 2019 16:03:42 -0700
> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > index 7c1ea0a17024..d3a507be72d4 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > @@ -1438,6 +1438,26 @@ static int parse_tunnel_attr(struct mlx5e_priv *priv, > return 0; > } > > +static inline void *get_match_headers_criteria(u32 flags, > + struct mlx5_flow_spec *spec) > +{ Do not use the inline keyword in foo.c files, let the compiler decide.