diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-09-30 13:12:34 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-11-03 09:38:29 +0100 |
commit | 57b14da56227217424493c9e0632877b740d2a09 (patch) | |
tree | 1e7ac89d3fd3297008726cadee74a22b338b209e /drivers/usb/dwc3/Makefile | |
parent | usb: dwc3: gadget: offset Start Transfer latency for bulk EPs (diff) | |
download | linux-57b14da56227217424493c9e0632877b740d2a09.tar.xz linux-57b14da56227217424493c9e0632877b740d2a09.zip |
usb: dwc3: don't compile dwc3_trace() unless CONFIG_FTRACE=y
We don't need dwc3_trace() unless we're building a
kernel with CONFIG_FTRACE. This patch reduces
dwc3.ko text size a bit while also removing overhead
of dwc3_trace() calls.
text data bss dec hex filename
50796 581 0 51377 c8b1 drivers/usb/dwc3/dwc3.o
43961 581 0 44542 adfe drivers/usb/dwc3/dwc3.o.patched
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/Makefile')
-rw-r--r-- | drivers/usb/dwc3/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index 22420e17d68b..84de1e4151c4 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -3,7 +3,11 @@ CFLAGS_trace.o := -I$(src) obj-$(CONFIG_USB_DWC3) += dwc3.o -dwc3-y := core.o debug.o trace.o +dwc3-y := core.o + +ifneq ($(CONFIG_FTRACE),) + dwc3-y += debug.o trace.o +endif ifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) dwc3-y += host.o |