aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/scsi
diff options
context:
space:
mode:
authorLukas Bulwahn <lukas.bulwahn@gmail.com>2024-02-07 15:56:03 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2024-02-12 20:37:29 -0500
commitf7c7190f49b8486fac3b9d499e826bf724f94652 (patch)
treeb7fecdf2e25508e0497d0592dd5ceb7ba9e8fab4 /drivers/scsi
parentscsi: target: tcm_loop: Make tcm_loop_lld_bus const (diff)
downloadwireguard-linux-f7c7190f49b8486fac3b9d499e826bf724f94652.tar.xz
wireguard-linux-f7c7190f49b8486fac3b9d499e826bf724f94652.zip
scsi: core: Really include kunit tests with SCSI_LIB_KUNIT_TEST
Commit 25a1f7a0a1fe ("scsi: core: Add kunit tests for scsi_check_passthrough()") adds the config SCSI_LIB_KUNIT_TEST and corresponding tests. Due to naming confusion, the actual tests would only be included when the non-existing config SCSI_KUNIT_TEST is enabled (note this missing 'LIB' in the config name). So, they are basically dead right now. Adjust the name to actual existing config. Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Link: https://lore.kernel.org/r/20240207145603.15680-1-lukas.bulwahn@gmail.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index c726f2025c59..ca48ba9a229a 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -3435,6 +3435,6 @@ void scsi_build_sense(struct scsi_cmnd *scmd, int desc, u8 key, u8 asc, u8 ascq)
}
EXPORT_SYMBOL_GPL(scsi_build_sense);
-#ifdef CONFIG_SCSI_KUNIT_TEST
+#ifdef CONFIG_SCSI_LIB_KUNIT_TEST
#include "scsi_lib_test.c"
#endif