Commit Graph

37555 Commits

Author SHA1 Message Date
Aaron Nyholm
fabfef6c24 bsps/shared/dev/nor: Added support for multiple CFI regions
CFI parser now returns largest block size when multiple regions
are present allowing for block erase to be used with returned size.
2025-11-02 22:31:18 -06:00
Kinsey Moore
f77bb9762a bsps/shared/dev/nor: Add SFDP and CFI parsers 2025-11-02 22:31:18 -06:00
Kinsey Moore
2179cd2fee cpukit/libdebugger: Address clobbered warnings
Move variable assignments after the setjmp() call where possible and
move macros that contain setjmp into an if() clause since assigning the
return value to a variable is undefined.

Updates #5364
2025-11-02 21:26:43 -06:00
Aaron Nyholm
9340bf6bad bsps/xilinx-zynq/dev/spi/jedec_flash.h: Add MT25QL128ABA support
Added JEDEC ID table data for MT25QL128ABA and MT25QL128ABB
2025-10-31 17:08:01 +11: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
03ae1fa930 bsps/irq: Fix type limits warnings
Set BSP_INTERRUPT_VECTOR_COUNT to 1 to avoid type limits and array
bounds warnings.

Make sure all functions using the default interrupt controller
implementation return a status of RTEMS_UNSATISFIED.

Update #5298.
Close #5377.
2025-10-29 07:16:41 +00:00
Sebastian Huber
2770bed227 bsps/tqm8xx: Fix integer expression warnings
Make sure we work with unsigned integer interrupt numbers.

Update #5378.
2025-10-29 05:05:49 +01:00
Joel Sherrill
ed38fadfbe spec/build/cpukit/optwarn.yml: Warning flags to match current state
All but ~50 warnings have been fixed if you account for unmerged
MRs. These settings should give a warning free build given the
current state.

       Warnings by Type
=================================
   2 -Wshift-negative-value
   3 -Wenum-conversion
   7 -Wcast-function-type
   7 -Wmissing-field-initializers
   8 -Wclobbered
  32 -Wtype-limits
2025-10-28 19:58:06 +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
9e8a8dff2e bsps/shared/dev/gpio/gpio-support.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
31de2b300d bsps/powerpc/shared/irq/openpic.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
a555b7d292 ss555/dev/console-generic.c: Address missing field initializer warnings
This was in a termios structure. The initialization was changed to using
named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
ebcfc3db27 powerpc/shared/.../uart.c: Address missing field initializer warnings
This was in a structure describing Flash memory configuration.
The initialization was changed to using named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
6900b048d8 powerpc/shared/.../uart.c: Address missing field initializer warnings
These were in a uart driver configuration structure.
The initialization was changed to using named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
0ff1ea4ab4 motorola_powerpc: Address missing field initializer warnings
These were in declarations of board information structure with
initialization.  The initialization was changed to using named
fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Joel Sherrill
2999ec8607 beatnik: Address missing field initializer warnings
This was in a structure describing Flash memory configuration.
The initialization was changed to using named fields.

Updates #5325.
2025-10-28 12:55:15 -05:00
Aaron Nyholm
190899ee61 bsps/shared/jffs2_flashdev.c: Fixed fatal heap error on failed mount
Removed double free of mount_data and instance.
Closes #5381
2025-10-28 15:15:08 +11:00
Kinsey Moore
2cb47d2010 bsps/jffs2_flashdev: Return correct value for OOB size
Return the actual out of bounds size per page instead of the ioctl
return status. JFFS2 will happily operate with an OOB size of 0 and
instead put cleanmarkers in the normal page space of the flash.
2025-10-23 15:31:57 -05:00
Joel Sherrill
cfc9ee2e60 libdebugger/rtems-debugger-*.c: Address ignored qualifier warnings
GCC generates a warning when the return type of a function has a type
qualifier such as 'const'.
2025-10-17 15:08:47 -05:00
Kinsey Moore
955d36ea47 bsps/qspi: Make flashdev control structure private
These structures are not required to be exposed to users for any
functionality and users of the API have no way to make use of them.
2025-10-16 11:26:52 -05:00
Joel Sherrill
62e0865bcc bsps/powerpc/shared/clock/p_clock.c: Fix compile error
The error was referencing a field in the rtems_irq_connect_data
structure which only existed when BSP_SHARED_HANDLER_SUPPORT is
enabled.

Updates #5325.
2025-10-15 14:34:39 +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
edba3942cc /utf8proc/utf8proc_data.c: Address missing field initializer warnings
Address missing field initializer warnings. Since this is third party
code and the structure initialization in question is large, the
warning was disabled.

Updates #5325.
2025-10-14 14:23:59 -05:00
Joel Sherrill
f6c6b309eb cpukit/libmisc/shell/main_pci.c: Add field in shell_pci_modifier table
This file had a table supporting the command line options.

Updates #5325.
2025-10-14 14:23:59 -05:00
Joel Sherrill
100d62d1ec rtems-debugger-cmd.c: Address missing field initializer warnings (shell)
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
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
Joel Sherrill
f519633d0d cpukit/.../shell: Address missing field initializer warnings
Address missing field initializer warnings.

These were all 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
Chris Johns
6269686dfb rtemscxx: Support building on Unix
This lets you develop unittests on Unix.
2025-10-14 14:43:26 +11:00
Aaron Nyholm
62bbd05a31 cpukit/close.c: Open flag corrected for busy closes
Fix closing while busy. Previously open flag in the iop would be unset despite
close returning EBUSY.
Updates #5311
2025-10-14 13:09:51 +11: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
f6e7b3bfbf bsps/powerpc: Address missing field initializer warnings
Address missing field initializer warnings.

These were all rtems_irq_connect_data declarations with initialization.
The initialization was changed to using named fields and specifying an
initializer for each field.
2025-10-12 11:33:47 -05:00
Joel Sherrill
d9e156f3a3 pc386/uart_bus_pci.c: Address missing field initializer warnings
Address missing field initializer warnings.

This code originated from FreeBSD and only some initializers are
missing the last field. It is best to avoid modifying the code so
the warning is disabled for this array initialization.
2025-10-12 10:42:37 -05:00
Joel Sherrill
243c25d191 bsps ACPI: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.

The ACPI change set includes two headers which define debug macros. When
not building for debug, the instantiated inline functions generate
unused parameter warnings from every file they are included in. The
warning was disabled around the macro instantiations.
2025-10-10 22:04:38 +00:00
Joel Sherrill
eb6af2871e bsps i386: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:03:23 +00:00
Joel Sherrill
a4319861c0 cpukit i386: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:03:23 +00:00
Joel Sherrill
0c97eb1d48 arm/xilinx-zynqmp-rpu: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
754b10289c arm/xilinx-zynqmp: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
d379aa996b arm/xilinx-zynq: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
8acbcad50c arm/tms570: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
dcde65029b arm/stm32u5: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
94475b3386 arm/stm32h7: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
004e3b7bbc arm/stm32f4: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
c9c04ebdea arm/smdk2410: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00
Joel Sherrill
2690e9335b arm/shared: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-parameter.
2025-10-10 22:01:39 +00:00