Elyes Haouas has uploaded this change for review.

View Change

commonlib/coreboot_tables.h: Fix Wunterminated-string-initialization error

This to fix:
src/mainboard/google/geralt/panel.c:59:59: error: initializer-string for array of 'unsigned char' is too long [-Werror=unterminated-string-initialization]
59 | {GPIO_AP_DISP_BKLTEN.id, ACTIVE_HIGH, -1, "backlight enable"},
| ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Change-Id: I6fca7f067dab07bda5a31c9b5796272bea9763e1
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
---
M src/commonlib/include/commonlib/coreboot_tables.h
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/84170/1
diff --git a/src/commonlib/include/commonlib/coreboot_tables.h b/src/commonlib/include/commonlib/coreboot_tables.h
index 7cbc7da..5ebbe15 100644
--- a/src/commonlib/include/commonlib/coreboot_tables.h
+++ b/src/commonlib/include/commonlib/coreboot_tables.h
@@ -310,7 +310,7 @@
#define ACTIVE_LOW 0
#define ACTIVE_HIGH 1
uint32_t value;
-#define GPIO_MAX_NAME_LENGTH 16
+#define GPIO_MAX_NAME_LENGTH 17
uint8_t name[GPIO_MAX_NAME_LENGTH];
};


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

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