linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Christian Engelmayer <cengelma@gmx.at>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/sysdev: Fix a mpic section mismatch for MPC85xx
Date: Mon, 16 Dec 2013 11:10:53 +1100	[thread overview]
Message-ID: <1387152653.15730.175.camel@pasglop> (raw)
In-Reply-To: <20131215193856.1637accd@spike>

On Sun, 2013-12-15 at 19:38 +0100, Christian Engelmayer wrote:
> Moved arch/powerpc/sysdev/mpic.c : smp_mpic_probe() out of the __init section.
> It is referenced by arch/powerpc/platforms/85xx/smp.c : smp_85xx_setup_cpu().

I don't like this. The reference is not actually going to call into the
code at all and as such is not an error, it's just a pointer comparison.

If there is no way to silence the warning, then I'd suggest to use a
global flag, something like mpc85xx_pic_type and test that instead
of comparing the pointers.

> Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
> ---
>  arch/powerpc/sysdev/mpic.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
> index 0e166ed..72c1e65 100644
> --- a/arch/powerpc/sysdev/mpic.c
> +++ b/arch/powerpc/sysdev/mpic.c
> @@ -1924,7 +1924,7 @@ void smp_mpic_message_pass(int cpu, int msg)
>  		       msg * MPIC_INFO(CPU_IPI_DISPATCH_STRIDE), physmask);
>  }
>  
> -int __init smp_mpic_probe(void)
> +int smp_mpic_probe(void)
>  {
>  	int nr_cpus;
>  

  reply	other threads:[~2013-12-16  0:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-15 18:38 [PATCH] powerpc/sysdev: Fix a mpic section mismatch for MPC85xx Christian Engelmayer
2013-12-16  0:10 ` Benjamin Herrenschmidt [this message]
2013-12-19 23:00   ` Christian Engelmayer
2014-01-28 21:14     ` Christian Engelmayer

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=1387152653.15730.175.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=cengelma@gmx.at \
    --cc=linuxppc-dev@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).