summaryrefslogtreecommitdiffstats
path: root/fs/nls/nls_cp775.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2020-03-26 16:58:09 +0100
committerJens Axboe <axboe@kernel.dk>2020-03-26 17:28:19 +0100
commitcba97ea18d92f3b9c56816fe9325aeb38a46746f (patch)
tree7b898680b6eb409414c986a554b15daf867424bc /fs/nls/nls_cp775.c
parentata: add CONFIG_SATA_HOST=n version of ata_ncq_enabled() (diff)
downloadlinux-cba97ea18d92f3b9c56816fe9325aeb38a46746f.tar.xz
linux-cba97ea18d92f3b9c56816fe9325aeb38a46746f.zip
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 'fs/nls/nls_cp775.c')
0 files changed, 0 insertions, 0 deletions