]> git.baikalelectronics.ru Git - kernel.git/commit
ata: make SATA_PMP option selectable only if any SATA host driver is enabled
authorBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 26 Mar 2020 15:57:58 +0000 (16:57 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Mar 2020 16:28:17 +0000 (10:28 -0600)
commit2c5a236a08176ce1e5c4d3b3e2e9cf4d0bb241ce
treea9680991f1b3552eecfc8ad2a3ca5e645e028e59
parent9c40e6fd42e16dde8e46c0a943307f3724c45611
ata: make SATA_PMP option selectable only if any SATA host driver is enabled

There is no reason to expose SATA_PMP config option when no SATA
host drivers are enabled. To fix it add SATA_HOST config option,
make all SATA host drivers select it and finally make SATA_PMP
config options depend on it.

This also serves as preparation for the future changes which
optimize libata core code size on PATA only setups.

CC: "James E.J. Bottomley" <jejb@linux.ibm.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> # for SCSI bits
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/Kconfig
drivers/scsi/Kconfig
drivers/scsi/libsas/Kconfig