summaryrefslogtreecommitdiffstats
path: root/include/fsp.h
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2014-11-27 14:09:48 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-11-27 14:09:48 +1100
commit2230176f5a678dc8612e1bc6830fc39fb719b79b (patch)
tree56f97e02ab7c0b24e5c064132ec71555dbcf6a23 /include/fsp.h
parent437701274b0e2f816b6f63f4bb6b9525c5f561ee (diff)
downloadblackbird-skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.tar.gz
blackbird-skiboot-2230176f5a678dc8612e1bc6830fc39fb719b79b.zip
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.h')
-rw-r--r--include/fsp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fsp.h b/include/fsp.h
index e41498ee..b8d4dc6b 100644
--- a/include/fsp.h
+++ b/include/fsp.h
@@ -631,8 +631,8 @@ extern bool fsp_present(void);
* WARNING: Do _NOT_ use free() on an fsp_msg, use fsp_freemsg()
* instead as we will eventually use pre-allocated message pools
*/
-extern struct fsp_msg *fsp_allocmsg(bool alloc_response);
-extern struct fsp_msg *fsp_mkmsg(u32 cmd_sub_mod, u8 add_words, ...);
+extern struct fsp_msg *fsp_allocmsg(bool alloc_response) __warn_unused_result;
+extern struct fsp_msg *fsp_mkmsg(u32 cmd_sub_mod, u8 add_words, ...) __warn_unused_result;
/* Populate a pre-allocated msg */
extern void fsp_fillmsg(struct fsp_msg *msg, u32 cmd_sub_mod, u8 add_words, ...);
OpenPOWER on IntegriCloud