Skip to content

Commit

Permalink
Remove unneeded malloc.h
Browse files Browse the repository at this point in the history
This header is only needed to access internal glibc stuff, and the
compatibility memalign. Using it confuses sparse.

Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
jgunthorpe committed May 28, 2019
1 parent 2f1db17 commit 4d12df1
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion ibacm/linux/osd.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <malloc.h>
#include <sys/time.h>

#include <ccan/minmax.h>
Expand Down
1 change: 0 additions & 1 deletion providers/bnxt_re/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
#include <signal.h>
#include <errno.h>
#include <pthread.h>
#include <malloc.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <unistd.h>
Expand Down
1 change: 0 additions & 1 deletion providers/bnxt_re/verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <signal.h>
#include <errno.h>
#include <pthread.h>
#include <malloc.h>
#include <sys/mman.h>
#include <netinet/in.h>
#include <unistd.h>
Expand Down
1 change: 0 additions & 1 deletion providers/efa/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <assert.h>
#include <errno.h>
#include <malloc.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 0 additions & 1 deletion providers/mlx5/dr_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
*/

#include <unistd.h>
#include <malloc.h>
#include <arpa/inet.h>
#include <ccan/array_size.h>
#include "mlx5dv_dr.h"
Expand Down
1 change: 0 additions & 1 deletion providers/mlx5/dr_domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
*/

#include <unistd.h>
#include <malloc.h>
#include <stdlib.h>
#include "mlx5dv_dr.h"

Expand Down
1 change: 0 additions & 1 deletion providers/mlx5/dr_send.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <unistd.h>
#include <util/mmio.h>
#include "mlx5dv_dr.h"
Expand Down
1 change: 0 additions & 1 deletion providers/ocrdma/ocrdma_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <signal.h>
#include <errno.h>
#include <pthread.h>
#include <malloc.h>
#include <sys/mman.h>
#include <unistd.h>
#include <endian.h>
Expand Down
1 change: 0 additions & 1 deletion providers/qedr/qelr_verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <signal.h>
#include <errno.h>
#include <pthread.h>
#include <malloc.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion pyverbs/device.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cdef extern from 'stdlib.h':
void free(void *ptr)
cdef extern from 'string.h':
void *memset(void *s, int c, size_t n)
cdef extern from 'malloc.h':
cdef extern from 'stdlib.h':
void *malloc(size_t size)
cdef extern from 'stdint.h':
ctypedef int uint64_t
Expand Down

0 comments on commit 4d12df1

Please sign in to comment.