[PATCH] edac: mpc85xx: fix warning when building without CONFIG_PCI

Subsystems: edac-core, edac-mpc85xx, the rest

STALE6274d

2 messages, 2 authors, 2009-07-08 · open the first message on its own page

[PATCH] edac: mpc85xx: fix warning when building without CONFIG_PCI

From: Ira W. Snyder <hidden>
Date: 2009-07-08 16:15:47

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.

Signed-off-by: Ira W. Snyder <redacted>
---
 drivers/edac/mpc85xx_edac.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
index 3f2ccfc..b4f5c63 100644
--- a/drivers/edac/mpc85xx_edac.c
+++ b/drivers/edac/mpc85xx_edac.c
@@ -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;
-- 
1.5.4.3

Re: [PATCH] edac: mpc85xx: fix warning when building without CONFIG_PCI

From: Dave Jiang <hidden>
Date: 2009-07-08 16:21:11

Acked-by: Dave Jiang <redacted>

On 07/08/2009 09:15 AM, Ira W. Snyder wrote:
quoted hunk
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.

Signed-off-by: Ira W. Snyder<redacted>
---
  drivers/edac/mpc85xx_edac.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c
index 3f2ccfc..b4f5c63 100644
--- a/drivers/edac/mpc85xx_edac.c
+++ b/drivers/edac/mpc85xx_edac.c
@@ -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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help