From 7fd1cd242c795ac16b109f4a1c8a5f1295fa0afb Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 4 Mar 2008 14:29:00 -0800 Subject: [PATCH] --- yaml --- r: 86812 b: refs/heads/master c: acc4988bcf38f9618886eaeb9802aeacc6978ec2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/marker.h | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 0fbcbaee18d1..d957c929cf91 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 544adb41077a10d299a1094f12ec55a5843a9bdb +refs/heads/master: acc4988bcf38f9618886eaeb9802aeacc6978ec2 diff --git a/trunk/include/linux/marker.h b/trunk/include/linux/marker.h index 5df879dc3776..430f6adf9762 100644 --- a/trunk/include/linux/marker.h +++ b/trunk/include/linux/marker.h @@ -104,10 +104,16 @@ static inline void marker_update_probe_range(struct marker *begin, #define MARK_NOARGS " " /* To be used for string format validity checking with gcc */ -static inline void __printf(1, 2) __mark_check_format(const char *fmt, ...) +static inline void __printf(1, 2) ___mark_check_format(const char *fmt, ...) { } +#define __mark_check_format(format, args...) \ + do { \ + if (0) \ + ___mark_check_format(format, ## args); \ + } while (0) + extern marker_probe_func __mark_empty_function; extern void marker_probe_cb(const struct marker *mdata,