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 13/13] lib/vxworks: Cleanup includes
Date: Tue, 05 Dec 2023 13:41:50 +0100 [thread overview]
Message-ID: <20231201-flo-array-size-v1-13-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/vxworks/errnoLib.c | 1 +
lib/vxworks/init.c | 3 ++-
lib/vxworks/kernLib.c | 1 +
lib/vxworks/memPartLib.c | 1 +
lib/vxworks/msgQLib.c | 1 +
lib/vxworks/rngLib.c | 1 +
lib/vxworks/semLib.c | 1 +
lib/vxworks/sysLib.c | 4 ++--
lib/vxworks/taskHookLib.c | 2 ++
lib/vxworks/taskInfo.c | 1 +
lib/vxworks/taskLib.c | 6 ------
lib/vxworks/tickLib.c | 6 +-----
lib/vxworks/wdLib.c | 1 +
13 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/lib/vxworks/errnoLib.c b/lib/vxworks/errnoLib.c
index cfb73f27c..66c91e2dd 100644
--- a/lib/vxworks/errnoLib.c
+++ b/lib/vxworks/errnoLib.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <string.h>
#include <vxworks/errnoLib.h>
+
#include "taskLib.h"
void printErrno(int status)
diff --git a/lib/vxworks/init.c b/lib/vxworks/init.c
index 9a3dcc4ab..4a68c9d7f 100644
--- a/lib/vxworks/init.c
+++ b/lib/vxworks/init.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 <stdio.h>
-#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <xenomai/init.h>
#include <vxworks/errnoLib.h>
+
#include "tickLib.h"
#include "taskLib.h"
diff --git a/lib/vxworks/kernLib.c b/lib/vxworks/kernLib.c
index d67502730..112f2d2eb 100644
--- a/lib/vxworks/kernLib.c
+++ b/lib/vxworks/kernLib.c
@@ -18,6 +18,7 @@
#include <vxworks/kernLib.h>
#include <vxworks/errnoLib.h>
+
#include "tickLib.h"
#include "taskLib.h"
diff --git a/lib/vxworks/memPartLib.c b/lib/vxworks/memPartLib.c
index c8eeb3617..f3efb0d36 100644
--- a/lib/vxworks/memPartLib.c
+++ b/lib/vxworks/memPartLib.c
@@ -25,6 +25,7 @@
#include <copperplate/heapobj.h>
#include <vxworks/errnoLib.h>
#include <vxworks/memPartLib.h>
+
#include "memPartLib.h"
#define mempart_magic 0x5a6b7c8d
diff --git a/lib/vxworks/msgQLib.c b/lib/vxworks/msgQLib.c
index aa0b71c68..7b3d59afe 100644
--- a/lib/vxworks/msgQLib.c
+++ b/lib/vxworks/msgQLib.c
@@ -24,6 +24,7 @@
#include <copperplate/heapobj.h>
#include <copperplate/threadobj.h>
#include <vxworks/errnoLib.h>
+
#include "reference.h"
#include "taskLib.h"
#include "msgQLib.h"
diff --git a/lib/vxworks/rngLib.c b/lib/vxworks/rngLib.c
index b11b89519..343d71baa 100644
--- a/lib/vxworks/rngLib.c
+++ b/lib/vxworks/rngLib.c
@@ -20,6 +20,7 @@
#include <boilerplate/lock.h>
#include <copperplate/heapobj.h>
#include <vxworks/errnoLib.h>
+
#include "rngLib.h"
#define ring_magic 0x5432affe
diff --git a/lib/vxworks/semLib.c b/lib/vxworks/semLib.c
index 180ed2000..f2abf0f83 100644
--- a/lib/vxworks/semLib.c
+++ b/lib/vxworks/semLib.c
@@ -23,6 +23,7 @@
#include <boilerplate/ancillaries.h>
#include <copperplate/heapobj.h>
#include <vxworks/errnoLib.h>
+
#include "reference.h"
#include "taskLib.h"
#include "semLib.h"
diff --git a/lib/vxworks/sysLib.c b/lib/vxworks/sysLib.c
index 449cc64fb..57999db66 100644
--- a/lib/vxworks/sysLib.c
+++ b/lib/vxworks/sysLib.c
@@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#include "tickLib.h"
-#include <boilerplate/lock.h>
#include <vxworks/errnoLib.h>
#include <vxworks/sysLib.h>
+#include "tickLib.h"
+
int sysClkRateGet(void)
{
unsigned int resolution;
diff --git a/lib/vxworks/taskHookLib.c b/lib/vxworks/taskHookLib.c
index 296bc72e6..8953063d3 100644
--- a/lib/vxworks/taskHookLib.c
+++ b/lib/vxworks/taskHookLib.c
@@ -15,9 +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 <copperplate/heapobj.h>
#include <vxworks/taskHookLib.h>
#include <vxworks/errnoLib.h>
+
#include "taskLib.h"
#include "taskHookLib.h"
diff --git a/lib/vxworks/taskInfo.c b/lib/vxworks/taskInfo.c
index ec423d24e..c10bf27bf 100644
--- a/lib/vxworks/taskInfo.c
+++ b/lib/vxworks/taskInfo.c
@@ -22,6 +22,7 @@
#include <copperplate/threadobj.h>
#include <vxworks/errnoLib.h>
#include <vxworks/taskInfo.h>
+
#include "taskLib.h"
const char *taskName(TASK_ID task_id)
diff --git a/lib/vxworks/taskLib.c b/lib/vxworks/taskLib.c
index c8723c6be..ffef7c832 100644
--- a/lib/vxworks/taskLib.c
+++ b/lib/vxworks/taskLib.c
@@ -17,11 +17,9 @@
*/
#include <stdio.h>
-#include <memory.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
-#include <unistd.h>
#include <pthread.h>
#include <fcntl.h>
#include <sched.h>
@@ -30,10 +28,6 @@
#include "msgQLib.h"
#include "taskHookLib.h"
#include "boilerplate/namegen.h"
-#include "copperplate/heapobj.h"
-#include "copperplate/threadobj.h"
-#include "copperplate/syncobj.h"
-#include "copperplate/cluster.h"
#include "copperplate/internal.h"
#include "copperplate/registry-obstack.h"
#include "vxworks/errnoLib.h"
diff --git a/lib/vxworks/tickLib.c b/lib/vxworks/tickLib.c
index 9f7ec5aed..ac8dcda2c 100644
--- a/lib/vxworks/tickLib.c
+++ b/lib/vxworks/tickLib.c
@@ -16,13 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
#include <boilerplate/lock.h>
#include <vxworks/tickLib.h>
+
#include "tickLib.h"
struct clockobj wind_clock;
diff --git a/lib/vxworks/wdLib.c b/lib/vxworks/wdLib.c
index beb70d567..55a830845 100644
--- a/lib/vxworks/wdLib.c
+++ b/lib/vxworks/wdLib.c
@@ -27,6 +27,7 @@
#include <copperplate/heapobj.h>
#include <copperplate/threadobj.h>
#include <vxworks/errnoLib.h>
+
#include "wdLib.h"
#include "tickLib.h"
--
2.39.2
next prev parent reply other threads:[~2023-12-05 12:51 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 ` [PATCH 06/13] lib/alchemy: " Florian Bezdeka
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 ` Florian Bezdeka [this message]
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-13-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.