[PATCH] drop <stddef.h> includes

Sascha Hauer s.hauer at pengutronix.de
Tue Jul 21 01:22:11 PDT 2015


The compilers stddef.h should not be included. We declare all types
ourselves.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 common/tlsf.c         | 1 -
 fs/ext4/ext4_common.c | 1 -
 include/tlsf.h        | 2 --
 3 files changed, 4 deletions(-)

diff --git a/common/tlsf.c b/common/tlsf.c
index 9515ac7..984342e 100644
--- a/common/tlsf.c
+++ b/common/tlsf.c
@@ -1,4 +1,3 @@
-#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c
index ab0e6b5..04b1915 100644
--- a/fs/ext4/ext4_common.c
+++ b/fs/ext4/ext4_common.c
@@ -30,7 +30,6 @@
 
 #include <common.h>
 #include <malloc.h>
-#include <stddef.h>
 #include <linux/stat.h>
 #include <linux/time.h>
 #include <asm/byteorder.h>
diff --git a/include/tlsf.h b/include/tlsf.h
index d575e16..1917fa1 100644
--- a/include/tlsf.h
+++ b/include/tlsf.h
@@ -16,8 +16,6 @@
 ** of the document, therefore no GPL restrictions apply.
 */
 
-#include <stddef.h>
-
 #if defined(__cplusplus)
 extern "C" {
 #endif
-- 
2.1.4




More information about the barebox mailing list