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 3a8d190..943e5c4 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 f52dfb9..ba81294 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
 };