Commit Graph

13496 Commits

Author SHA1 Message Date
Gedare Bloom
90327627ef cpukit/posix: reformat src with clang-format
Updates #3860.
Updates #5356.
2026-02-02 14:32:33 -06:00
Gedare Bloom
fb2f5ef165 cpukit/rtems: reformat include with clang-format
Updates #3860.
Closes #5352.
2026-02-02 19:46:25 +00:00
Gedare Bloom
95d41df8b6 cpukit/rtems: reformat src with clang-format
Updates #3860.
Updates #5352.
2026-02-02 19:46:25 +00:00
Gedare Bloom
cbd392efb2 cpukit/score: move src/kern_* to src/contrib/
Updates #5374
2026-02-02 19:16:07 +00:00
Gedare Bloom
2436216d68 cpukit/mouse: relocate mouse_parser.c
Updates #5374
2026-02-02 19:16:07 +00:00
Gedare Bloom
fbc96a878b cpukit/dev: relocate iovprintf.c
Updates #5374
2026-02-02 19:16:07 +00:00
Gedare Bloom
6505a6baa8 cpukit/libcsupport: consolidate third party code
Updates #5437
2026-02-02 19:16:07 +00:00
Joel Sherrill
3834430ea1 cpukit/posix/src/mmap.c: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-02 12:57:12 -06:00
Joel Sherrill
80365c94a7 cpukit/libdl: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-02 12:57:12 -06:00
Joel Sherrill
7499713116 cpukit/libdebugger/rtems-debugger-smp.c: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-02 12:57:12 -06:00
Joel Sherrill
d4d68cb960 cpukit/libcsupport: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-02 12:57:12 -06:00
Joel Sherrill
feac23ce18 cpukit/.../imfs: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-02 12:48:43 -06:00
Joel Sherrill
0b7eb103fe cpukit/dev: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This addresses warnings that only occurred on 64-bit targets.  For the
ones which only appeared on 64-bit targets, the cause was frequently
a mismatch when comparing a combination off_t, ssize_t, and int.
2026-02-02 12:48:43 -06:00
Joel Sherrill
31103bd0b3 cpukit/libcsupport: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
2026-02-02 18:40:50 +00:00
Gedare Bloom
324673568b cpukit/score: reformat include with clang-format
Updates #3560.
Updates #5351.
2026-02-01 19:24:33 -06:00
Gedare Bloom
969f1a823b cpukit/score: reformat src with clang-format
Updates #3860.
Updates #5351.
2026-02-01 19:24:33 -06:00
Gedare Bloom
f85f0d822e score: disable clang-format in log2table
Updates #5351.
2026-02-01 19:24:33 -06:00
Kinsey Moore
76614d5200 jffs2: Resolve signed comparison warnings
JFFS2 uses the high values of the unsigned flash offset in a raw node
reference as special identifiers and specifies them using negative
integer literals. This disables those errors for non-RTEMS source and
constrains such comparisons in RTEMS code to avoid larger reworks of the
JFFS2 upstream source.
2026-01-29 18:08:05 -06:00
Yash
578d2e4e46 confdefs: Remove error for reporter without stack checker
Previously, if a user defined a stack checker reporter but disabled
the stack checker (e.g. for testing), the build would fail with an #error.
This change removes the error to allow flexible configuration.

Closes #5425
2026-01-29 19:40:44 +00:00
Joel Sherrill
be62df1493 cpukit/rtems/rtemsobjectgetclassinfo.c: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
2026-01-28 19:20:27 +00:00
Joel Sherrill
211acc10da cpukit/shell/edit: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
2026-01-28 13:19:23 -06:00
Joel Sherrill
963ba98047 cpukit/.../scheduler*: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.

This addresses sign comparison warnings primarily in the CBS.
2026-01-28 19:18:27 +00:00
Joel Sherrill
54d703967f cpukit/.../termios: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
2026-01-28 19:15:44 +00:00
Joel Sherrill
dd4670e83d cpukit/libfs/rfs: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.

This addresses sign comparison warnings in the RFS.
2026-01-28 19:13:39 +00:00
Joel Sherrill
785130d379 cpukit/libfs/tftpfs: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.

This addresses sign comparison warnings in the tftp file system.
2026-01-28 19:13:39 +00:00
Joel Sherrill
63d3c17d8f cpukit/libfs/dosfs: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.

This addresses sign comparison warnings in the dosfs.
2026-01-28 19:13:39 +00:00
Joel Sherrill
939d18ba4e cpukit/libcrypt: Address -Wsign-compare warnings
This warning occurs when comparing a signed variable to an unsigned one.
This is frequently an int or ssize_t variable compared to a uint32_t or
size_t. Sometimes the size_t is from a sizeof() use.
2026-01-28 19:12:45 +00:00
Kinsey Moore
7e5d1a851a cpukit/libmisc/monitor: Resolve function cast warning
Wrap rtems_monitor_config_dump to match the required function signature.
2026-01-27 12:44:03 -06:00
Kinsey Moore
1eac734295 cpukit/libfs: Move JFFS2 sources to contrib
This moves the JFFS2 sources imported from Linux into the contrib/
subdirectory since that is where 3rd party sources belong. The import
revision is currently "v6.1" with some alterations.
2026-01-27 12:34:56 -06:00
Kinsey Moore
3bb45e2084 cpukit/libfs/jffs2: Correct sign mismatches
Correct sign mismatches in non-upstream JFFS2 interworking code.
2026-01-27 12:34:56 -06:00
Joel Sherrill
3a61921132 mp misc: Address build failures and warnings
Changes required to build with RTEMS_MULTIPROCESSING and
associated tests without warnings.
2026-01-27 18:20:55 +00:00
Yash
cecbf340e9 cpukit/dev/can: Fix spelling errors in comments
Correct 'succesful' to 'successful' and 'succesfully' to 'successfully'
in the CAN and CTUCANFD driver comments.

Updates #5429
2026-01-24 17:01:35 +00:00
Joel Sherrill
63c93acec1 cpukit/libmisc/shell/main_mknod.c: Address -Wclobbered warning
This warning indicates the potential for using a local variable which
is not guaranteed to be preserved across a setjmp()/longjmp() pair.
In this case, it was a false positive and the warning was disabled.

Updates #5364.
2026-01-23 17:43:20 -06:00
Joel Sherrill
ec711f1ae9 cpukit/libdl/rtl-bit-alloc.c: Change false to NULL
This bug was caught when turning on --std=gnu2y on Microblaze.
2026-01-23 14:11:24 -06:00
Kinsey Moore
5efed52222 cpukit/sapi/src/interrtext.c: Add missing definition
This adds a missing text description for an internal error and updates
the spinternalerror02 test to check for the correct end of internal
error definitions.
2026-01-23 01:30:49 +00:00
Joel Sherrill
7f77dfae60 cpukit libfs: Address -Wsign-compare warnings
Also includes a related libio change.

Most of these warnings were between int or ssize_t and size_t.
In particular, various POSIX system calls like read() and write()
return ssize_t and comparing that value with the sizeof a buffer
is a common source of these warnings. Another common source is
using an int as the iterator in a for loop with the limit being
a size_t.

With the type change, some printf() specifiers needed to change also.
2026-01-22 15:34:36 -06:00
Joel Sherrill
9c40ad753f cpukit: Address files with only Eric Valette's email address
Many files with Eric Valette as author only had his email address.
This led to them being missed in previous relicensing passes.
This effort relicensed where possible and made efforts to have the
file follow the RTEMS standard for top of files (SPDX, Doxygen,
and then copyright/license).

Updates #5418.
2026-01-16 09:12:24 -06:00
Allan Hessenflow
fcfa71aa1c cpukit/posix/src/aio-misc.c: initialize suspendcbp
Closes #5421
2026-01-15 10:36:16 -08:00
Joel Sherrill
5e80d1077b cpukit/libmisc/untar/untar.c: Correct third argument
The call to Untar_FromMemory_Print() on line 400 was passing
false as the third argument. "rtems_printer *" was expected.
In C previous to C23, false was a macro defined as 0 and could
be converted to a pointer. In C23, false, true, and bool are keywords.
2026-01-14 16:27:07 -06:00
Sam Price
3b78fa9013 microblaze: enhance exception diagnostics
Improve MicroBlaze exception printing by showing the faulting PC,
decoding ESR exception codes, and reporting the ESR description
to aid debugging.
2026-01-08 17:43:37 -06:00
Michal Lenc
40305e360f can: fix -Wsign-compare warnings
Fixes -Wsign-compare compile warnings in CAN code. This introduces
the change in rtems_ctucanfd_initialize where ntxbufs is changed from
int to unsigned int, thus making the ntxbufs < 0 obsolete.

Signed-off-by: Michal Lenc <michallenc@seznam.cz>
2025-12-18 19:14:40 -06:00
Dhruva P V
69a9314281 score: check previous in _Chain_Is_node_off_chain()
Previously, the function returned true when node->next == NULL, but did
not verify that node->previous was also NULL.

The updated implementation checks the node->next == NULL and in
RTEMS_DEBUG it checks node->previous == NULL before reporting the
node is off-chain.

These changes ensure that the off-chain invariant is verified in
the RTEMS_DEBUG

This change Updates RTEMS issue #4812.
2025-12-18 00:37:41 +05:30
Asif Khan
ff0c71388a cpukit/score: Remove extra blank paragraph in copyrt.h
This change eliminates an unnecessary blank paragraph in
cpukit/include/rtems/score/copyrt.h. RTEMS documentation requires single
spaced paragraphs, and the previous formatting contained consecutive
blank lines.

The modification is formatting-only and has no functional impact.

Updates #4807.
2025-12-12 11:07:00 -06:00
Asif Khan
9e93d0bc29 cpukit/rtems: Remove extra blank paragraph in barrierdata.h
This patch removes a superfluous blank paragraph from
cpukit/include/rtems/rtems/barrierdata.h. The formatting issue created
two consecutive blank lines inside the documentation block, which is not
permitted by RTEMS style rules.

This update improves documentation consistency without altering runtime
behavior.

Updates #4807.

Signed-off-by: Asif Khan <asif21012006@gmail.com>
2025-12-12 11:07:00 -06:00
Asif Khan
d96b5c6de6 cpukit/confdefs: Remove extra blank paragraph in iodrivers.h
This patch removes an unnecessary blank paragraph in
cpukit/include/rtems/confdefs/iodrivers.h to comply with RTEMS
documentation formatting guidelines. Only one blank line should separate
paragraphs, and this change enforces that rule.

Updates #4807.
2025-12-12 11:07:00 -06:00
Joel Sherrill
089a16b6e8 cpukit/dev/can/can-bus.c: Address type-limits warnings
These changes were made to address GCC -Wtype-limits warnings.
In this case, the variables were unsigned and there was no need to
check them for being <= 0.

Updates #5388.
2025-12-11 23:53:16 +00:00
Bhavya Shah
1b440d2807 imfs/large_block_size: Modified imfs for large block size
- Added testcase psximfs04 to test the block size
- Modified confdefs/libio.h for block size 1024
2025-12-11 17:51:35 -06:00
Bhavya Shah
6367099ec0 imfs/user_allocator: Add user-configurable allocator support
- Extend IMFS and libio headers to define default allocator/deallocator ops
  and logic for configuring memfile_ops.
- Update imfs_memfile to use custom allocators for memory blocks.
- Fix imfs_statvfs.f_bfree calculation to respect user-defined ops.
- Add psximfs03 test case to validate custom allocator behavior.
- Refactor psximfs01 to share helper functions with psximfs03.
2025-12-11 17:45:13 -06:00
Mazen Adel Elmessady
ff63275812 cpukit/posix: Add timespec_get() support to RTEMS
Added the implementation of timespec_get() with tests.
The implementation used clock_gettime() as a reference.
The tests used psxtimes01 as a reference.

Updates
rtems/programs/gsoc#69
2025-12-05 17:00:55 -05:00
Kinsey Moore
d82efbd7d1 bsps/shared/dev/nor: Add SFDP and CFI parsers
Fixed flashdev doxygen group
2025-12-04 18:52:00 -06:00