Skip to content

Commit

Permalink
scsi: fix build errors, SCSI_FC_ATTRS needs to depend on SCSI && NET
Browse files Browse the repository at this point in the history
Fix build errors when CONFIG_SCSI_NETLINK is enabled but
CONFIG_NET is not enabled:

drivers/built-in.o: In function `scsi_nl_rcv_msg':
scsi_netlink.c:(.text+0x1850fa): undefined reference to `netlink_ack'
scsi_netlink.c:(.text+0x185105): undefined reference to `skb_pull'
scsi_netlink.c:(.text+0x18515d): undefined reference to `netlink_capable'
drivers/built-in.o: In function `scsi_netlink_init':
(.text+0x185244): undefined reference to `init_net'
drivers/built-in.o: In function `scsi_netlink_init':
(.text+0x185258): undefined reference to `__netlink_kernel_create'
drivers/built-in.o: In function `scsi_netlink_exit':
(.text+0x185291): undefined reference to `netlink_kernel_release'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Anish Bhatt <anish@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Randy Dunlap authored and David S. Miller committed Sep 16, 2014
1 parent fe42048 commit 95cd6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ config SCSI_SPI_ATTRS

config SCSI_FC_ATTRS
tristate "FiberChannel Transport Attributes"
depends on SCSI
depends on SCSI && NET
select SCSI_NETLINK
help
If you wish to export transport-specific information about
Expand Down

0 comments on commit 95cd6f4

Please sign in to comment.