diff mbox

edac: mpc85xx: fix warning when building without CONFIG_PCI

Message ID 20090708161543.GB14979@ovro.caltech.edu
State Not Applicable
Delegated to: Kumar Gala
Headers show

Commit Message

Ira Snyder July 8, 2009, 4:15 p.m. UTC
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 <iws@ovro.caltech.edu>
---
 drivers/edac/mpc85xx_edac.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Dave Jiang July 8, 2009, 4:20 p.m. UTC | #1
Acked-by: Dave Jiang <djiang@mvista.com>

On 07/08/2009 09:15 AM, Ira W. Snyder wrote:
> 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<iws@ovro.caltech.edu>
> ---
>   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;
diff mbox

Patch

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;