Skip to contentSkip to conversation

ixgbe: replace defined with IS_ENABLED

PATCH In review [email protected] 2 participants 3 messages Sep 18, 2016 – Sep 20, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ixgbe: replace defined with IS_ENABLED

From: Zhu Yanjun <[email protected]>

Replace defined macro with IS_ENABLED in ixgbe.h file

---
 drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe.h +1 -1
index 9475ff9..f8bc1d0 100644
@@ -45,7 +45,7 @@
 #include "ixgbe_type.h"
 #include "ixgbe_common.h"
 #include "ixgbe_dcb.h"
-#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
+#if IS_ENABLED(CONFIG_FCOE)
 #define IXGBE_FCOE
 #include "ixgbe_fcoe.h"
 #endif /* CONFIG_FCOE or CONFIG_FCOE_MODULE */
Signature · 1 line
2.7.4
#1 lore raw
Quoted 1 line

-----Original Message-----

From: [email protected] [mailto:netdev-owner at vger.kernel.org] On

Quoted 2 lines

Behalf Of zyjzyj2000 at gmail.com
Sent: Wednesday, September 14, 2016 8:27 AM

To: [email protected]; intel-wired-lan at lists.osuosl.org; Kirsher,

Quoted 28 lines

Jeffrey T <[email protected]>; zyjzyj2000 at gmail.com; e1000- devel at lists.sourceforge.net
Subject: [PATCH 1/1] ixgbe: replace defined with IS_ENABLED

From: Zhu Yanjun <[email protected]>

Replace defined macro with IS_ENABLED in ixgbe.h file

---
drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe.h +1 -2
index 9475ff9..f8bc1d0 100644
@@ -45,7 +45,7 @@
 #include "ixgbe_type.h"
 #include "ixgbe_common.h"
 #include "ixgbe_dcb.h"
-#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
+#if IS_ENABLED(CONFIG_FCOE)
 #define IXGBE_FCOE
 #include "ixgbe_fcoe.h"
 #endif /* CONFIG_FCOE or CONFIG_FCOE_MODULE */
--
Quoted 1 line

2.7.4

Already taken care of by the following patch:
http://patchwork.ozlabs.org/patch/668894/

Thanks,
Emil

author
#2 lore raw

how about this patch "ixgbe: remove the useless header file ixgbe_type.h"?

Quoted 41 lines · Emil S
Quoted 33 lines

-----Original Message-----
From: netdev-owner at vger.kernel.org [mailto:netdev-owner at vger.kernel.org] On Behalf Of zyjzyj2000 at gmail.com
Sent: Wednesday, September 14, 2016 8:27 AM
To: netdev at vger.kernel.org; intel-wired-lan at lists.osuosl.org; Kirsher, Jeffrey T <[email protected]>; zyjzyj2000 at gmail.com; e1000- devel at lists.sourceforge.net
Subject: [PATCH 1/1] ixgbe: replace defined with IS_ENABLED

From: Zhu Yanjun <[email protected]>

Replace defined macro with IS_ENABLED in ixgbe.h file

---
drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ixgbe/ixgbe.h +1 -2
index 9475ff9..f8bc1d0 100644
@@ -45,7 +45,7 @@
 #include "ixgbe_type.h"
 #include "ixgbe_common.h"
 #include "ixgbe_dcb.h"
-#if defined(CONFIG_FCOE) || defined(CONFIG_FCOE_MODULE)
+#if IS_ENABLED(CONFIG_FCOE)
 #define IXGBE_FCOE
 #include "ixgbe_fcoe.h"
 #endif /* CONFIG_FCOE or CONFIG_FCOE_MODULE */
--
Quoted 1 line

2.7.4

Already taken care of by the following patch:
http://patchwork.ozlabs.org/patch/668894/

Thanks,
Emil