summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2017-03-30 09:46:41 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-04-11 10:58:23 +0300
commite92634cd4d37d5a2ea2fb0d55d25d50bbba1e8e0 (patch)
treed7c42434a231f631af08faef911b349d8433aaa4 /include
parentff3f0789b3dc37869b8c45e023f01f9dca0cdd8f (diff)
downloadlinux-e92634cd4d37d5a2ea2fb0d55d25d50bbba1e8e0.tar.gz
linux-e92634cd4d37d5a2ea2fb0d55d25d50bbba1e8e0.tar.bz2
linux-e92634cd4d37d5a2ea2fb0d55d25d50bbba1e8e0.zip
usb: otg-fsm: Prevent build warning "VDBG" redefined
If usb/otg-fsm.h and usb/composite.h are included together then it results in the build warning [1]. Prevent that by defining VDBG locally. Also get rid of MPC_LOC which doesn't seem to be used by anyone. [1] - warning fixed by this patch: In file included from drivers/usb/dwc3/core.h:33, from drivers/usb/dwc3/ep0.c:33: include/linux/usb/otg-fsm.h:30:1: warning: "VDBG" redefined In file included from drivers/usb/dwc3/ep0.c:31: include/linux/usb/composite.h:615:1: warning: this is the location of the previous definition Signed-off-by: Roger Quadros <rogerq@ti.com> Reviewed-by: Jun Li <jun.li@nxp.com> Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/otg-fsm.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/usb/otg-fsm.h b/include/linux/usb/otg-fsm.h
index 7a0350535cb1..a0a8f878503c 100644
--- a/include/linux/usb/otg-fsm.h
+++ b/include/linux/usb/otg-fsm.h
@@ -21,21 +21,6 @@
#include <linux/mutex.h>
#include <linux/errno.h>
-#undef VERBOSE
-
-#ifdef VERBOSE
-#define VDBG(fmt, args...) pr_debug("[%s] " fmt , \
- __func__, ## args)
-#else
-#define VDBG(stuff...) do {} while (0)
-#endif
-
-#ifdef VERBOSE
-#define MPC_LOC printk("Current Location [%s]:[%d]\n", __FILE__, __LINE__)
-#else
-#define MPC_LOC do {} while (0)
-#endif
-
#define PROTO_UNDEF (0)
#define PROTO_HOST (1)
#define PROTO_GADGET (2)