All of lore.kernel.org
 help / color / mirror / Atom feed
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 10/13] lib/psos: Cleanup includes
Date: Tue, 05 Dec 2023 13:41:47 +0100	[thread overview]
Message-ID: <20231201-flo-array-size-v1-10-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/psos/init.c  | 8 ++------
 lib/psos/pt.c    | 5 +----
 lib/psos/queue.c | 7 +------
 lib/psos/rn.c    | 5 +----
 lib/psos/sem.c   | 4 +---
 lib/psos/task.c  | 5 +----
 lib/psos/tm.c    | 3 ---
 7 files changed, 7 insertions(+), 30 deletions(-)

diff --git a/lib/psos/init.c b/lib/psos/init.c
index 307594edb..0d8733436 100644
--- a/lib/psos/init.c
+++ b/lib/psos/init.c
@@ -15,18 +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 <string.h>
-#include <time.h>
 #include <stdlib.h>
-#include <unistd.h>
 #include <getopt.h>
 #include <xenomai/init.h>
 #include <copperplate/registry.h>
 #include <copperplate/clockobj.h>
-#include <copperplate/debug.h>
-#include <psos/psos.h>
-#include "internal.h"
+
 #include "tm.h"
 #include "task.h"
 #include "sem.h"
diff --git a/lib/psos/pt.c b/lib/psos/pt.c
index 0fc7d9bb6..244d341a4 100644
--- a/lib/psos/pt.c
+++ b/lib/psos/pt.c
@@ -17,14 +17,11 @@
  */
 
 #include <stdio.h>
-#include <stdint.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <memory.h>
 #include <boilerplate/ancillaries.h>
 #include <boilerplate/lock.h>
 #include <copperplate/cluster.h>
 #include <psos/psos.h>
+
 #include "internal.h"
 #include "pt.h"
 
diff --git a/lib/psos/queue.c b/lib/psos/queue.c
index 325335a3c..a88d64be1 100644
--- a/lib/psos/queue.c
+++ b/lib/psos/queue.c
@@ -17,19 +17,14 @@
  */
 
 #include <stdio.h>
-#include <stdint.h>
 #include <errno.h>
-#include <stdlib.h>
-#include <memory.h>
 #include <boilerplate/ancillaries.h>
 #include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
-#include <copperplate/clockobj.h>
 #include <copperplate/cluster.h>
 #include <psos/psos.h>
+
 #include "internal.h"
 #include "reference.h"
-#include "task.h"
 #include "queue.h"
 #include "tm.h"
 
diff --git a/lib/psos/rn.c b/lib/psos/rn.c
index fa5bb5707..4a09faebd 100644
--- a/lib/psos/rn.c
+++ b/lib/psos/rn.c
@@ -17,14 +17,11 @@
  */
 
 #include <stdio.h>
-#include <stdint.h>
 #include <errno.h>
-#include <stdlib.h>
-#include <memory.h>
 #include <boilerplate/ancillaries.h>
 #include <copperplate/threadobj.h>
-#include <copperplate/clockobj.h>
 #include <psos/psos.h>
+
 #include "internal.h"
 #include "tm.h"
 #include "rn.h"
diff --git a/lib/psos/sem.c b/lib/psos/sem.c
index 6f6610124..2e3376a5d 100644
--- a/lib/psos/sem.c
+++ b/lib/psos/sem.c
@@ -17,17 +17,15 @@
  */
 
 #include <stdio.h>
-#include <stdint.h>
 #include <errno.h>
-#include <stdlib.h>
 #include <string.h>
 #include <boilerplate/ancillaries.h>
 #include <copperplate/heapobj.h>
 #include <copperplate/cluster.h>
 #include <copperplate/clockobj.h>
 #include <copperplate/semobj.h>
+
 #include "reference.h"
-#include "task.h"
 #include "sem.h"
 #include "tm.h"
 #include "internal.h"
diff --git a/lib/psos/task.c b/lib/psos/task.c
index f678be61d..75965f007 100644
--- a/lib/psos/task.c
+++ b/lib/psos/task.c
@@ -17,18 +17,15 @@
  */
 
 #include <stdio.h>
-#include <memory.h>
 #include <errno.h>
 #include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
 #include <pthread.h>
 #include <sched.h>
+
 #include "boilerplate/namegen.h"
 #include "copperplate/heapobj.h"
 #include "copperplate/threadobj.h"
 #include "copperplate/syncobj.h"
-#include "copperplate/clockobj.h"
 #include "copperplate/cluster.h"
 #include "copperplate/internal.h"
 #include "psos/psos.h"
diff --git a/lib/psos/tm.c b/lib/psos/tm.c
index de7d56d1e..09cb47f6e 100644
--- a/lib/psos/tm.c
+++ b/lib/psos/tm.c
@@ -16,11 +16,8 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  */
 
-#include <errno.h>
 #include <memory.h>
 #include <copperplate/threadobj.h>
-#include <copperplate/heapobj.h>
-#include <copperplate/clockobj.h>
 #include <psos/psos.h>
 #include "task.h"
 #include "tm.h"

-- 
2.39.2


  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 ` Florian Bezdeka [this message]
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-10-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.