aboutsummaryrefslogtreecommitdiff
path: root/core/console.c
diff options
context:
space:
mode:
authorAbhishek Singh Tomar <abhishek@linux.ibm.com>2022-01-24 19:26:12 +0530
committerCédric Le Goater <clg@kaod.org>2022-02-04 08:35:25 +0100
commita9bc782c843250a17255236acc210fbbe16ddf78 (patch)
treea1e47431d10c638dea932bc3574d38f4365e482e /core/console.c
parent095cef27f0f4aad58266516846e65363418cf7f1 (diff)
downloadskiboot-a9bc782c843250a17255236acc210fbbe16ddf78.zip
skiboot-a9bc782c843250a17255236acc210fbbe16ddf78.tar.gz
skiboot-a9bc782c843250a17255236acc210fbbe16ddf78.tar.bz2
Fix array-bound compilation warnings
Resolves : the warray bounds warning during compilation /build/libc/include/string.h:34:16: warning: '__builtin_memset' offset [0, 2097151] is out of the bounds [0, 0] [-Warray-bounds] 34 | #define memset __builtin_memset hw/fsp/fsp.c:1855:9: note: in expansion of macro 'memset' 1855 | memset(fsp_tce_table, 0, PSI_TCE_TABLE_SIZE); use volatile pointer to avoid optimization introduced with gcc-11 on constant address assignment to pointer. Signed-off-by: Abhishek Singh Tomar <abhishek@linux.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'core/console.c')
-rw-r--r--core/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/console.c b/core/console.c
index 2a15090..374ee03 100644
--- a/core/console.c
+++ b/core/console.c
@@ -15,7 +15,7 @@
#include <processor.h>
#include <cpu.h>
-static char *con_buf = (char *)INMEM_CON_START;
+static char *skiboot_constant_addr con_buf = (char *)INMEM_CON_START;
static size_t con_in;
static size_t con_out;
static bool con_wrapped;