diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 15:51:13 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 15:51:13 +1100 |
commit | 0019523b1adc3dad44703a5a51ea009af5c852df (patch) | |
tree | 28f416b480e8b3ae05311f1b88fcdb00ecd7332d /core/trace.c | |
parent | e27cc4fba976edde9eb2d53b876788f315c73c87 (diff) | |
download | skiboot-0019523b1adc3dad44703a5a51ea009af5c852df.zip skiboot-0019523b1adc3dad44703a5a51ea009af5c852df.tar.gz skiboot-0019523b1adc3dad44703a5a51ea009af5c852df.tar.bz2 |
Fix sparse warnings in init_boot_tracebuf()
core/trace.c:43:42: warning: incorrect type in assignment (different base types)
core/trace.c:43:42: expected restricted beint64_t static [toplevel] [usertype] mask
core/trace.c:43:42: got int
core/trace.c:44:46: warning: incorrect type in assignment (different base types)
core/trace.c:44:46: expected restricted beint32_t static [toplevel] [usertype] max_size
core/trace.c:44:46: got unsigned long
Shouldn't affect any runtime code, just cleans up the warnings.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/trace.c')
-rw-r--r-- | core/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/trace.c b/core/trace.c index 15e505a..7f06764 100644 --- a/core/trace.c +++ b/core/trace.c @@ -40,8 +40,8 @@ static struct { void init_boot_tracebuf(struct cpu_thread *boot_cpu) { init_lock(&boot_tracebuf.trace_info.lock); - boot_tracebuf.trace_info.tb.mask = BOOT_TBUF_SZ - 1; - boot_tracebuf.trace_info.tb.max_size = MAX_SIZE; + boot_tracebuf.trace_info.tb.mask = cpu_to_be64(BOOT_TBUF_SZ - 1); + boot_tracebuf.trace_info.tb.max_size = cpu_to_be32(MAX_SIZE); boot_cpu->trace = &boot_tracebuf.trace_info; } |