From: Florian Bezdeka <florian.bezdeka@siemens.com>
To: jan.kiszka@siemens.com, xenomai@lists.linux.dev
Cc: Florian Bezdeka <florian.bezdeka@siemens.com>
Subject: [PATCH 06/13] lib/alchemy: Cleanup includes
Date: Tue, 05 Dec 2023 13:41:43 +0100 [thread overview]
Message-ID: <20231201-flo-array-size-v1-6-3e0abd7c68fa@siemens.com> (raw)
In-Reply-To: <20231201-flo-array-size-v1-0-3e0abd7c68fa@siemens.com>
- Add an empty line between license information and first include,
that is what most files already did
- Cleanup unused / unnecessary includes where possible
Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
---
lib/alchemy/alarm.c | 2 +-
lib/alchemy/buffer.c | 2 +-
lib/alchemy/cond.c | 2 +-
lib/alchemy/event.c | 2 +-
lib/alchemy/heap.c | 1 -
lib/alchemy/init.c | 3 +--
lib/alchemy/internal.c | 2 --
lib/alchemy/mutex.c | 2 +-
lib/alchemy/pipe.c | 3 ++-
lib/alchemy/queue.c | 2 +-
lib/alchemy/sem.c | 1 -
lib/alchemy/task.c | 2 +-
12 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/lib/alchemy/alarm.c b/lib/alchemy/alarm.c
index 2298114d2..14cb4e248 100644
--- a/lib/alchemy/alarm.c
+++ b/lib/alchemy/alarm.c
@@ -15,10 +15,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <errno.h>
#include <string.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include "reference.h"
#include "internal.h"
#include "alarm.h"
diff --git a/lib/alchemy/buffer.c b/lib/alchemy/buffer.c
index 1fa281f3a..b9526304d 100644
--- a/lib/alchemy/buffer.c
+++ b/lib/alchemy/buffer.c
@@ -15,10 +15,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <errno.h>
#include <string.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include "reference.h"
#include "internal.h"
#include "buffer.h"
diff --git a/lib/alchemy/cond.c b/lib/alchemy/cond.c
index e4ad71454..4409e3f5b 100644
--- a/lib/alchemy/cond.c
+++ b/lib/alchemy/cond.c
@@ -15,10 +15,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <errno.h>
#include <string.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include "internal.h"
#include "cond.h"
#include "timer.h"
diff --git a/lib/alchemy/event.c b/lib/alchemy/event.c
index 8ccd99b86..8ba76f333 100644
--- a/lib/alchemy/event.c
+++ b/lib/alchemy/event.c
@@ -15,11 +15,11 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include <copperplate/registry-obstack.h>
#include "reference.h"
#include "internal.h"
diff --git a/lib/alchemy/heap.c b/lib/alchemy/heap.c
index c658c46b2..140fdc656 100644
--- a/lib/alchemy/heap.c
+++ b/lib/alchemy/heap.c
@@ -19,7 +19,6 @@
#include <errno.h>
#include <string.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include <copperplate/registry-obstack.h>
#include "reference.h"
#include "internal.h"
diff --git a/lib/alchemy/init.c b/lib/alchemy/init.c
index 2efd13899..c3da26eb8 100644
--- a/lib/alchemy/init.c
+++ b/lib/alchemy/init.c
@@ -17,11 +17,10 @@
*/
#include <stdio.h>
-#include <time.h>
#include <stdlib.h>
-#include <unistd.h>
#include <getopt.h>
#include <xenomai/init.h>
+
#include "timer.h"
#include "task.h"
#include "sem.h"
diff --git a/lib/alchemy/internal.c b/lib/alchemy/internal.c
index 7e998ff13..8258154ea 100644
--- a/lib/alchemy/internal.c
+++ b/lib/alchemy/internal.c
@@ -17,8 +17,6 @@
*/
#include <string.h>
-#include <stdio.h>
-#include <errno.h>
#include <boilerplate/lock.h>
#include <copperplate/cluster.h>
#include <copperplate/heapobj.h>
diff --git a/lib/alchemy/mutex.c b/lib/alchemy/mutex.c
index 5836af59f..9681e124e 100644
--- a/lib/alchemy/mutex.c
+++ b/lib/alchemy/mutex.c
@@ -15,10 +15,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <errno.h>
#include <string.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include "internal.h"
#include "mutex.h"
#include "timer.h"
diff --git a/lib/alchemy/pipe.c b/lib/alchemy/pipe.c
index c334349aa..a266a380f 100644
--- a/lib/alchemy/pipe.c
+++ b/lib/alchemy/pipe.c
@@ -15,13 +15,14 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
+
#include "rtdm/ipc.h"
#include "copperplate/threadobj.h"
-#include "copperplate/heapobj.h"
#include "copperplate/cluster.h"
#include "reference.h"
#include "internal.h"
diff --git a/lib/alchemy/queue.c b/lib/alchemy/queue.c
index c45e42454..0dba63f2b 100644
--- a/lib/alchemy/queue.c
+++ b/lib/alchemy/queue.c
@@ -15,10 +15,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+
#include <errno.h>
#include <string.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include <copperplate/registry-obstack.h>
#include "reference.h"
#include "internal.h"
diff --git a/lib/alchemy/sem.c b/lib/alchemy/sem.c
index 497756ebd..e88c6e4d6 100644
--- a/lib/alchemy/sem.c
+++ b/lib/alchemy/sem.c
@@ -20,7 +20,6 @@
#include <string.h>
#include <stdlib.h>
#include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
#include <copperplate/registry-obstack.h>
#include "reference.h"
#include "internal.h"
diff --git a/lib/alchemy/task.c b/lib/alchemy/task.c
index 9e6101df5..ed5f2f804 100644
--- a/lib/alchemy/task.c
+++ b/lib/alchemy/task.c
@@ -19,8 +19,8 @@
#include <sched.h>
#include <pthread.h>
#include <errno.h>
-#include <stdio.h>
#include <string.h>
+
#include "copperplate/heapobj.h"
#include "copperplate/internal.h"
#include "internal.h"
--
2.39.2
next prev parent reply other threads:[~2023-12-05 12:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-05 12:41 [PATCH 00/13] Migration to ARRAY_SIZE() and further include cleanups Florian Bezdeka
2023-12-05 12:41 ` [PATCH 01/13] testsuite: Migrate to ARRAY_SIZE() Florian Bezdeka
2023-12-05 12:41 ` [PATCH 02/13] demo: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 03/13] lib: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 04/13] kernel/drivers: Mirate " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 05/13] demo: Cleanup includes Florian Bezdeka
2023-12-05 12:41 ` Florian Bezdeka [this message]
2023-12-05 12:41 ` [PATCH 07/13] lib/analogy: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 08/13] lib/boilerplate: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 09/13] lib/copperplate: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 10/13] lib/psos: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 11/13] lib/smokey: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 12/13] lib/trank: " Florian Bezdeka
2023-12-05 12:41 ` [PATCH 13/13] lib/vxworks: " Florian Bezdeka
2023-12-07 2:37 ` [PATCH 00/13] Migration to ARRAY_SIZE() and further include cleanups Jan Kiszka
2023-12-07 9:13 ` Jan Kiszka
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=20231201-flo-array-size-v1-6-3e0abd7c68fa@siemens.com \
--to=florian.bezdeka@siemens.com \
--cc=jan.kiszka@siemens.com \
--cc=xenomai@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.