Elyes Haouas has uploaded this change for review.

View Change

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>
---
M src/acpi/sata.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/84166/1
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);


To view, visit change 84166. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ie80c2329c4a2698bd9e72ba1b36c1c05e37b214b
Gerrit-Change-Number: 84166
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes Haouas <ehaouas@noos.fr>