[SCSI] Fix sd_probe_domain config problem
authorJames Bottomley <JBottomley@Parallels.com>
Wed, 6 Jun 2012 05:54:13 +0000 (14:54 +0900)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 7 Jun 2012 01:16:20 +0000 (10:16 +0900)
commitea80dadec7a06889562b478cf0b87afbe62b7ac8
tree57a5876b32f79a108708f150861b2fa0acddbe81
parenta2c658505bf5c75516ee0a79287223e86a2474af
[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 a7a20d103994fd760766e6c9d494daa569cbfe06
Author: Dan Williams <dan.j.williams@intel.com>
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 <rdunlap@xenotime.net>
Cc: Dan Williams <dan.j.williams@intel.com>
Tested-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi.c