aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorNiklas Cassel <[email protected]>2017-12-20 00:29:30 +0100
committerLorenzo Pieralisi <[email protected]>2017-12-21 11:10:30 +0000
commitf1aba0a0de55c72cded9a8951ef30680e7f46389 (patch)
tree54f0bed605787961300a20f4a320a5b1d0700eed /scripts/patch-kernel
parent71890ea0a0b5632c31be8d81c6c94b6541a898ff (diff)
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 <[email protected]> Signed-off-by: Niklas Cassel <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Acked-by: Kishon Vijay Abraham I <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions