Skip to content

Migration to ARRAY_SIZE() and further include cleanups

Florian Bezdeka xenomai 1 version Applied

Status from this message: Thanks, applied to next.

Get series with b4
b4 am [email protected] change-id 20231201-flo-array-size-f30df8dd25e9

Versions newest first

  1. v1 Latest13 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/13testsuite: Migrate to ARRAY_SIZE()include/smokey/smokey.h testsuite/smokey/alchemytests/mq-1.c testsuite/smokey/alchemytests/mq-2.c +6 more+24 -200 replies
2/13demo: Migrate to ARRAY_SIZE()demo/posix/cobalt/bufp-label.c demo/posix/cobalt/bufp-readwrite.c demo/posix/cobalt/iddp-label.c +5 more+24 -100 replies
3/13lib: Migrate to ARRAY_SIZE()lib/boilerplate/ancillaries.c lib/boilerplate/setup.c lib/cobalt/mutex.c +1 more+5 -50 replies
4/13kernel/drivers: Mirate to ARRAY_SIZE()kernel/drivers/analogy/national_instruments/mio_common.c kernel/drivers/analogy/national_instruments/ni_670x.c kernel/drivers/analogy/national_instruments/ni_stc.h +5 more+12 -200 replies
5/13demo: Cleanup includesdemo/alchemy/altency.c demo/alchemy/cobalt/cross-link.c demo/posix/cobalt/bufp-label.c +9 more+9 -100 replies
6/13lib/alchemy: Cleanup includeslib/alchemy/alarm.c lib/alchemy/buffer.c lib/alchemy/cond.c +9 more+10 -140 replies
7/13lib/analogy: Cleanup includeslib/analogy/calibration.c lib/analogy/descriptor.c lib/analogy/math.c +1 more+1 -40 replies
8/13lib/boilerplate: Cleanup includeslib/boilerplate/ancillaries.c lib/boilerplate/avl.c lib/boilerplate/debug.c +7 more+12 -160 replies
9/13lib/copperplate: Cleanup includeslib/copperplate/clockobj.c lib/copperplate/cluster.c lib/copperplate/eventobj.c +6 more+10 -180 replies
10/13lib/psos: Cleanup includeslib/psos/init.c lib/psos/pt.c lib/psos/queue.c +4 more+7 -300 replies
11/13lib/smokey: Cleanup includeslib/smokey/helpers.c lib/smokey/init.c+4 -50 replies
12/13lib/trank: Cleanup includeslib/trank/init.c lib/trank/internal.c+3 -20 replies
13/13lib/vxworks: Cleanup includeslib/vxworks/errnoLib.c lib/vxworks/init.c lib/vxworks/kernLib.c +10 more+15 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] Migration to ARRAY_SIZE() and further include cleanups

Hi all,

Warning, this is high altitute work ;-). I had some time on my flight back from New Zealand, so review carefully.

Everything is compile tested and passed our internal CI already - as usual.

I'm trying to address some comments / further cleanups mentioned by Jan during the last testsuite cleanup series.

Best regards,
Florian

---
Florian Bezdeka (13):
testsuite: Migrate to ARRAY_SIZE()
demo: Migrate to ARRAY_SIZE()
lib: Migrate to ARRAY_SIZE()
kernel/drivers: Mirate to ARRAY_SIZE()
demo: Cleanup includes
lib/alchemy: Cleanup includes
lib/analogy: Cleanup includes
lib/boilerplate: Cleanup includes
lib/copperplate: Cleanup includes
lib/psos: Cleanup includes
lib/smokey: Cleanup includes
lib/trank: Cleanup includes
lib/vxworks: Cleanup includes

 demo/alchemy/altency.c                                   |  2 +-
 demo/alchemy/cobalt/cross-link.c                         |  3 +--
 demo/posix/cobalt/bufp-label.c                           |  5 ++++-
 demo/posix/cobalt/bufp-readwrite.c                       |  5 ++++-
 demo/posix/cobalt/can-rtt.c                              |  2 --
 demo/posix/cobalt/eth_p_all.c                            |  2 --
 demo/posix/cobalt/gpiopwm.c                              |  3 ---
 demo/posix/cobalt/iddp-label.c                           |  5 ++++-
 demo/posix/cobalt/iddp-sendrecv.c                        |  5 ++++-
 demo/posix/cobalt/xddp-echo.c                            |  5 ++++-
 demo/posix/cobalt/xddp-label.c                           |  5 ++++-
 demo/posix/cobalt/xddp-stream.c                          |  5 ++++-
 demo/posix/cyclictest/cyclictest.c                       |  6 +++---
 include/smokey/smokey.h                                  |  2 +-
 kernel/drivers/analogy/national_instruments/mio_common.c |  6 ++----
 kernel/drivers/analogy/national_instruments/ni_670x.c    |  2 +-
 kernel/drivers/analogy/national_instruments/ni_stc.h     |  4 ++--
 kernel/drivers/analogy/national_instruments/pcimio.c     |  2 +-
 .../net/drivers/experimental/e1000/e1000_80003es2lan.c   |  3 +--
 .../drivers/net/drivers/experimental/e1000/e1000_82541.c |  3 +--
 .../drivers/net/drivers/experimental/e1000/e1000_phy.c   |  6 ++----
 kernel/drivers/net/drivers/igb/e1000_phy.c               |  6 ++----
 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 +-
 lib/analogy/calibration.c                                |  2 +-
 lib/analogy/descriptor.c                                 |  1 -
 lib/analogy/math.c                                       |  1 -
 lib/analogy/range.c                                      |  1 -
 lib/boilerplate/ancillaries.c                            |  8 +++-----
 lib/boilerplate/avl.c                                    |  1 +
 lib/boilerplate/debug.c                                  |  7 ++-----
 lib/boilerplate/hash.c                                   |  2 +-
 lib/boilerplate/heapmem.c                                |  5 ++---
 lib/boilerplate/iniparser/dictionary.c                   |  1 -
 lib/boilerplate/init/bootstrap.c                         |  1 +
 lib/boilerplate/setup.c                                  |  7 +++----
 lib/boilerplate/time.c                                   |  1 +
 lib/boilerplate/version.c                                |  1 +
 lib/cobalt/mutex.c                                       |  2 +-
 lib/cobalt/sigshadow.c                                   |  2 +-
 lib/copperplate/clockobj.c                               |  4 ----
 lib/copperplate/cluster.c                                |  3 ---
 lib/copperplate/eventobj.c                               |  2 --
 lib/copperplate/heapobj-heapmem.c                        |  7 +++++--
 lib/copperplate/init.c                                   |  4 +---
 lib/copperplate/internal.c                               |  4 ++--
 lib/copperplate/syncobj.c                                |  2 --
 lib/copperplate/threadobj.c                              |  1 +
 lib/copperplate/traceobj.c                               |  1 +
 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 ---
 lib/smokey/helpers.c                                     |  1 +
 lib/smokey/init.c                                        |  8 +++-----
 lib/trank/init.c                                         |  1 +
 lib/trank/internal.c                                     |  4 ++--
 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 +
 testsuite/smokey/alchemytests/mq-1.c                     |  3 ++-
 testsuite/smokey/alchemytests/mq-2.c                     |  3 ++-
 testsuite/smokey/net_common/server.c                     |  8 ++++----
 testsuite/smokey/net_common/setup.c                      |  2 +-
 testsuite/smokey/posix-select/posix-select.c             |  4 ++--
 testsuite/smokey/vxworkstests/msgQ-1.c                   |  3 ++-
 testsuite/smokey/vxworkstests/msgQ-2.c                   |  3 ++-
 testsuite/switchtest/switchtest.c                        | 16 ++++++++--------
 91 files changed, 136 insertions(+), 168 deletions(-)

---
base-commit: ed69c34214f9fcf57b459e701ed4f65f6753bb8c
change-id: 20231201-flo-array-size-f30df8dd25e9

Best regards,

Signature · 1 line
Florian Bezdeka <[email protected]>