All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Jennings <rcj@linux.vnet.ibm.com>
To: Michael Ellerman <michael@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 2/2] powerpc: Move local setup.h declarations to arch includes
Date: Mon, 28 Oct 2013 09:04:45 -0500	[thread overview]
Message-ID: <20131028140445.GA23635@linux.vnet.ibm.com> (raw)
In-Reply-To: <20131028012819.GB8331@concordia>

* Michael Ellerman (michael@ellerman.id.au) wrote:
> On Fri, Oct 25, 2013 at 02:25:07PM -0500, Robert C Jennings wrote:
> > Move the few declarations from arch/powerpc/kernel/setup.h
> > into arch/powerpc/include/asm/setup.h.  This resolves a
> > sparse warning for arch/powerpc/mm/numa.c which defines
> > do_init_bootmem() but can't include the setup.h header
> > in the prior path.
> > 
> > Resolves:
> > arch/powerpc/mm/numa.c:998:13:
> >         warning: symbol 'do_init_bootmem' was not declared.
> >                  Should it be static?
> 
> There's always a tension between too many well-focused-micro-headers,
> and too few random-piles-of-junk headers. I tend towards the former, but
> in this case I think you're right to drop setup.h.
> 
> > diff --git a/arch/powerpc/include/asm/setup.h b/arch/powerpc/include/asm/setup.h
> > index d3ca855..5e24df0 100644
> > --- a/arch/powerpc/include/asm/setup.h
> > +++ b/arch/powerpc/include/asm/setup.h
> > @@ -23,6 +23,11 @@ extern void reloc_got2(unsigned long);
> >  
> >  #define PTRRELOC(x)	((typeof(x)) add_reloc_offset((unsigned long)(x)))
> >  
> > +extern void check_for_initrd(void);
> > +extern void do_init_bootmem(void);
> > +extern void setup_panic(void);
> > +extern int do_early_xmon;
> 
> I don't see do_early_xmon used anywhere? Looks like I forgot to clean it
> up in 47679283. Mind dropping it?
> 
> I think these days it's trendy to not use extern in headers.
> 
> cheers

I'll clean that up and send again.

-Rob

      reply	other threads:[~2013-10-28 14:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-25 19:25 [PATCH 0/2] powerpc: Sparse fixes for numa.c Robert C Jennings
2013-10-25 19:25 ` [PATCH 1/2] powerpc: Fix warnings for arch/powerpc/mm/numa.c Robert C Jennings
2013-10-25 19:25 ` [PATCH 2/2] powerpc: Move local setup.h declarations to arch includes Robert C Jennings
2013-10-28  1:28   ` Michael Ellerman
2013-10-28 14:04     ` Robert Jennings [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=20131028140445.GA23635@linux.vnet.ibm.com \
    --to=rcj@linux.vnet.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=michael@ellerman.id.au \
    /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.