2009-10-15 23:17:24

by dougthompson

[permalink] [raw]
Subject: [PATCH 1/2] edac: i5400 fix missing CONFIG_PCI define

From: Ira W. Snyder <[email protected]>

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 <[email protected]>
Signed-off-by: Doug Thompson <[email protected]>
---
drivers/edac/mpc85xx_edac.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

Index: linux-2.6.31/drivers/edac/mpc85xx_edac.c
===================================================================
--- linux-2.6.31.orig/drivers/edac/mpc85xx_edac.c
+++ linux-2.6.31/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;