diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 16:50:37 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-09 16:50:37 +1100 |
commit | 6e80b996ff374cd0e6b647db63de234180306b6a (patch) | |
tree | a600097749a597e47355e47d44f3e38a86bee946 /core/opal.c | |
parent | c9c47e491bfaec5f0698b2f6ec07b202fc8db5c6 (diff) | |
download | skiboot-6e80b996ff374cd0e6b647db63de234180306b6a.zip skiboot-6e80b996ff374cd0e6b647db63de234180306b6a.tar.gz skiboot-6e80b996ff374cd0e6b647db63de234180306b6a.tar.bz2 |
Fixup sparse endian annotations for opal events and masks
This fixes many spurious sparse warnings
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/opal.c')
-rw-r--r-- | core/opal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/opal.c b/core/opal.c index b5a422a..04e2283 100644 --- a/core/opal.c +++ b/core/opal.c @@ -318,7 +318,7 @@ void opal_run_pollers(void) check_stacks(); } -static int64_t opal_poll_events(uint64_t *outstanding_event_mask) +static int64_t opal_poll_events(__be64 *outstanding_event_mask) { /* Check if we need to trigger an attn for test use */ if (attn_trigger == 0xdeadbeef) { @@ -335,7 +335,7 @@ static int64_t opal_poll_events(uint64_t *outstanding_event_mask) opal_run_pollers(); if (outstanding_event_mask) - *outstanding_event_mask = opal_pending_events; + *outstanding_event_mask = cpu_to_be64(opal_pending_events); return OPAL_SUCCESS; } |