linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Tobin C. Harding" <me@tobin.cc>
To: Daniel Axtens <dja@axtens.net>
Cc: Michael Ellerman <mpe@ellerman.id.au>,
	Paul Mackerras <paulus@samba.org>,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc: fix sparse warning, include kernel header
Date: Sun, 12 Mar 2017 09:19:45 +1100	[thread overview]
Message-ID: <20170311221945.GB14736@eros> (raw)
In-Reply-To: <87k27y3qx4.fsf@possimpible.ozlabs.ibm.com>

On Fri, Mar 10, 2017 at 11:40:23AM +1100, Daniel Axtens wrote:
> Hi Tobin,
> 
> I have built the kernel with the ppc6xx_defconfig with and without your
> patch.
> 
> Using my smart-sparse-diff tool[1], I have confirmed the warning
> disappears:
> 
> -/scratch/dja/linux/arch/powerpc/kernel/swsusp.c:17:6: warning: symbol 'save_processor_state' was not declared. Should it be static?
> -/scratch/dja/linux/arch/powerpc/kernel/swsusp.c:31:6: warning: symbol 'restore_processor_state' was not declared. Should it be static?
> 
> As such, this patch is:
> 
> Reviewed-by: Daniel Axtens <dja@axtens.net>

Awesome, thanks Daniel

> 
> Thanks for fixing this!
> 
> Regards,
> Daniel
> 
> [1] https://github.com/daxtens/smart-sparse-diff
> 
> "Tobin C. Harding" <me@tobin.cc> writes:
> 
> > Spares emits two symbol not declared warnings. The two functions in
> > question are declared already in a kernel header.
> >
> > Add include directive to include kernel header.
> >
> > Signed-off-by: Tobin C. Harding <me@tobin.cc>
> > ---
> >
> > github issue: #37 Fix sparse errors
> >
> >  arch/powerpc/kernel/swsusp.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/arch/powerpc/kernel/swsusp.c b/arch/powerpc/kernel/swsusp.c
> > index 6ae9bd5..0050b2d 100644
> > --- a/arch/powerpc/kernel/swsusp.c
> > +++ b/arch/powerpc/kernel/swsusp.c
> > @@ -10,6 +10,7 @@
> >   */
> >  
> >  #include <linux/sched.h>
> > +#include <linux/suspend.h>
> >  #include <asm/current.h>
> >  #include <asm/mmu_context.h>
> >  #include <asm/switch_to.h>
> > -- 
> > 2.7.4

-- 
Tobin Harding
http://tobin.cc

  reply	other threads:[~2017-03-11 22:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-06  8:25 [PATCH] powerpc: fix sparse warning, include kernel header Tobin C. Harding
2017-03-10  0:40 ` Daniel Axtens
2017-03-11 22:19   ` Tobin C. Harding [this message]
2017-03-21 11:36 ` Michael Ellerman

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=20170311221945.GB14736@eros \
    --to=me@tobin.cc \
    --cc=dja@axtens.net \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mpe@ellerman.id.au \
    --cc=paulus@samba.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).