From 772e430d840a6479da87d4cd701d42695476c52e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 8 Apr 2015 09:31:14 +0200 Subject: util: Add attribute warn_unused_result to allocation functions Add the warn_unused_result GCC function attribute to all allocation functions in xmalloc. Signed-off-by: Tobias Klauser --- util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index d4933c4..0c3d263 100644 --- a/util.h +++ b/util.h @@ -58,10 +58,10 @@ static inline void __noreturn panic(const char *fmt, ...) exit(EXIT_FAILURE); } -void *xmalloc(size_t size); -void *xzalloc(size_t size); -void *xrealloc(void *ptr, size_t size); -char *xstrdup(const char *s); +void *xmalloc(size_t size) __warn_unused_result; +void *xzalloc(size_t size) __warn_unused_result; +void *xrealloc(void *ptr, size_t size) __warn_unused_result; +char *xstrdup(const char *s) __warn_unused_result; static inline bool xstreq(const char *str1, const char *str2) { -- cgit v1.2.3-54-g00ecf cb3157f828fcaadd259613f59db3c6d1c'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2017-01-27 14:19:25 +0200
committerKalle Valo <kvalo@codeaurora.org>2017-01-28 09:15:50 +0200
commit2b1d530cb3157f828fcaadd259613f59db3c6d1c (patch)
treefb5dfe8f2e6956f54377c7275f330cd158ead259 /Documentation/devicetree/bindings
parentbd19b5ab1da654de456e102250822ec06311d6ad (diff)
MAINTAINERS: ath9k-devel is closed
ath9k-devel list is now closed, only linux-wireless should be used. Reported-by: Michael Renzmann <mrenzmann@madwifi-project.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'Documentation/devicetree/bindings')