mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] drop <stddef.h> includes
Date: Tue, 21 Jul 2015 10:22:11 +0200	[thread overview]
Message-ID: <1437466931-23552-1-git-send-email-s.hauer@pengutronix.de> (raw)

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

                 reply	other threads:[~2015-07-21  8:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1437466931-23552-1-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox