]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: otg-fsm: Prevent build warning "VDBG" redefined
authorRoger Quadros <rogerq@ti.com>
Thu, 30 Mar 2017 06:46:41 +0000 (09:46 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:23 +0000 (10:58 +0300)
commite92634cd4d37d5a2ea2fb0d55d25d50bbba1e8e0
treed7c42434a231f631af08faef911b349d8433aaa4
parentff3f0789b3dc37869b8c45e023f01f9dca0cdd8f
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>
drivers/usb/common/usb-otg-fsm.c
drivers/usb/phy/phy-fsl-usb.c
include/linux/usb/otg-fsm.h