diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-08-31 12:47:46 +0200 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2024-09-01 05:34:38 +0000 |
commit | 35ac087630d9355992c5355edb69ca6783d6fd97 (patch) | |
tree | fe45fced6055434122aeaf8df6cf652e27ee6ec9 /src | |
parent | b1ae6ca7ef8b848e53577cb9da46c19d2d5886a8 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/acpi/sata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/acpi/sata.c b/src/acpi/sata.c index 282d366473..69b6799313 100644 --- a/src/acpi/sata.c +++ b/src/acpi/sata.c @@ -24,7 +24,7 @@ void generate_sata_ssdt_ports(const char *scope, uint32_t enable_map) { int i; uint32_t bit; - char port_name[4] = "PR00"; + char port_name[5] = "PR00"; acpigen_write_scope(scope); |