From: Tony Breeds <hidden> Date: 2012-03-16 00:30:30
On platforms that (or configs that do not have PCI support building any
code that includes linux/netdevice.h we see the following warnings:
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE" is not defined [-Wundef]
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE_MODULE" is not defined [-Wundef]
In the case of this file we can trivially fallback to the old school
#if defined(...) syntax.
Signed-off-by: Tony Breeds <redacted>
To: Robert Love <redacted>
To: "James E.J. Bottomley" <redacted>
To: "David S. Miller" <davem@davemloft.net>
CC: devel@open-fcoe.org
CC: netdev@vger.kernel.org
CC: linux-scsi@vger.kernel.org
CC: linux-kernel@vger.kernel.org
---
include/linux/netdevice.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
@@ -1286,7 +1286,7 @@ struct net_device {structnetdev_tc_txqtc_to_txq[TC_MAX_QUEUE];u8prio_tc_map[TC_BITMASK+1];-#if IS_ENABLED(CONFIG_FCOE)+#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)/* max exchange id for FCoE LRO by ddp */unsignedintfcoe_ddp_xid;#endif
From: David Miller <davem@davemloft.net> Date: 2012-03-16 00:54:02
From: Tony Breeds <redacted>
Date: Fri, 16 Mar 2012 11:30:15 +1100
On platforms that (or configs that do not have PCI support building any
code that includes linux/netdevice.h we see the following warnings:
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE" is not defined [-Wundef]
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE_MODULE" is not defined [-Wundef]
In the case of this file we can trivially fallback to the old school
#if defined(...) syntax.
Signed-off-by: Tony Breeds <redacted>
Fix IS_ENABLED to handle cases like this so we don't need special
cases like this scattered around the tree.
From: Ben Hutchings <hidden> Date: 2012-03-16 00:55:51
On Fri, 2012-03-16 at 11:30 +1100, Tony Breeds wrote:
On platforms that (or configs that do not have PCI support building any
code that includes linux/netdevice.h we see the following warnings:
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE" is not defined [-Wundef]
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE_MODULE" is not defined [-Wundef]
In the case of this file we can trivially fallback to the old school
#if defined(...) syntax.
[...]
The script that generates those symbols should be fixed instead.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
From: Tony Breeds <hidden> Date: 2012-03-16 03:22:49
On Fri, Mar 16, 2012 at 12:55:45AM +0000, Ben Hutchings wrote:
On Fri, 2012-03-16 at 11:30 +1100, Tony Breeds wrote:
quoted
On platforms that (or configs that do not have PCI support building any
code that includes linux/netdevice.h we see the following warnings:
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE" is not defined [-Wundef]
include/linux/netdevice.h:964:1: warning: "__enabled_CONFIG_FCOE_MODULE" is not defined [-Wundef]
In the case of this file we can trivially fallback to the old school
#if defined(...) syntax.
[...]
The script that generates those symbols should be fixed instead.
Sorry all, Yes this patch is bogus.
The platform was seeing this error wasn't sourceing
drivers/scsi/Kconfig, so those symbols will never be defined. I imagine
that's pretty rare.
Yours Tony