diff options
author | James Bottomley <James.Bottomley@suse.de> | 2010-03-03 05:36:56 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-03 15:47:06 (GMT) |
commit | fac829fdcaf451a20106cbc468ff886466320956 (patch) | |
tree | 8fd1efcabda65db1abd0bb385367bf3f8389e4db /drivers/leds/ledtrig-default-on.c | |
parent | 98e1e0f07c3f1820b8ac424569ee9e9916d3665b (diff) | |
download | linux-fsl-qoriq-fac829fdcaf451a20106cbc468ff886466320956.tar.xz |
[SCSI] raid_attrs: fix dependency problems
RAID attributes uses scsi_is_sdev_device() to gate some SCSI specific
checking code. This causes two problems. Firstly if SCSI == n just
defining scsi_is_sdev_device() to return false might not be enough to
prevent gcc from emitting the code (and thus referring to undefined
symbols), so this needs surrounding with an ifdef. Secondly, using
scsi_is_sdev_device() when SCSI is either y or m gives a subtle
problem in the m case: raid_attrs must also be m to use the symbol.
Do the usual Kconfig jiggery-pokery to fix this.
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/leds/ledtrig-default-on.c')
0 files changed, 0 insertions, 0 deletions