public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [net-next] i40e: Fix dependencies in the i40e driver on configfs
@ 2015-03-03 20:38 Jeff Kirsher
  2015-03-03 20:42 ` Jeff Kirsher
  2015-03-03 20:45 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Kirsher @ 2015-03-03 20:38 UTC (permalink / raw)
  To: davem; +Cc: Greg Rose, netdev, nhorman, sassmann, jogreene, Jeff Kirsher

From: Greg Rose <gregory.v.rose@intel.com>

Module dependencies are broken in the case where CONFIG_I40E=y and
CONFIG_CONFIGFS_FS=m.  This fixes the broken dependency.

Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/ethernet/intel/Kconfig | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig
index f4ff465..7216a53 100644
--- a/drivers/net/ethernet/intel/Kconfig
+++ b/drivers/net/ethernet/intel/Kconfig
@@ -303,6 +303,15 @@ config I40E_FCOE
 
 	  If unsure, say N.
 
+config I40E_CONFIGFS_FS
+	bool "Config File System Support (configfs)"
+	default n
+	depends on I40E && CONFIGFS_FS && !(I40E=y && CONFIGFS_FS=m)
+	---help---
+	  Provides support for the configfs file system for additional
+	  driver configuration.  Say Y here if you want to use the
+	  configuration file system in the driver.
+
 config I40EVF
 	tristate "Intel(R) XL710 X710 Virtual Function Ethernet support"
 	depends on PCI_MSI
-- 
1.9.3

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

* Re: [net-next] i40e: Fix dependencies in the i40e driver on configfs
  2015-03-03 20:38 [net-next] i40e: Fix dependencies in the i40e driver on configfs Jeff Kirsher
@ 2015-03-03 20:42 ` Jeff Kirsher
  2015-03-03 20:45 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2015-03-03 20:42 UTC (permalink / raw)
  To: davem; +Cc: Greg Rose, netdev, nhorman, sassmann, jogreene

[-- Attachment #1: Type: text/plain, Size: 619 bytes --]

On Tue, 2015-03-03 at 12:38 -0800, Jeff Kirsher wrote:
> From: Greg Rose <gregory.v.rose@intel.com>
> 
> Module dependencies are broken in the case where CONFIG_I40E=y and
> CONFIG_CONFIGFS_FS=m.  This fixes the broken dependency.
> 
> Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
>  drivers/net/ethernet/intel/Kconfig | 9 +++++++++
>  1 file changed, 9 insertions(+)

This is to fix the current compile issues, I will continue to work with
the i40e development team to address Dave's concerns expressed earlier
in using configfs.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [net-next] i40e: Fix dependencies in the i40e driver on configfs
  2015-03-03 20:38 [net-next] i40e: Fix dependencies in the i40e driver on configfs Jeff Kirsher
  2015-03-03 20:42 ` Jeff Kirsher
@ 2015-03-03 20:45 ` David Miller
  2015-03-03 21:04   ` Jeff Kirsher
  1 sibling, 1 reply; 4+ messages in thread
From: David Miller @ 2015-03-03 20:45 UTC (permalink / raw)
  To: jeffrey.t.kirsher; +Cc: gregory.v.rose, netdev, nhorman, sassmann, jogreene

From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Date: Tue,  3 Mar 2015 12:38:55 -0800

> From: Greg Rose <gregory.v.rose@intel.com>
> 
> Module dependencies are broken in the case where CONFIG_I40E=y and
> CONFIG_CONFIGFS_FS=m.  This fixes the broken dependency.
> 
> Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>

This doesn't fix anything, nothing tests I40E_CONFIGFS_FS:

[davem@abraco net-next]$ make -s -j8
scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
kernel/Makefile:133: *** No X.509 certificates found ***
kernel/Makefile:133: *** No X.509 certificates found ***
drivers/built-in.o: In function `i40e_cfgfs_group_make_item':
i40e_configfs.c:(.text+0x192db7): undefined reference to `config_item_init_type_name'
drivers/built-in.o: In function `i40e_configfs_init':
(.text+0x192df1): undefined reference to `config_group_init'
drivers/built-in.o: In function `i40e_configfs_init':
(.text+0x192e25): undefined reference to `configfs_register_subsystem'
drivers/built-in.o: In function `i40e_configfs_exit':
(.text+0x192e7a): undefined reference to `configfs_unregister_subsystem'
make: *** [vmlinux] Error 1
[davem@abraco net-next]$ git am --signoff diff
Applying: i40e: Fix dependencies in the i40e driver on configfs
[davem@abraco net-next]$ make oldconfig
scripts/kconfig/conf --oldconfig Kconfig
#
# configuration written to .config
#
[davem@abraco net-next]$ make -s -j8
scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
kernel/Makefile:133: *** No X.509 certificates found ***
kernel/Makefile:133: *** No X.509 certificates found ***
drivers/built-in.o: In function `i40e_cfgfs_group_make_item':
i40e_configfs.c:(.text+0x192db7): undefined reference to `config_item_init_type_name'
drivers/built-in.o: In function `i40e_configfs_init':
(.text+0x192df1): undefined reference to `config_group_init'
drivers/built-in.o: In function `i40e_configfs_init':
(.text+0x192e25): undefined reference to `configfs_register_subsystem'
drivers/built-in.o: In function `i40e_configfs_exit':
(.text+0x192e7a): undefined reference to `configfs_unregister_subsystem'
make: *** [vmlinux] Error 1
[davem@abraco net-next]$ 

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

* Re: [net-next] i40e: Fix dependencies in the i40e driver on configfs
  2015-03-03 20:45 ` David Miller
@ 2015-03-03 21:04   ` Jeff Kirsher
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Kirsher @ 2015-03-03 21:04 UTC (permalink / raw)
  To: David Miller; +Cc: gregory.v.rose, netdev, nhorman, sassmann, jogreene

[-- Attachment #1: Type: text/plain, Size: 3103 bytes --]

On Tue, 2015-03-03 at 15:45 -0500, David Miller wrote:
> From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> Date: Tue,  3 Mar 2015 12:38:55 -0800
> 
> > From: Greg Rose <gregory.v.rose@intel.com>
> > 
> > Module dependencies are broken in the case where CONFIG_I40E=y and
> > CONFIG_CONFIGFS_FS=m.  This fixes the broken dependency.
> > 
> > Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
> > Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> 
> This doesn't fix anything, nothing tests I40E_CONFIGFS_FS:
> 
> [davem@abraco net-next]$ make -s -j8
> scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
> scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
> kernel/Makefile:133: *** No X.509 certificates found ***
> kernel/Makefile:133: *** No X.509 certificates found ***
> drivers/built-in.o: In function `i40e_cfgfs_group_make_item':
> i40e_configfs.c:(.text+0x192db7): undefined reference to `config_item_init_type_name'
> drivers/built-in.o: In function `i40e_configfs_init':
> (.text+0x192df1): undefined reference to `config_group_init'
> drivers/built-in.o: In function `i40e_configfs_init':
> (.text+0x192e25): undefined reference to `configfs_register_subsystem'
> drivers/built-in.o: In function `i40e_configfs_exit':
> (.text+0x192e7a): undefined reference to `configfs_unregister_subsystem'
> make: *** [vmlinux] Error 1
> [davem@abraco net-next]$ git am --signoff diff
> Applying: i40e: Fix dependencies in the i40e driver on configfs
> [davem@abraco net-next]$ make oldconfig
> scripts/kconfig/conf --oldconfig Kconfig
> #
> # configuration written to .config
> #
> [davem@abraco net-next]$ make -s -j8
> scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
> scripts/Makefile.kasan:16: Cannot use CONFIG_KASAN: -fsanitize=kernel-address is not supported by compiler
> kernel/Makefile:133: *** No X.509 certificates found ***
> kernel/Makefile:133: *** No X.509 certificates found ***
> drivers/built-in.o: In function `i40e_cfgfs_group_make_item':
> i40e_configfs.c:(.text+0x192db7): undefined reference to `config_item_init_type_name'
> drivers/built-in.o: In function `i40e_configfs_init':
> (.text+0x192df1): undefined reference to `config_group_init'
> drivers/built-in.o: In function `i40e_configfs_init':
> (.text+0x192e25): undefined reference to `configfs_register_subsystem'
> drivers/built-in.o: In function `i40e_configfs_exit':
> (.text+0x192e7a): undefined reference to `configfs_unregister_subsystem'
> make: *** [vmlinux] Error 1
> [davem@abraco net-next]$ 

Sorry it appears there were two issues that we needed to resolve.  The
first was the issue found with a randonconfig build where if the i40e
was compiled into the kernel and configfs was module, which this was
trying to correct.

The checks in the driver need to be changed from CONFIG_CONFIGFS_FS to
checking for CONFIG_I40E_CONFIGFS_FS, now that there is a Kconfig
option.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

end of thread, other threads:[~2015-03-03 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 20:38 [net-next] i40e: Fix dependencies in the i40e driver on configfs Jeff Kirsher
2015-03-03 20:42 ` Jeff Kirsher
2015-03-03 20:45 ` David Miller
2015-03-03 21:04   ` Jeff Kirsher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox