scsi: core: Really include kunit tests with SCSI_LIB_KUNIT_TEST
authorLukas Bulwahn <lukas.bulwahn@gmail.com>
Wed, 7 Feb 2024 14:56:03 +0000 (15:56 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Feb 2024 01:37:29 +0000 (20:37 -0500)
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>
drivers/scsi/scsi_lib.c

index c726f2025c59b2bf5d8dbc1d045ed7b61dd1616d..ca48ba9a229ab2c8ed87abf1a481430e5b5c26c7 100644 (file)
@@ -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