[PATCH 1/7] tracing: Add missing forward declaration

From: Steven Rostedt
Date: Thu Apr 26 2018 - 13:32:09 EST


From: Ahbong Chang <cwahbong@xxxxxxxxxx>

Without this forward declaration compile may fail if this header is
included only for registering other probe event without struct
pool_workqueue.

Link: http://lkml.kernel.org/r/20180416023626.139915-1-cwahbong@xxxxxxxxxx

Reviewed-by: Todd Poynor <toddpoynor@xxxxxxxxxx>
Signed-off-by: Ahbong Chang <cwahbong@xxxxxxxxxx>
Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
---
include/trace/events/workqueue.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/trace/events/workqueue.h b/include/trace/events/workqueue.h
index 2f057a494d93..9a761bc6a251 100644
--- a/include/trace/events/workqueue.h
+++ b/include/trace/events/workqueue.h
@@ -25,6 +25,8 @@ DECLARE_EVENT_CLASS(workqueue_work,
TP_printk("work struct %p", __entry->work)
);

+struct pool_workqueue;
+
/**
* workqueue_queue_work - called when a work gets queued
* @req_cpu: the requested cpu
--
2.16.3