summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2017-12-20 00:29:30 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2017-12-21 11:10:30 +0000
commitf1aba0a0de55c72cded9a8951ef30680e7f46389 (patch)
tree54f0bed605787961300a20f4a320a5b1d0700eed /tools/perf
parent71890ea0a0b5632c31be8d81c6c94b6541a898ff (diff)
downloadtalos-op-linux-f1aba0a0de55c72cded9a8951ef30680e7f46389.tar.gz
talos-op-linux-f1aba0a0de55c72cded9a8951ef30680e7f46389.zip
PCI: dwc: dra7xx: Help compiler to remove unused code
The dra7xx driver supports both host and ep mode. When enabling support for only one of the modes, help the compiler to remove code for the mode that we have not enabled in the driver. By adding if (!IS_ENABLED(CONFIG_PCI_DRA7XX_HOST)) return -ENODEV; anything after that statement will get silently dropped by the compiler, including static functions and structures that are referenced indirectly from there. Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Niklas Cassel <niklas.cassel@axis.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud