coreboot/src
Maximilian Brune 91594f4894 drivers/option/cfr.c: Replace memcpy() to avoid uninitialized object
When updating clang to version 21.1.5, we now get the following error
when compiling the CFR code.
```
src/drivers/option/cfr.c:287:19: error: default initialization of an
      object of type 'struct sm_object' with const member leaves the object uninitialized
      [-Werror,-Wdefault-const-init-field-unsafe]
  287 |         struct sm_object sm_obj_copy;
```

In this specific case its actually not an issue, but initialize the
variable from the start to avoid the error and arguably make the code
easier to read.

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: Ib0b22e20a7482ab29d997a3e3c3bec4a1db1a4f1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89958
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-11-16 18:35:41 +00:00
..
acpi acpi: Move most of HEST ACPI table to common code 2025-09-30 23:52:09 +00:00
arch treewide: Fix include guards 2025-11-13 14:58:40 +00:00
commonlib commonlib/coreboot_tables.h: Fix lb_smmstorev2 alignment 2025-11-12 15:38:45 +00:00
console console: Fix flushing for slow consoles 2025-10-02 22:44:46 +00:00
cpu Makefile.mk: separate bootblocks into BOOTBLOCK and TOPSWAP 2025-11-16 18:35:27 +00:00
device device: Introduce reworked azalia verb table 2025-09-28 18:18:14 +00:00
drivers drivers/option/cfr.c: Replace memcpy() to avoid uninitialized object 2025-11-16 18:35:41 +00:00
ec ec/starlabs/merlin: Add battery capacity offsets 2025-11-06 20:48:01 +00:00
include treewide: Fix include guards 2025-11-13 14:58:40 +00:00
lib lib/vga_gfx: Fix left-up and right-up orientations 2025-10-31 21:04:39 +00:00
mainboard mb/google/brya: Increase RW_SECTION_* by 256KB for 16MiB boards 2025-11-16 14:57:58 +00:00
northbridge Haswell NRI: Print and fill in memory-related info 2025-10-29 16:52:51 +00:00
sbom sbom: Fix build with merged bootblock and romstage 2025-07-07 14:29:29 +00:00
security tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
soc Makefile.mk: separate bootblocks into BOOTBLOCK and TOPSWAP 2025-11-16 18:35:27 +00:00
southbridge tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
superio sio/nuvoton/common/nuvoton.h: Add common Nuvoton SIO LDNs 2025-10-29 16:56:07 +00:00
vendorcode vc/intel/fsp: Update WCL FSP headers to 3344_03 2025-10-31 21:05:07 +00:00
Kconfig Kconfig: Introduce HAVE_CBFS_FILE_OPTION_BACKEND 2025-09-17 04:18:07 +00:00