From: Nick Alcock Date: Thu, 25 May 2017 23:52:28 +0000 (+0100) Subject: dtrace: define DTRACE_PROBE_ENABLED to 0 when !CONFIG_DTRACE X-Git-Tag: v4.1.12-102.0.20170529_2200~57^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=23ae8dac51730abe752767c47b39f78d9ecfc290;p=users%2Fjedix%2Flinux-maple.git dtrace: define DTRACE_PROBE_ENABLED to 0 when !CONFIG_DTRACE Right now there is no definition for this at all, breaking kernel compilation. Signed-off-by: Nick Alcock Reviewed-by: Nicolas Droux Orabug: 26145788 --- diff --git a/include/linux/sdt.h b/include/linux/sdt.h index 51b9405d69e3..bab41ce09951 100644 --- a/include/linux/sdt.h +++ b/include/linux/sdt.h @@ -86,6 +86,7 @@ typedef struct sdt_probedesc { #define DTRACE_PROBE(name, ...) \ __DTRACE_DOUBLE_APPLY_NOCOMMA(__DTRACE_NONE, __DTRACE_NONE, ## __VA_ARGS__) \ do { } while (0) +#define DTRACE_PROBE_ENABLED(name) 0 #define DTRACE_PROBE_TRACEPOINT(name, ...) #define DTRACE_PROTO_TRACEPOINT(name, ...)