openvswitch: Use correct config guard.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 20 Jun 2013 22:08:14 +0000 (15:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jun 2013 07:16:46 +0000 (00:16 -0700)
This bug was introduced by commit aa310701e787087
(openvswitch: Add gre tunnel support.)

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport-gre.c
net/openvswitch/vport.c

index 3a8d1900aa78909d1a63628c8ac6993e3a9eb691..943e5c4313543240c987f4168fdd6ca1bf2dd1c5 100644 (file)
@@ -16,7 +16,7 @@
  * 02110-1301, USA
  */
 
-#ifdef CONFIG_NET_IPGRE_DEMUX
+#if IS_ENABLED(CONFIG_NET_IPGRE_DEMUX)
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/if.h>
index f52dfb9cb5a750d8e98ad5df5f76c6818b884676..ba81294219ac887fab0fb337b084a304f961fe32 100644 (file)
@@ -39,7 +39,7 @@ static const struct vport_ops *vport_ops_list[] = {
        &ovs_netdev_vport_ops,
        &ovs_internal_vport_ops,
 
-#ifdef CONFIG_NET_IPGRE_DEMUX
+#if IS_ENABLED(CONFIG_NET_IPGRE_DEMUX)
        &ovs_gre_vport_ops,
 #endif
 };