Elyes Haouas has submitted this change. ( https://review.coreboot.org/c/coreboot/+/84166?usp=email )
Change subject: acpi/sata.c: Fix Wunterminated-string-initialization error on port_name ......................................................................
acpi/sata.c: Fix Wunterminated-string-initialization error on port_name
src/acpi/sata.c: In function 'generate_sata_ssdt_ports': src/acpi/sata.c:27:29: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization] 27 | char port_name[4] = "PR00"; | ^~~~~~
Change-Id: Ie80c2329c4a2698bd9e72ba1b36c1c05e37b214b Signed-off-by: Elyes Haouas ehaouas@noos.fr Reviewed-on: https://review.coreboot.org/c/coreboot/+/84166 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Tim Wawrzynczak inforichland@gmail.com Reviewed-by: Sumeet Pawnikar sumeet4linux@gmail.com --- M src/acpi/sata.c 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: build bot (Jenkins): Verified Sumeet Pawnikar: Looks good to me, but someone else must approve Tim Wawrzynczak: Looks good to me, approved
diff --git a/src/acpi/sata.c b/src/acpi/sata.c index 282d366..69b6799 100644 --- a/src/acpi/sata.c +++ b/src/acpi/sata.c @@ -24,7 +24,7 @@ { int i; uint32_t bit; - char port_name[4] = "PR00"; + char port_name[5] = "PR00";
acpigen_write_scope(scope);