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>
This commit is contained in:
parent
b1ae6ca7ef
commit
35ac087630
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue