net/mlx5: fix cross compilation on aarch64

Message ID 1554727378-72718-1-git-send-email-orika@mellanox.com (mailing list archive)
State Accepted, archived
Delegated to: Shahaf Shuler
Headers
Series net/mlx5: fix cross compilation on aarch64 |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Performance-Testing success Performance Testing PASS
ci/mellanox-Performance-Testing success Performance Testing PASS

Commit Message

Ori Kam April 8, 2019, 12:43 p.m. UTC
  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

Shahaf Shuler April 10, 2019, 6:59 a.m. UTC | #1
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.
  
Ferruh Yigit April 10, 2019, 5:50 p.m. UTC | #2
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.
  

Patch

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