aboutsummaryrefslogtreecommitdiff
path: root/core/utils.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-09 17:35:07 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-09 17:35:07 +1100
commitee4481c03173f444dc94af0dc997439454448d9c (patch)
tree724598211bfe6b802ab2eca31cdfe55bcd8bdc80 /core/utils.c
parente16e7917860911f8fc33cb30413fdc8b00fdea1a (diff)
downloadskiboot-ee4481c03173f444dc94af0dc997439454448d9c.zip
skiboot-ee4481c03173f444dc94af0dc997439454448d9c.tar.gz
skiboot-ee4481c03173f444dc94af0dc997439454448d9c.tar.bz2
Fix two sparse warnings on __stack_chk_guard
core/utils.c:25:35: warning: constant 0xdeadf00dbaad300d is so big it is unsigned long core/utils.c:25:15: warning: symbol '__stack_chk_guard' was not declared. Should it be static? Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/utils.c')
-rw-r--r--core/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/utils.c b/core/utils.c
index 5d86ed0..4bb89df 100644
--- a/core/utils.c
+++ b/core/utils.c
@@ -22,7 +22,8 @@
#include <cpu.h>
#include <stack.h>
-unsigned long __stack_chk_guard = 0xdeadf00dbaad300d;
+extern unsigned long __stack_chk_guard;
+unsigned long __stack_chk_guard = 0xdeadf00dbaad300dULL;
void __noreturn assert_fail(const char *msg)
{