From: Ira W. Snyder Date: Mon, 26 Oct 2009 23:50:10 +0000 (-0700) Subject: edac: i5400 fix missing CONFIG_PCI define X-Git-Tag: v2.6.32-rc6~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0616fb003d4f799c4be62275242fc7ff9a968f84;p=platform%2Fkernel%2Flinux-3.10.git edac: i5400 fix missing CONFIG_PCI define 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 Signed-off-by: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/edac/mpc85xx_edac.c b/drivers/edac/mpc85xx_edac.c index 157f650..cf27402 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;