]> Git Repo - linux.git/commitdiff
usb: mtu3: mtu3_trace: Supply missing mtu3_debug.h include file
authorLee Jones <[email protected]>
Wed, 15 Jul 2020 09:32:05 +0000 (10:32 +0100)
committerGreg Kroah-Hartman <[email protected]>
Wed, 15 Jul 2020 15:25:57 +0000 (17:25 +0200)
If the header file containing a function's prototype isn't included by
the sourcefile containing the associated function, the build system
complains of missing prototypes.

Fixes the following W=1 kernel build warning(s):

 drivers/usb/mtu3/mtu3_trace.c:13:6: warning: no previous prototype for ‘mtu3_dbg_trace’ [-Wmissing-prototypes]
 13 | void mtu3_dbg_trace(struct device *dev, const char *fmt, ...)
 | ^~~~~~~~~~~~~~

Cc: Chunfeng Yun <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/mtu3/mtu3_trace.c

index 155eae126e5e240cf019dec45ad20cdba86b7520..d17ddb87cdcf2ac71f35ab5e5b3e174ca3485d0f 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #define CREATE_TRACE_POINTS
+#include "mtu3_debug.h"
 #include "mtu3_trace.h"
 
 void mtu3_dbg_trace(struct device *dev, const char *fmt, ...)
This page took 0.05742 seconds and 4 git commands to generate.