In case of cross compilation on aarch64 we must add include for stdlib in order to use the free function.
Fixes: cbb66daa3c85 ("net/mlx5: prepare Direct Verbs for Direct Rule") Signed-off-by: Ori Kam <or...@mellanox.com> --- drivers/net/mlx5/mlx5_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_glue.c b/drivers/net/mlx5/mlx5_glue.c index f5a6c2e..a508faa 100644 --- a/drivers/net/mlx5/mlx5_glue.c +++ b/drivers/net/mlx5/mlx5_glue.c @@ -7,6 +7,7 @@ #include <stdalign.h> #include <stddef.h> #include <stdint.h> +#include <stdlib.h> /* * Not needed by this file; included to work around the lack of off_t -- 1.8.3.1