All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Jiang <djiang@mvista.com>
To: "Ira W. Snyder" <iws@ovro.caltech.edu>
Cc: linuxppc-dev@ozlabs.org, bluesmoke-devel@lists.sourceforge.net
Subject: Re: [PATCH] edac: mpc85xx: fix warning when building without CONFIG_PCI
Date: Wed, 08 Jul 2009 09:20:56 -0700	[thread overview]
Message-ID: <4A54C768.5000603@mvista.com> (raw)
In-Reply-To: <20090708161543.GB14979@ovro.caltech.edu>

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;

      reply	other threads:[~2009-07-08 16:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 16:15 [PATCH] edac: mpc85xx: fix warning when building without CONFIG_PCI Ira W. Snyder
2009-07-08 16:20 ` Dave Jiang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A54C768.5000603@mvista.com \
    --to=djiang@mvista.com \
    --cc=bluesmoke-devel@lists.sourceforge.net \
    --cc=iws@ovro.caltech.edu \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.