]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hpsa: select CONFIG_SCSI_SAS_ATTR
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Nov 2015 22:04:35 +0000 (23:04 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Nov 2015 16:42:00 +0000 (11:42 -0500)
commitf4d8cd3c0a9465275a39bd42cd2f3b454d647b18
treeb022070beb2f6495cf9b52185f0cf6696674b39e
parent48fe79520dbdd2bec52d46a7feefd056374ec148
scsi: hpsa: select CONFIG_SCSI_SAS_ATTR

The hpsa driver recently started using the sas transport class, but it
does not ensure that the corresponding code is actually built, which
may lead to a link error:

drivers/built-in.o: In function `hpsa_free_sas_phy':
(.text+0x1ce874): undefined reference to `sas_port_delete_phy'
(.text+0x1ce87c): undefined reference to `sas_phy_free'
drivers/built-in.o: In function `hpsa_alloc_sas_port':
(.text+0x1ceb9c): undefined reference to `sas_port_alloc_num'
(.text+0x1ceba8): undefined reference to `sas_port_add'
drivers/built-in.o: In function `hpsa_init':
(.init.text+0x8838): undefined reference to `sas_attach_transport'
(.init.text+0x8868): undefined reference to `sas_release_transport

This adds 'select SCSI_SAS_ATTR' in the Kconfig entry, just like we do
for all other drivers using those functions.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: df582937d01b ("hpsa: add in sas transport class")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/Kconfig