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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason Gunthorpe <jgg@xxxxxxxxxxxx>

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

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

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"
-- 
2.21.0




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux