From: James Bottomley Date: Wed, 3 Mar 2010 05:36:56 +0000 (+0530) Subject: [SCSI] raid_attrs: fix dependency problems X-Git-Tag: v2.6.34-rc2~18^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fac829fdcaf451a20106cbc468ff886466320956;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed