Skip to content

Commit ea80dad

Browse files
James BottomleyJames Bottomley
authored andcommitted
[SCSI] Fix sd_probe_domain config problem
With CONFIG_BLK_DEV_SD = n and CONFIG_PM = n, you get this compile failure: (.text+0x4f6c77): undefined reference to `scsi_sd_probe_domain' This was introduced by commit a7a20d1 Author: Dan Williams <[email protected]> Date: Thu Mar 22 17:05:11 2012 -0700 [SCSI] sd: limit the scope of the async probe domain And happens because scsi_sd_probe_domain is conditionally defined but unconditionally used. Fix this by making the symbol unconditionally defined. Reported-by: Randy Dunlap <[email protected]> Cc: Dan Williams <[email protected]> Tested-by: Randy Dunlap <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent a2c6585 commit ea80dad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/scsi/scsi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ unsigned int scsi_logging_level;
9090
EXPORT_SYMBOL(scsi_logging_level);
9191
#endif
9292

93-
#if IS_ENABLED(CONFIG_PM) || IS_ENABLED(CONFIG_BLK_DEV_SD)
94-
/* sd and scsi_pm need to coordinate flushing async actions */
93+
/* sd, scsi core and power management need to coordinate flushing async actions */
9594
LIST_HEAD(scsi_sd_probe_domain);
9695
EXPORT_SYMBOL(scsi_sd_probe_domain);
97-
#endif
9896

9997
/* NB: These are exposed through /proc/scsi/scsi and form part of the ABI.
10098
* You may not alter any existing entry (although adding new ones is

0 commit comments

Comments
 (0)