mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] drop <stddef.h> includes
@ 2015-07-21  8:22 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2015-07-21  8:22 UTC (permalink / raw)
  To: Barebox List

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

Signed-off-by: Sascha Hauer <s.hauer@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-21  8:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21  8:22 [PATCH] drop <stddef.h> includes Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox