net/mlx5: fix cross compilation on aarch64
Checks
Commit Message
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 <orika@mellanox.com>
---
drivers/net/mlx5/mlx5_glue.c | 1 +
1 file changed, 1 insertion(+)
Comments
Monday, April 8, 2019 3:43 PM, Ori Kam:
> Subject: [PATCH] net/mlx5: fix cross compilation on aarch64
>
> 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 <orika@mellanox.com>
Applied to next-net-mlx, thanks.
Ferruh - you may want to squash to the relevant commit.
On 4/10/2019 7:59 AM, Shahaf Shuler wrote:
> Monday, April 8, 2019 3:43 PM, Ori Kam:
>> Subject: [PATCH] net/mlx5: fix cross compilation on aarch64
>>
>> 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 <orika@mellanox.com>
>
> Applied to next-net-mlx, thanks.
> Ferruh - you may want to squash to the relevant commit.
>
I can't squash since the relevant commit already merged into main repo and part
of rc1, merged into next-net as it is.
@@ -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