All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: fix cxgb3i build errors
@ 2010-05-04 17:28 Randy Dunlap
  2010-05-04 17:36 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2010-05-04 17:28 UTC (permalink / raw)
  To: scsi; +Cc: jejbscsi, Karen Xie, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

cxgb3i should depend on NET since it selects SCSI_ISCSI_ATTRS,
which depends on NET.
This change fixes multiple build (link) errors:

ERROR: "skb_trim" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "netlink_kernel_create" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "netlink_kernel_release" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "skb_pull" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "init_net" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "__alloc_skb" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "netlink_broadcast" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "kfree_skb" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
ERROR: "skb_put" [drivers/scsi/scsi_transport_iscsi.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Karen Xie <kxie@chelsio.com>
---
 drivers/scsi/cxgb3i/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- lnx-2634-rc6.orig/drivers/scsi/cxgb3i/Kconfig
+++ lnx-2634-rc6/drivers/scsi/cxgb3i/Kconfig
@@ -1,6 +1,6 @@
 config SCSI_CXGB3_ISCSI
 	tristate "Chelsio S3xx iSCSI support"
-	depends on CHELSIO_T3_DEPENDS
+	depends on CHELSIO_T3_DEPENDS && NET
 	select CHELSIO_T3
 	select SCSI_ISCSI_ATTRS
 	---help---

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: fix cxgb3i build errors
  2010-05-04 17:28 [PATCH] scsi: fix cxgb3i build errors Randy Dunlap
@ 2010-05-04 17:36 ` James Bottomley
  2010-05-04 21:52   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2010-05-04 17:36 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: scsi, Karen Xie, akpm

On Tue, 2010-05-04 at 10:28 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap@oracle.com>
> 
> cxgb3i should depend on NET since it selects SCSI_ISCSI_ATTRS,
> which depends on NET.
> This change fixes multiple build (link) errors:
> 
> ERROR: "skb_trim" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "netlink_kernel_create" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "netlink_kernel_release" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "skb_pull" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "init_net" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "__alloc_skb" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "netlink_broadcast" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "kfree_skb" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> ERROR: "skb_put" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
> 
> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
> Cc: Karen Xie <kxie@chelsio.com>
> ---
>  drivers/scsi/cxgb3i/Kconfig |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> --- lnx-2634-rc6.orig/drivers/scsi/cxgb3i/Kconfig
> +++ lnx-2634-rc6/drivers/scsi/cxgb3i/Kconfig
> @@ -1,6 +1,6 @@
>  config SCSI_CXGB3_ISCSI
>  	tristate "Chelsio S3xx iSCSI support"
> -	depends on CHELSIO_T3_DEPENDS
> +	depends on CHELSIO_T3_DEPENDS && NET

Something's seriously wrong here.

CHELSIO_T3_DEPENDS is supposed to be the rollup for all the
dependencies.  It's actually defined as this:

config CHELSIO_T3_DEPENDS
	tristate
	depends on PCI && INET
	default y

INET is the tcp/ip stack ... so how did you build a kernel that has
NET=n and INET=y (it's guarded by an #if NET in the Kconfig file)?

James



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] scsi: fix cxgb3i build errors
  2010-05-04 17:36 ` James Bottomley
@ 2010-05-04 21:52   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2010-05-04 21:52 UTC (permalink / raw)
  To: James Bottomley; +Cc: scsi, Karen Xie, akpm

On 05/04/10 10:36, James Bottomley wrote:
> On Tue, 2010-05-04 at 10:28 -0700, Randy Dunlap wrote:
>> From: Randy Dunlap <randy.dunlap@oracle.com>
>>
>> cxgb3i should depend on NET since it selects SCSI_ISCSI_ATTRS,
>> which depends on NET.
>> This change fixes multiple build (link) errors:
>>
>> ERROR: "skb_trim" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "netlink_kernel_create" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "netlink_kernel_release" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "skb_pull" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "init_net" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "__alloc_skb" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "netlink_broadcast" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "kfree_skb" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>> ERROR: "skb_put" [drivers/scsi/scsi_transport_iscsi.ko] undefined!
>>
>> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
>> Cc: Karen Xie <kxie@chelsio.com>
>> ---
>>  drivers/scsi/cxgb3i/Kconfig |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> --- lnx-2634-rc6.orig/drivers/scsi/cxgb3i/Kconfig
>> +++ lnx-2634-rc6/drivers/scsi/cxgb3i/Kconfig
>> @@ -1,6 +1,6 @@
>>  config SCSI_CXGB3_ISCSI
>>  	tristate "Chelsio S3xx iSCSI support"
>> -	depends on CHELSIO_T3_DEPENDS
>> +	depends on CHELSIO_T3_DEPENDS && NET
> 
> Something's seriously wrong here.
> 
> CHELSIO_T3_DEPENDS is supposed to be the rollup for all the
> dependencies.  It's actually defined as this:
> 
> config CHELSIO_T3_DEPENDS
> 	tristate
> 	depends on PCI && INET
> 	default y
> 
> INET is the tcp/ip stack ... so how did you build a kernel that has
> NET=n and INET=y (it's guarded by an #if NET in the Kconfig file)?

Hm, I managed to do that somehow, but I didn't save the Kconfig file
and I can't make it happen again, so just drop this patch.  Thanks.

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-04 21:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-04 17:28 [PATCH] scsi: fix cxgb3i build errors Randy Dunlap
2010-05-04 17:36 ` James Bottomley
2010-05-04 21:52   ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.