Skip to contentSkip to conversation

scsi: storvsc: Fix a build issue reported by kbuild test robot

PATCH Superseded K. Y. Srinivasan 3 participants 7 messages Jan 28, 2016 SCSI

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: storvsc: Fix a build issue reported by kbuild test robot

tree:   https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgit.kernel.org%2fpub%2fscm%2flinux%2fkernel%2fgit%2ftorvalds%2flinux.git&data=01%7c01%7ckys%40microsoft.com%7ce2e0622715844b79ad7108d32796ec3c%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=ubr4GbBaNS%2ftOz%2buJBk0CL9N0UNG9x2TidLgy6Yovg4%3d master
head:   03c21cb775a313f1ff19be59c5d02df3e3526471
commit: dac582417bc449b1f7f572d3f1dd9d23eec15cc9 storvsc: Properly support Fibre Channel devices
date:   3 weeks ago
config: x86_64-randconfig-s3-01281016 (attached as .config)
reproduce:
        git checkout dac582417bc449b1f7f572d3f1dd9d23eec15cc9
        # save the attached .config to linux build tree
        make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/built-in.o: In function `storvsc_remove':

Quoted 1 line
Quoted 1 line

storvsc_drv.c:(.text+0x213af7): undefined reference to `fc_remove_host'

drivers/built-in.o: In function `storvsc_drv_init':

Quoted 2 lines
Quoted 2 lines

storvsc_drv.c:(.init.text+0xcbcc): undefined reference to fc_attach_transport' storvsc_drv.c:(.init.text+0xcc06): undefined reference to fc_release_transport'

drivers/built-in.o: In function `storvsc_drv_exit':

Quoted 1 line
Quoted 1 line

storvsc_drv.c:(.exit.text+0x123c): undefined reference to `fc_release_transport'

With this commit, the storvsc driver depends on FC atttributes. Make this dependency explicit.

---
 drivers/scsi/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/Kconfig +1 -0
index 64eed87..24365c3 100644
@@ -594,6 +594,7 @@ config XEN_SCSI_FRONTEND
 config HYPERV_STORAGE
 	tristate "Microsoft Hyper-V virtual storage driver"
 	depends on SCSI && HYPERV
+	depends on SCSI_FC_ATTRS
 	default HYPERV
 	help
 	  Select this option to enable the Hyper-V virtual storage driver.
Signature · 1 line
1.7.4.1
maintainer
#1 lore raw
Quoted 51 lines · K. Y. Srinivasan

tree: https://na01.safelinks.protection.outlook.com/?url=https%3a%2
f%2fgit.kernel.org%2fpub%2fscm%2flinux%2fkernel%2fgit%2ftorvalds%2fli nux.git&data=01%7c01%7ckys%40microsoft.com%7ce2e0622715844b79ad7108d3 2796ec3c%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=ubr4GbBaNS%2ftO z%2buJBk0CL9N0UNG9x2TidLgy6Yovg4%3d master

head:   03c21cb775a313f1ff19be59c5d02df3e3526471
commit: dac582417bc449b1f7f572d3f1dd9d23eec15cc9 storvsc: Properly
support Fibre Channel devices
date:   3 weeks ago
config: x86_64-randconfig-s3-01281016 (attached as .config)
reproduce:
        git checkout dac582417bc449b1f7f572d3f1dd9d23eec15cc9
        # save the attached .config to linux build tree
        make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/built-in.o: In function `storvsc_remove':

Quoted 2 lines
Quoted 2 lines

storvsc_drv.c:(.text+0x213af7): undefined reference to `fc_remove_host'

drivers/built-in.o: In function `storvsc_drv_init':

Quoted 4 lines
Quoted 4 lines

storvsc_drv.c:(.init.text+0xcbcc): undefined reference to fc_attach_transport' storvsc_drv.c:(.init.text+0xcc06): undefined reference to fc_release_transport'

drivers/built-in.o: In function `storvsc_drv_exit':

Quoted 2 lines
Quoted 2 lines

storvsc_drv.c:(.exit.text+0x123c): undefined reference to `fc_release_transport'

With this commit, the storvsc driver depends on FC atttributes. Make this
dependency explicit.

---
 drivers/scsi/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/scsi/Kconfig +1 -0
index 64eed87..24365c3 100644
@@ -594,6 +594,7 @@ config XEN_SCSI_FRONTEND
 config HYPERV_STORAGE
 	tristate "Microsoft Hyper-V virtual storage driver"
 	depends on SCSI && HYPERV
+	depends on SCSI_FC_ATTRS
 	default HYPERV
 	help
 	  Select this option to enable the Hyper-V virtual storage
Quoted 1 line

driver.

OK, so I thought Hannes requested that you not make the hyperv driver depend on the FC attrs and you said you would ... has this changed?

James

#2 lore raw
Quoted 57 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, January 27, 2016 10:03 PM
To: KY Srinivasan <[email protected]>; [email protected]; linux- [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

Quoted 3 lines · K. Y. Srinivasan

tree: https://na01.safelinks.protection.outlook.com/?url=https%3a%2
f%2fgit.kernel.org%2fpub%2fscm%2flinux%2fkernel%2fgit%2ftorvalds%2fli

nux.git&data=01%7c01%7ckys%40microsoft.com%7ce2e0622715844b79ad71 08d3

Quoted 1 line

2796ec3c%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=ubr4GbBaNS %2ftO

Quoted 35 lines

z%2buJBk0CL9N0UNG9x2TidLgy6Yovg4%3d master

head:   03c21cb775a313f1ff19be59c5d02df3e3526471
commit: dac582417bc449b1f7f572d3f1dd9d23eec15cc9 storvsc: Properly
support Fibre Channel devices
date:   3 weeks ago
config: x86_64-randconfig-s3-01281016 (attached as .config)
reproduce:
        git checkout dac582417bc449b1f7f572d3f1dd9d23eec15cc9
        # save the attached .config to linux build tree
        make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/built-in.o: In function `storvsc_remove':

Quoted 2 lines
Quoted 2 lines

storvsc_drv.c:(.text+0x213af7): undefined reference to `fc_remove_host'

drivers/built-in.o: In function `storvsc_drv_init':

Quoted 4 lines
Quoted 4 lines

storvsc_drv.c:(.init.text+0xcbcc): undefined reference to fc_attach_transport' storvsc_drv.c:(.init.text+0xcc06): undefined reference to fc_release_transport'

drivers/built-in.o: In function `storvsc_drv_exit':

Quoted 2 lines
Quoted 2 lines

storvsc_drv.c:(.exit.text+0x123c): undefined reference to `fc_release_transport'

With this commit, the storvsc driver depends on FC atttributes. Make this
dependency explicit.

---
 drivers/scsi/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 16 lines
Quoted 12 lines
drivers/scsi/Kconfig +1 -0
index 64eed87..24365c3 100644
@@ -594,6 +594,7 @@ config XEN_SCSI_FRONTEND
 config HYPERV_STORAGE
 	tristate "Microsoft Hyper-V virtual storage driver"
 	depends on SCSI && HYPERV
+	depends on SCSI_FC_ATTRS
 	default HYPERV
 	help
 	  Select this option to enable the Hyper-V virtual storage
Quoted 1 line

driver.

OK, so I thought Hannes requested that you not make the hyperv driver depend on the FC attrs and you said you would ... has this changed?

Since 99% of the code would be identical, Hannes agreed that it would not be good to have a separate FC driver. Given that, this is the only option we have.

Regards,

K. Y

Quoted 2 lines

James

#3 lore raw
In reply to K. Y. Srinivasan

drivers/scsi/Kconfig config XEN_SCSI_FRONTEND · line 597

Quoted 1 line · K. Y. Srinivasan
drivers/scsi/Kconfig +1 -0
+	depends on SCSI_FC_ATTRS

I think 'depends' instead of 'select' will cause HYPERV_STORAGE to disapepar during make oldconfig if SCSI_FC_ATTRS was not set before. Not sure what the policy of 'depends' vs. 'select' actually is. If SCSI_FC_ATTRS is supposed to be a library kind of thing then 'select' might be the correct way.

Olaf

#4 lore raw
Quoted 16 lines

-----Original Message-----
From: Olaf Hering [mailto:[email protected]]
Sent: Thursday, January 28, 2016 7:56 AM
To: KY Srinivasan <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

On Wed, Jan 27, K. Y. Srinivasan wrote:

Quoted 7 lines

drivers/scsi/Kconfig config XEN_SCSI_FRONTEND · line 597

Quoted 1 line
drivers/scsi/Kconfig +1 -0
+	depends on SCSI_FC_ATTRS

I think 'depends' instead of 'select' will cause HYPERV_STORAGE to disapepar during make oldconfig if SCSI_FC_ATTRS was not set before. Not sure what the policy of 'depends' vs. 'select' actually is. If SCSI_FC_ATTRS is supposed to be a library kind of thing then 'select' might be the correct way.

The current build issue is because the Hyper-V storage is configured to be built with the kernel while the SCSI_FC_AATRS is configured as a module. This patch fixes that issue. I too am not sure what the policy of using "depends" vs " select" is. James, what would be your recommendation here.

Regards,

K. Y

Quoted 2 lines

Olaf

maintainer
#5 lore raw
Quoted 28 lines · KY Srinivasan
Quoted 17 lines

-----Original Message-----
From: Olaf Hering [mailto:[email protected]]
Sent: Thursday, January 28, 2016 7:56 AM
To: KY Srinivasan <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected];
[email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test
robot

On Wed, Jan 27, K. Y. Srinivasan wrote:

Quoted 10 lines

drivers/scsi/Kconfig config XEN_SCSI_FRONTEND · line 597

Quoted 1 line
drivers/scsi/Kconfig +1 -0
+	depends on SCSI_FC_ATTRS

I think 'depends' instead of 'select' will cause HYPERV_STORAGE to disapepar during make oldconfig if SCSI_FC_ATTRS was not set before.
Not sure what the policy of 'depends' vs. 'select' actually is.
If
SCSI_FC_ATTRS is supposed to be a library kind of thing then 'select'
might be the correct way.

Quoted 6 lines

The current build issue is because the Hyper-V storage is configured to be built with
the kernel while the SCSI_FC_AATRS is configured as a module. This patch fixes that issue.
I too am not sure what the policy of using "depends" vs " select" is. James, what would be your recommendation here.

Oh, you don't care if FC_ATTRS are enabled, but if they are you need to exclude the case where storvsc is built in but FC_ATTRS is a module?
This is the accepted way of doing it:

depends on m || SCSI_FC_ATTRS != m

James

#6 lore raw
Quoted 50 lines

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Thursday, January 28, 2016 11:22 AM
To: KY Srinivasan <[email protected]>; Olaf Hering <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test robot

Quoted 28 lines · KY Srinivasan
Quoted 17 lines

-----Original Message-----
From: Olaf Hering [mailto:[email protected]]
Sent: Thursday, January 28, 2016 7:56 AM
To: KY Srinivasan <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected];
[email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] scsi: storvsc: Fix a build issue reported by kbuild test
robot

On Wed, Jan 27, K. Y. Srinivasan wrote:

Quoted 10 lines

drivers/scsi/Kconfig config XEN_SCSI_FRONTEND · line 597

Quoted 1 line
drivers/scsi/Kconfig +1 -0
+	depends on SCSI_FC_ATTRS

I think 'depends' instead of 'select' will cause HYPERV_STORAGE to disapepar during make oldconfig if SCSI_FC_ATTRS was not set before.
Not sure what the policy of 'depends' vs. 'select' actually is.
If
SCSI_FC_ATTRS is supposed to be a library kind of thing then 'select'
might be the correct way.

Quoted 6 lines

The current build issue is because the Hyper-V storage is configured to be built with
the kernel while the SCSI_FC_AATRS is configured as a module. This patch fixes that issue.
I too am not sure what the policy of using "depends" vs " select" is. James, what would be your recommendation here.

Quoted 5 lines

Oh, you don't care if FC_ATTRS are enabled, but if they are you need to exclude the case where storvsc is built in but FC_ATTRS is a module?
This is the accepted way of doing it:

depends on m || SCSI_FC_ATTRS != m

Thanks James, I will resubmit this patch with the change you have recommended.

K. Y