diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-27 14:09:48 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2014-11-27 14:09:48 +1100 |
commit | 2230176f5a678dc8612e1bc6830fc39fb719b79b (patch) | |
tree | 56f97e02ab7c0b24e5c064132ec71555dbcf6a23 /include/fsp-elog.h | |
parent | 437701274b0e2f816b6f63f4bb6b9525c5f561ee (diff) | |
download | skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.zip skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.tar.gz skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.tar.bz2 |
Liberally sprinkle attribute((warn_unused_result)) around the place
None of these actually produce any warnings. My next patch will.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/fsp-elog.h')
-rw-r--r-- | include/fsp-elog.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/fsp-elog.h b/include/fsp-elog.h index 0610a77..d1f9147 100644 --- a/include/fsp-elog.h +++ b/include/fsp-elog.h @@ -213,19 +213,19 @@ severity, subtype, callout_func) struct opal_err_info err_##reason = \ #define e_info(reason_code) err_##reason_code -struct errorlog *opal_elog_create(struct opal_err_info *e_info); +struct errorlog *opal_elog_create(struct opal_err_info *e_info) __warn_unused_result; int opal_elog_update_user_dump(struct errorlog *buf, unsigned char *data, uint32_t tag, uint16_t size); -int elog_fsp_commit(struct errorlog *buf); +int elog_fsp_commit(struct errorlog *buf) __warn_unused_result; -bool opal_elog_info(uint64_t *opal_elog_id, uint64_t *opal_elog_size); +bool opal_elog_info(uint64_t *opal_elog_id, uint64_t *opal_elog_size) __warn_unused_result; bool opal_elog_read(uint64_t *buffer, uint64_t opal_elog_size, - uint64_t opal_elog_id); + uint64_t opal_elog_id) __warn_unused_result; -bool opal_elog_ack(uint64_t ack_id); +bool opal_elog_ack(uint64_t ack_id) __warn_unused_result; void opal_resend_pending_logs(void); |