diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2020-03-26 16:58:09 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-03-26 10:28:19 -0600 |
commit | cba97ea18d92f3b9c56816fe9325aeb38a46746f (patch) | |
tree | 7b898680b6eb409414c986a554b15daf867424bc /include/drm/drm_mipi_dbi.h | |
parent | 7caa30ea8238aed4f9998d032bfca7a91f6c36cd (diff) | |
download | linux-cba97ea18d92f3b9c56816fe9325aeb38a46746f.tar.bz2 |
ata: let compiler optimize out ata_dev_config_ncq() on non-SATA hosts
Add !IS_ENABLED(CONFIG_SATA_HOST) to ata_dev_config_ncq() to allow
compiler to optimize out the function for non-SATA configs.
Code size savings on m68k arch using (modified) atari_defconfig:
text data bss dec hex filename
before:
37582 572 40 38194 9532 drivers/ata/libata-core.o
after:
36462 572 40 37074 90d2 drivers/ata/libata-core.o
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/drm/drm_mipi_dbi.h')
0 files changed, 0 insertions, 0 deletions