Commit Graph

5287 Commits

Author SHA1 Message Date
Sepehr Ganji
bff18c05b9 libfs/fatfs: Add FatFS with tests
This adds FatFS wrapper layer to RTEMS
including tests as part of GSoC 2025.
2025-11-10 16:09:07 -07:00
Aaron Nyholm
0e20f50870 testsuites/fstests/fsclose01: Fix expected flags
close() now holds a reference to the IOP this changes the
expected flags in the test. This change reflects that.
Updates #5311
2025-11-05 19:50:46 +00:00
Sebastian Huber
e45e0d2e5b validation: Address unused parameter
Mark the parameter as unused in uniprocessor configurations.
2025-10-29 07:16:41 +00:00
Sebastian Huber
b2ca47e5a1 validation: Address unused parameters
Address unused parameters in the code generator.
2025-10-28 19:54:03 +00:00
Sebastian Huber
ce741f81cb validation: Do not use reserved "ctx" name
The name "ctx" is reserved for the test context.
2025-10-28 19:54:03 +00:00
Sebastian Huber
82ad3746f9 validation: Remove unused parameters
Remove actually unused parameters which would have been flagged by a
warning.
2025-10-28 19:54:03 +00:00
Sebastian Huber
e66a33fd7a validation: Address -Wclobbered warnings
Use functions with const parameters and const local variables
to silence -Wclobbered warnings.

Updates #5364.
2025-10-28 19:52:56 +00:00
Joel Sherrill
c49cfbf9a9 testsuites/psxtests/*/init.c: Address type limit warnings
GCC generates type limit warnings when comparison is always true or
always false due to the limited range of the data type, This was in a
termios structure. For most of the cases in RTEMS, this was when
a variable of an unsigned type was compared to be < or <= 0.
2025-10-28 19:33:35 +00:00
Joel Sherrill
363afebd67 spclock_todhook01/init.c: Address missing field initializer warning (tm)
These were struct tm declarations with initialization. The initialization
was changed to using named fields.

Updates #5325.
2025-10-14 14:39:20 -05:00
Joel Sherrill
5c24413f4d psxclassic01/init.c: Address missing field initializer warning (siginfo)
This one a siginfo_t declaration with initialization.  The initialization
was changed to using named fields.

Updates #5325.
2025-10-14 14:28:27 -05:00
Joel Sherrill
1d08df678b testsuites/*: Address missing field initializer warnings (extensions)
Address missing field initializer warnings.

These were rtems_extensions_table declarations with initialization.
The initialization was changed to using named fields.

Updates #5325.
2025-10-14 14:24:30 -05:00
Joel Sherrill
87f5aa145b testsuites/samples/fileio: Address missing field initializer warnings
Address missing field initializer warnings.

These were rtems_shell_cmd_t or rtems_shell_alias_t declarations
with initialization.  The initialization was changed to using named
fields.

Updates #5325.
2025-10-14 14:23:59 -05:00
Gedare Bloom
523b97ed40 cpukit/rtems: regenerate basedefs with fallthrough
Regenerate basedefs from specifications with RTEMS_FALL_THROUGH().
2025-10-13 19:02:19 +00:00
Joel Sherrill
abe86999de testsuites/smptests: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:48:23 +00:00
Joel Sherrill
d3370aa627 testsuites/mptests: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:48:23 +00:00
Joel Sherrill
474b034cca testsuites/psxtests: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:48:23 +00:00
Joel Sherrill
56805ae4be testsuites/libtests: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:48:23 +00:00
Joel Sherrill
0589d7291a testsuites/sptests: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:48:23 +00:00
Joel Sherrill
107c00a4a9 testsuites/samples: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 20:48:23 +00:00
Gedare Bloom
cec9935c33 testsuites/validation: fix setjmp UB
Storing the return value of setjmp to a local variable is
undefined behavior.

Fixes #5373.
2025-10-09 09:22:55 -06:00
Joel Sherrill
de8da59ba1 testsuites/benchmarks/*: 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
Joel Sherrill
89efbdda7c testsuites/fstests/*: 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
Joel Sherrill
6fc0e50f6c testsuites/libtests/*: 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
Joel Sherrill
5cd78b4330 testsuites/psxtmtests/*: 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
Joel Sherrill
60ed3d6ed2 testsuites/rhealstone/*: 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
Joel Sherrill
744c4791c5 testsuites/samples/*: 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
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
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
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
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
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
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
Joel Sherrill
fa84f51442 testsuites/validation/tx-call-within-isr.c: Address dangling pointer
On the genmcf548x BSP variants, the "request" local variable was
flagged as having a pointer taken and passed to subroutines. GCC
is unable to detect that the "request" variable is removed from
the chain in an ISR. Disabled -Wdangling-pointer for the single
test function CallWithinISR().
2025-09-19 19:01:31 +00:00
Joel Sherrill
21a6957d18 testsuites/sptests/sp34/changepri.c: Remove include of tm27-default.h
The file tm27-default.h is considered an internal flag. Accidentally
copying and pasting this include in while fixing attribution headers
was a mistake. Removing the line.
2025-09-18 07:45:35 -05:00
Joel Sherrill
4728346362 testsuites/sptests/sp*: Update attribution per git history
These files were written by Joel Sherrill with some being based
on descriptions from user reports.
  testsuites/sptests/sp34/changepri.c
  testsuites/sptests/sp52/sp52impl.h
  testsuites/sptests/sp67/init.c

Updates #3053.
2025-09-15 16:24:50 +00:00
Joel Sherrill
3e7776db83 spedfsched03: Relicense to 2-BSD
This code was submitted by Petr Benes who has given permission
to relicense.

Updates #3053.
2025-09-11 10:04:52 -05:00
Mazen Adel Elmessady
f929bcba5b cpukit/posix: Added pthread clock functions
Added pthread_cond_clockwait(), pthread_mutex_clocklock()
pthread_rwlock_clockrdlock() and pthread_rwlock_clockwrlock()
that are new in POSIX Issue 8. Also added tests.
The implementation used the timed versions of these functions
as a reference.

Updates
rtems/programs/gsoc#69
2025-09-10 19:56:50 +00:00
Joel Sherrill
6dacc5bd9a testsuites/sptests/sp29/init.c: Add attribution and license
This file was added in 1999 by me per git history.
2025-09-10 18:52:51 +00:00
Aaron Nyholm
f93f3b87c8 flashdev: Added missing copyright 2025-09-09 16:09:49 +00:00
Joel Sherrill
c55cf81db1 sppagesize/init.c: Add SPDX annotation
Apparently this was missed in a previous commit.
2025-09-08 13:20:15 -05:00
Sebastian Huber
cfe232c935 validation: Rearrange storage-qualifier
Place _Thread_local after static to be in line with the rest of the
code.
2025-09-08 04:33:52 +02:00
Joel Sherrill
022dd54744 sptests/spcbssched*, spqreslib: Add header for Petr Benes
These files did not have copyright, license, or SPDX. Per git log
these files were authored by Petr Benes who has other code in the
RTEMS source base and given permission to use BSD-2.

Updates #3053
2025-09-04 18:13:31 -05:00
Joel Sherrill
0dc1f06dbc testsuites/*: Fix old style declaration
Newer C versions require that the storage-class specifier like
static or _Thread_Local be the first thing in a declaration.
2025-09-03 09:15:17 -05:00
Sebastian Huber
312ea98ed2 validation: Use Markdown formatting
This file is generated from specification items.  Use Markdown format.
2025-09-02 16:54:57 +00:00
Sebastian Huber
79ca48adcc rtems: Use single '`' for code phrases
These files are generated from specification items.  Use Markdown
format.
2025-09-02 16:54:57 +00:00
Sebastian Huber
10bcc955d3 validation: Fix formatting
Remove double blank lines.
2025-09-02 16:54:57 +00:00
Joel Sherrill
334fd1ce9e testsuites/fstests/*: Use llabs() not abs() on time_t variable
time_t is a 64-bit quanity so using abs() which is for int is not
a good idea since it can lead to truncation.
2025-08-22 16:05:56 -05:00