37562 Commits

Author SHA1 Message Date
Joel Sherrill
7d4ae6a2fa testsuites/unix/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
    Found with GCC's warning -Wunused-paramter.
2025-10-08 16:48:32 +00:00
Kinsey Moore
df2304b7e7 spec/bsps/aarch64/xilinx-zynqmp: Add XQspiPsu flashdev backend 2025-10-08 16:45:03 +00:00
Kinsey Moore
ea7a756ea1 bsps/shared/dev/flash/jffs2: Add support for NAND
This adds support for NAND to the JFFS2 flashdev adapter.
2025-10-08 16:43:09 +00:00
Joel Sherrill
e91ace80f1 bsps/arm/*beagle*: Relicense Claas Zeimke to 2-BSD
Also updates SPDX annotation

Updates #3053.
2025-10-06 16:55:58 -05:00
Joel Sherrill
a2f8c18819 arm/gumstix: Clean up Yang Xi attributions
While doing relicensing, I noticed that Yang Xi's submissions were
inconsistent about including a copyright. This adds that and does
some associated clean up. If comments were in the
attribution/license comment, they were converted to the Doxygen
comment block. No attribution or license changes were made.

I have reached out to Yang Xi for relicensing but not heard back
but the need for this cleanup was noticed.

Updates #3053
2025-10-06 17:30:17 +00:00
Joel Sherrill
30752f5df4 testsuites/validation/tx-thread-queue.c: Address -Wclobbered warning
Code should not rely on the contents of local variables set before
setjmp() after the longjmp() returns. In this case, it was notpossible
to reset events after the return. But analysis determined that the
longjmp() should always returns to the same stack frame. Thus local
variables should be preserved. The warning was disabled.

This case was not addressed by adding the "returns_twice" attribute
to setjmp() in setjmp.h.

Updates #5364.
2025-10-03 16:38:17 -05:00
Joel Sherrill
96c2793709 testsuites/validation/tc-task-restart.c: Address -Wclobbered warning
Code should not rely on the contents of local variables set before
setjmp() after the longjmp() returns. In this case, it was possible
to set cpu_self after the return from setjmp().

This case was not addressed by adding the "returns_twice" attribute
to setjmp() in setjmp.h.

Updates #5364.
2025-10-03 16:38:00 -05:00
Kinsey Moore
f34f2e0bf9 cpukit/jffs2/gc.c: Prevent live lock for split reads
In some cases a file read is not completed in a single call into the
JFFS2 layer and the inode is left in the READING state. When this
happens, it's possible for a garbage collection pass to be initiated
before completion of the read. In some such cases, the garbage
collection pass is executed in a tight loop that expects granular
locking to allow forward progress of the read between collection passes.
With RTEMS monolithic locking of the JFFS2 layer, forward progress is
not possible in this situation since the monolithic lock is never
released inside the loop.

The solution is to have the garbage collection pass return failure when
no progress is possible due to a bad inode state. This allows the read
to complete and the collection pass can be attempted at a later time.
2025-10-02 19:15:04 -05:00
Kinsey Moore
38e8e5c286 cpukit/flashdev: Add full support for NAND devices
This extends the flashdev API to support the additional calls required
by NAND device backends. This also adds region-relative IOCTLs to
prevent reimplementation of offset logic in top-end flashdev/filesystem
adapters.
2025-10-02 20:12:51 -04:00
Matteo Concas
1e28f577d8 bsps/noelv: Align instruction in bsp_reset()
Closes #5366
2025-10-02 16:43:54 +02:00
Joel Sherrill
d8f2967b63 cpukit/libtrace/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
ae1dd64548 cpukit/libtest/testparallel.c: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
ba04473bd7 cpukit/libpci/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
32170f83a8 cpukit/libmisc/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.

libmisc/shell was in a previous patch.
2025-09-26 22:38:34 +00:00
Joel Sherrill
128bee9104 cpukit/libi2c/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
333adee723 cpukit/libfs/src/pipe/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
d8977880ca cpukit/libdrvmgr/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
c4698dfc0c cpukit/libdl/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
b505b66866 cpukit/libblock/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
10c239a583 cpukit/libfs/src/rfs/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
fe1e9b673f cpukit/libfs/src/jffs2/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
1e0eacccd8 cpukit/libfs/src/imfs/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
f17dbb7d4b cpukit/libfs/src/ftpfs/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
8f77869f6d cpukit/libfs/src/dosfs/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
5cf1eec93b cpukit/libfs/src/defaults/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
94d9749222 cpukit/libmisc/shell/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
60458df1c2 cpukit/dev/can/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
cce1823e40 contrib/cpukit/uuid/gen_uuid.c: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
53d6794ea5 cpukit/libmisc/rtems-fdt/rtems-fdt-shell.c: Correct file header
The @file block was below the license and should have been above it.
2025-09-26 22:38:34 +00:00
Joel Sherrill
cf0a338520 cpukit/libcsupport/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
3b5ecfc5ac cpukit/posix/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
a96d3f6b49 cpukit/rtems/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
af86ade836 cpukit/sapi/src/rbheap.c: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
787e5a3a76 cpukit/score/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:38:34 +00:00
Joel Sherrill
b7ec902ea8 sptests/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:35:12 +00:00
Joel Sherrill
a8448ce123 tmtests/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:32:49 +00:00
Joel Sherrill
fd0123a7ef cpukit/include/rtems/rtems/timerimpl.h: Used unsigned type for mask
This addresses an issue found by the GCC -Wsign-compare warning.
The code was using a signed type for a bit mask.
2025-09-26 22:29:56 +00:00
Joel Sherrill
bf949e0526 testsuites/psxtest/*: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
2025-09-26 22:29:13 +00:00
Joel Sherrill
788f4ee4b8 cpukit/libmisc/shell/hexdump-parse.c: Fix fall through warning
The case did not have a break because it was calling a function
which should have been marked as "__dead". It was calling a
function which was marked "__dead". Apparently the analysis
did not see through the extra layer.
2025-09-26 16:43:25 -05:00
Joel Sherrill
d8737d61cd testsuites/.../*: Address unused parameter warnings
These files are included or compiled multiple times. Any warning
in these results in many warning instances. Found with GCC's warning
-Wunused-paramter.
2025-09-25 14:41:34 -05:00
Joel Sherrill
748758758b testsuites/validation/*: Address unused parameter warnings
Fixed many warnings for unused parameters. Some cases were
a simple matter of adding "(void) param" at the beginning
of the function, while others required ensuring that addition
was inside the proper conditional section. Found with GCC's
warning -Wunused-paramter.
2025-09-25 14:41:34 -05:00
Joel Sherrill
9c44cf0090 jffs2: Address unused parameter warnings
The files impacted by this change are part of the RTEMS specific
port and do not need to be conditional on RTEMS. Found with GCC's
warning -Wunused-paramter.
2025-09-25 14:41:34 -05:00
Joel Sherrill
81dd232071 bsps/include/acpi/acpica/acpixf.h: Address unused parameter warnings
This is a third party file and the debug macros create unused
parameter warnings when debugging is not enabled. There are
multiple macros with layers. Rather than attempt to unwind all
this, disabled the -Wunused-parameter GCC warning around the
short block of code causing these warnings.
2025-09-25 14:41:34 -05:00
Joel Sherrill
86f00b3183 cpukit/include/.../*.h: Address unused parameter warnings
These files are included multiple times and any warning in these
results in many warning instances. Found with GCC's warning
-Wunused-paramter.
2025-09-25 14:41:34 -05:00
Kinsey Moore
19151f01ae cpukit/jffs2: Resolve errors with debug enabled 2025-09-24 13:20:46 -05:00
Kinsey Moore
7da577f8e6 bsps/shared/dev/flash: Enforce maximum JFFS2 filesystem size
The maximum size of JFFS2 is 4GB minus the block size of the flash.
Enforce this limitation when setting up a filesystem on a flashdev
region that is larger than the maximum.

This also resolves some off-nominal memory leaks.
2025-09-22 15:52:43 -05:00
Chris Johns
f30157f988 libdebugger: Add SMP support for ARM
Make the aarch64 SMP support a separate file and share it between
aarch64 and arm.
2025-09-22 20:51:58 +00:00
Kinsey Moore
75e7f5cb80 cpukit/flashdev: Add unregister call and private data destructor
This adds an API call allowing for unregistration to include destruction
of private data that is not managed by the flashdev framework. This also
updates the existing consumers of flashdev to use the new private data
destructor callback.
2025-09-22 10:04:58 -05:00
Michal Lenc
e8de13e0c5 cpukit/dev/can/can-bittiming.c: remove calls to abs()
Using abs() on unsigned integers leads to GCC warning -Wabsolute-value.
This commit removes the calls to abs() and replaces them with ternary
conditional operator. This keeps the correct error calculation
previously ensured by abs() call.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-09-20 20:47:14 +02:00
Kinsey Moore
3b60c421ca bsps/arm/xilinx-zynq: Add Xilinx compatibility layer
This adds the Xilinx compatibility layer for use with various Xilinx
libraries. The first consumer of this will be lwIP support for the
Zynq7000 platform.
2025-09-20 09:48:31 +10:00