coreboot/src/drivers
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/thermal_zone tree: Remove unused <string.h> 2024-05-29 10:34:08 +00:00
amd tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
ams
analogix/anx7625 drivers/analogix/anx7625: Add a retry mechanism to decode EDID 2025-06-07 09:50:32 +00:00
asmedia drivers/asmedia/asm1061: Align = only with tabs and not spaces 2025-02-10 15:14:32 +00:00
aspeed drivers/aspeed/common: Add AST2600 support 2024-09-26 15:09:17 +00:00
broadcom
camera
crb drivers/crb/tpm: Add new method to retrieve base address 2025-07-02 16:15:09 +00:00
efi drivers/efi/efivars: Change printk level from ERROR to DEBUG 2025-06-13 15:25:45 +00:00
elog elog: Handle elog in later boot phase 2025-06-05 13:36:36 +00:00
emulation/qemu drivers/emulation/qemu: Adjust fw_cfg driver for Arm and RISCV 2025-09-28 18:16:57 +00:00
generic drivers/generic/bayhub: Use boolean for power_saving 2025-07-01 15:07:44 +00:00
genesyslogic drivers/genesyslogic/gl9763e: Mask replay timer timeout of AER 2025-07-17 17:42:41 +00:00
gfx/generic drivers/gfx/generic: Use 'noop_read_resources' 2025-06-13 15:25:38 +00:00
i2c drivers/i2c/tas2563: Add driver for generating device in SSDT 2025-11-12 14:30:33 +00:00
intel drivers/intel/gma/acpi: Add power management methods for GFX0 2025-11-14 16:41:50 +00:00
ipmi drivers/ipmi: add Block Transfer (BT) interface 2025-10-16 12:16:43 +00:00
lenovo sb/intel: Convert set_gpio to gpio_set 2025-07-25 17:05:54 +00:00
maxim
mipi drivers/mipi: Fix pixel clock and enable C-PHY for TM_TL121BVMS07_00C 2025-10-28 04:11:34 +00:00
mrc_cache drivers/mrc_cache: Measure MRC cache as runtime data 2025-05-10 22:50:41 +00:00
net drivers/net/r8168.c: Add option to program MAC address to ERI registers 2025-04-29 22:17:48 +00:00
nxp/uwb tree: Remove unused <string.h> 2024-05-29 10:34:08 +00:00
ocp drivers/ocp/ewl: Remove space after a cast 2024-10-09 17:27:37 +00:00
option drivers/option/cfr.c: Replace memcpy() to avoid uninitialized object 2025-11-16 18:35:41 +00:00
parade
pc80 drivers/pc80/pc/keyboard.c: Add function to change a command byte bit 2025-01-22 20:45:37 +00:00
pcie
ricoh/rce822
secunet/dmi
siemens/nc_fpga
sil/3114
smbus console/i2c_smbus: Allow to send data w/o register offset 2024-07-11 00:06:22 +00:00
smmstore drivers/smmstore: Support 64-bit MMIO addresses 2025-05-08 22:28:16 +00:00
sof drivers/sof: Add support for tas2563 speaker topology 2025-11-12 14:37:11 +00:00
soundwire drivers/soundwire/cs42l43: Add optional properties for controlling jack and accessory detect 2025-10-18 18:31:16 +00:00
spi spi_flash: Fix initialization of flags field in lb_spi_flash 2025-08-09 01:36:39 +00:00
ti
tpm tree: Use boolean for s3resume 2025-10-23 13:34:15 +00:00
uart {drivers, soc/qualcomm/common}: Add configurable delay for UART bitbang 2025-08-04 16:26:29 +00:00
usb drivers/usb/intel_bluetooth: Hook RTD3 up to the option API 2025-04-30 16:00:11 +00:00
vpd
wifi/generic drivers/wifi/generic: Fix typo in header guard comment 2025-09-10 21:38:51 +00:00
wwan/fm