drivers: dgap: Include appropriate header file in dgap_trace.c
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]
Signed-off-by Rashika Kheria <[email protected]>
--- drivers/staging/dgap/dgap_trace.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/dgap/dgap_trace.c +1 -0
@@ -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
Quoted 8 lines · Rashika Kheria
Include appropriate header file
dgap/dgap_trace.hindgap_trace.cbecause functiondgap_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]Signed-off-by Rashika Kheria <[email protected]>
Reviewed-by Josh Triplett <[email protected]>
Quoted 18 lines
drivers/staging/dgap/dgap_trace.c | 1 + 1 file changed, 1 insertion(+)drivers/staging/dgap/dgap_trace.c +1
-0@@ -37,6 +37,7 @@#include <linux/vmalloc.h> #include "dgap_driver.h" +#include "dgap_trace.h" #define TRC_TO_CONSOLE 1Signature · 1 line
1.7.9.5