Thread (4 messages) flat view 4 messages, 3 authors, 2012-03-16

Re: [PATCH] Replace IS_ENABLED(CONFIG_FCOE) in linux/netdevice.h

From: David Miller <davem@davemloft.net>
Date: 2012-03-16 00:54:02
Also in: linux-scsi, lkml

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help