Skip to contentSkip to conversation

drivers: dgap: Include appropriate header file in dgap_trace.c

PATCH In review Rashika Kheria 2 participants 2 messages Dec 21, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 drivers: dgap: Include appropriate header file in dgap_trace.c

Include appropriate header file dgap/dgap_trace.h in dgap_trace.c because function dgap_tracer_free() have its prototype declaration in the header file.

This eliminates the following warning in dgap_trace.c:
drivers/staging/dgap/dgap_trace.c:181:6: warning: no previous prototype for ‘dgap_tracer_free’ [-Wmissing-prototypes]

---
 drivers/staging/dgap/dgap_trace.c |    1 +
 1 file changed, 1 insertion(+)
drivers/staging/dgap/dgap_trace.c +1 -0
index 0f9a956..6c8b510 100644
@@ -37,6 +37,7 @@
 #include <linux/vmalloc.h>
 
 #include "dgap_driver.h"
+#include "dgap_trace.h"
 
 #define TRC_TO_CONSOLE 1
 
Signature · 1 line
1.7.9.5
Reviewed-by on v1 2/2
#1 lore raw
Quoted 8 lines · Rashika Kheria

Include appropriate header file dgap/dgap_trace.h in dgap_trace.c because function dgap_tracer_free() have its prototype declaration in the header file.

This eliminates the following warning in dgap_trace.c:
drivers/staging/dgap/dgap_trace.c:181:6: warning: no previous prototype for ‘dgap_tracer_free’ [-Wmissing-prototypes]

Quoted 18 lines
 drivers/staging/dgap/dgap_trace.c |    1 +
 1 file changed, 1 insertion(+)
drivers/staging/dgap/dgap_trace.c +1 -0
index 0f9a956..6c8b510 100644
@@ -37,6 +37,7 @@
 #include <linux/vmalloc.h>
 
 #include "dgap_driver.h"
+#include "dgap_trace.h"
 
 #define TRC_TO_CONSOLE 1
 
Signature · 1 line
1.7.9.5