xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Xen-devel <xen-devel@lists.xenproject.org>,
	Juergen Schinker <ba1020@homie.homelinux.net>,
	Wei Liu <wei.liu2@citrix.com>
Subject: Re: [PATCH for-4.8] ipxe: update to newer commit
Date: Tue, 11 Oct 2016 10:27:10 -0400	[thread overview]
Message-ID: <c18224de-6721-cafc-db28-afd4ac6431ee@oracle.com> (raw)
In-Reply-To: <22524.59859.523048.645176@mariner.uk.xensource.com>

On 10/11/2016 09:32 AM, Ian Jackson wrote:
> Boris Ostrovsky writes ("Re: [Xen-devel] [PATCH for-4.8] ipxe: update to newer commit"):
>> On 10/11/2016 05:52 AM, Ian Jackson wrote:
>>> Maybe we could consider these as backports to earlier releases.
>>> However, I looked at the patch and it mostly seems to be removing null
>>> pointer checks.  I find this ... surprising.
>> That's because routines have __nonnull attribute (which tells compiler
>> that arguments are never NULL) and new gcc warns on non-NULL checks for
>> these arguments.
> *sigh*  Why don't we just disable that warning ?

We could but what if an old compiler doesn't support that option?
Although it looks like -Wno-<option>, which is what we'd use, may be OK:

ostr@workbase> gcc foo.c
ostr@workbase> gcc -Wfoo foo.c
gcc: error: unrecognized command line option ‘-Wfoo’; did you mean ‘-Wno-’?
ostr@workbase> gcc -Wno-foo foo.c
ostr@workbase>


>
>> Another interesting new warning that is fatal with -Werror is
>>     if(a)
>>         foo();
>>         bar();
>>
>> gcc warns that bar() is indented and maybe braces are needed.
> Do we actually have cases like this ?  Are they real bugs ?

Yes we have (for example igb_phy.c change in the patch that I sent) and
no, they don't look like bugs.

>
>> BTW, another option for backporting may be removing -Werror. If we know
>> we are not changing sources then we might consider this.
> Perhaps we could disable warnings more selectively.

I scanned the changes again and at least one appears to be fixing a
legitimate bug (buffer overrun). There is an upstream patch for that,
which is essentially what I have there, but not as a separate patch.

-boris



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-10-11 14:25 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-10 12:50 [PATCH for-4.8] ipxe: update to newer commit Wei Liu
2016-10-10 15:34 ` Ian Jackson
2016-10-10 15:44   ` Wei Liu
2016-10-10 15:51     ` Ian Jackson
2016-10-10 16:33       ` Wei Liu
2016-10-10 17:38         ` Boris Ostrovsky
2016-10-11  9:40           ` Wei Liu
2016-10-11  9:52           ` Ian Jackson
2016-10-11 12:52             ` Boris Ostrovsky
2016-10-11 13:32               ` Ian Jackson
2016-10-11 14:27                 ` Boris Ostrovsky [this message]
2016-10-11 14:54                   ` Ian Jackson
2016-10-11 17:11                     ` Boris Ostrovsky
2016-10-12 11:00                     ` [PATCH for-4.8] ipxe: update to newer commit [and 1 more messages] Ian Jackson
2016-10-12 14:09                       ` Boris Ostrovsky
2016-10-12 14:14                       ` Wei Liu
2016-10-12 14:16                         ` Ian Jackson
2016-10-12  7:45                   ` [PATCH for-4.8] ipxe: update to newer commit Jan Beulich
2016-10-11 21:11                 ` Andrew Cooper
2016-10-11 21:17                   ` Andrew Cooper
2016-10-12  7:50                   ` Jan Beulich
2016-10-10 18:28         ` Juergen Schinker
2016-10-11  9:37           ` Wei Liu
2016-10-11  9:42             ` Juergen Schinker
2016-10-11  9:45               ` Wei Liu
2016-10-11 19:31                 ` Juergen Schinker
2016-10-11 19:45                   ` Konrad Rzeszutek Wilk
2016-10-12  9:27                   ` Wei Liu
2016-10-12 21:03                     ` Boris Ostrovsky
2016-10-13  9:04                       ` Wei Liu
2016-10-13  9:10                         ` Juergen Schinker
2016-10-13  9:29                           ` Wei Liu
2016-10-13 10:02                             ` Juergen Schinker
2016-10-13 14:53                               ` Wei Liu
     [not found]                                 ` <1633715062.155.1476375972276.JavaMail.zimbra@homie.homelinux.net>
2016-10-13 16:45                                   ` Wei Liu
2016-10-13 19:58                                     ` ANNOUNCEMENT] Xen 4.8 RC2 FULL SUCCESS 13.10.16 Juergen Schinker
2016-10-13  9:32                         ` [PATCH for-4.8] ipxe: update to newer commit Wei Liu

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=c18224de-6721-cafc-db28-afd4ac6431ee@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=ba1020@homie.homelinux.net \
    --cc=ian.jackson@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xenproject.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).