Skip to contentSkip to conversation

edac: mpc85xx: fix warning when building without CONFIG_PCI

PATCH In review Ira W. Snyder 2 participants 2 messages Jul 8, 2009

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

PATCH 1/1 edac: mpc85xx: fix warning when building without CONFIG_PCI

When building without CONFIG_PCI the edac_pci_idx variable is unused, causing a build-time warning. Wrap the variable in #ifdef CONFIG_PCI, just like the rest of the PCI support.

---
 drivers/edac/mpc85xx_edac.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/edac/mpc85xx_edac.c +2 -0
index 3f2ccfc..b4f5c63 100644
@@ -26,7 +26,9 @@
 #include "mpc85xx_edac.h"
 
 static int edac_dev_idx;
+#ifdef CONFIG_PCI
 static int edac_pci_idx;
+#endif
 static int edac_mc_idx;
 
 static u32 orig_ddr_err_disable;
Signature · 1 line
1.5.4.3
Acked-by on v1 1/1
#1 lore raw
Quoted 23 lines · Ira W. Snyder

When building without CONFIG_PCI the edac_pci_idx variable is unused, causing a build-time warning. Wrap the variable in #ifdef CONFIG_PCI, just like the rest of the PCI support.

---
  drivers/edac/mpc85xx_edac.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
drivers/edac/mpc85xx_edac.c +2 -0
index 3f2ccfc..b4f5c63 100644
@@ -26,7 +26,9 @@
  #include "mpc85xx_edac.h"
 
  static int edac_dev_idx;
+#ifdef CONFIG_PCI
  static int edac_pci_idx;
+#endif
  static int edac_mc_idx;
 
  static u32 orig_ddr_err_disable;