From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: David Rientjes <rientjes@google.com>
Cc: <linux-kernel@vger.kernel.org>, "H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, <x86@kernel.org>
Subject: Re: [PATCH] x86: fix two sparse warnings in early boot string handling
Date: Tue, 11 Feb 2014 21:00:10 -0500 [thread overview]
Message-ID: <20140212020010.GB21033@windriver.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1402111425430.32020@chino.kir.corp.google.com>
[Re: [PATCH] x86: fix two sparse warnings in early boot string handling] On 11/02/2014 (Tue 14:26) David Rientjes wrote:
> On Tue, 11 Feb 2014, Paul Gortmaker wrote:
>
> > Fixes:
> >
> > arch/x86/boot/compressed/../string.c:60:14: warning: symbol 'atou' was not declared. Should it be static?
> > arch/x86/boot/string.c:133:6: warning: symbol 'strstr' was not declared. Should it be static?
> >
> > The atou one could be considered a false positive; it seems somehow
> > caused by including ./string.c from within /compressed/string.c file.
> > However git grep shows only the atou prototype and declaration, so
> > it is completely unused and we can hence delete it.
> >
>
> Declaring a prototype in a header file would be pointless if there is no
> current breakage; I don't see why you can't remove strstr() in
> arch/x86/boot/string.c entirely. What breaks?
Explicit breakage vs. sparse warnings are two different things. It may
be that we can delete strstr() just like I did for atou() -- but in the
interest of doing the minimal change, I did just what was needed for
fixing the sparse warnings for strstr. I can test if it can be removed,
but it has the smell of generic-libc usage all over it...
Paul.
--
`
next prev parent reply other threads:[~2014-02-12 1:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-11 18:33 [PATCH] x86: fix two sparse warnings in early boot string handling Paul Gortmaker
2014-02-11 22:26 ` David Rientjes
2014-02-12 2:00 ` Paul Gortmaker [this message]
2014-02-12 2:23 ` David Rientjes
2014-02-12 14:57 ` Paul Gortmaker
2014-02-12 15:49 ` Paul Gortmaker
2014-02-12 22:00 ` David Rientjes
2014-02-12 22:29 ` Paul Gortmaker
2014-02-12 23:14 ` David Rientjes
2014-02-12 23:31 ` H. Peter Anvin
2014-02-13 10:31 ` Matt Fleming
2014-02-13 14:01 ` H. Peter Anvin
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=20140212020010.GB21033@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rientjes@google.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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