diff mbox series

[rdma-core,2/7] hns: Remove unneeded malloc.h

Message ID 20190521190124.27486-3-jgg@ziepe.ca (mailing list archive)
State Not Applicable
Headers show
Series More fixes for building | expand

Commit Message

Jason Gunthorpe May 21, 2019, 7:01 p.m. UTC
From: Jason Gunthorpe <jgg@mellanox.com>

This header is only needed to access internal glibc stuff. Otherwise
it confuses sparse.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 providers/hns/hns_roce_u_hw_v1.c | 1 -
 providers/hns/hns_roce_u_hw_v2.c | 1 -
 2 files changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/providers/hns/hns_roce_u_hw_v1.c b/providers/hns/hns_roce_u_hw_v1.c
index dbe0a185d154f0..fceb57a549cccd 100644
--- a/providers/hns/hns_roce_u_hw_v1.c
+++ b/providers/hns/hns_roce_u_hw_v1.c
@@ -32,7 +32,6 @@ 
 
 #include <stdio.h>
 #include <string.h>
-#include <malloc.h>
 #include "hns_roce_u_db.h"
 #include "hns_roce_u_hw_v1.h"
 #include "hns_roce_u.h"
diff --git a/providers/hns/hns_roce_u_hw_v2.c b/providers/hns/hns_roce_u_hw_v2.c
index df1d9659ecb5a2..a9616022f0e655 100644
--- a/providers/hns/hns_roce_u_hw_v2.c
+++ b/providers/hns/hns_roce_u_hw_v2.c
@@ -33,7 +33,6 @@ 
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <string.h>
-#include <malloc.h>
 #include "hns_roce_u.h"
 #include "hns_roce_u_db.h"
 #include "hns_roce_u_hw_v2.h"