mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com
Subject: Re: [PATCH] i386, nmi: signed vs unsigned mixup
Date: Sat, 19 Nov 2005 17:08:18 -0800	[thread overview]
Message-ID: <20051119170818.5e16afae.akpm@osdl.org> (raw)
In-Reply-To: <9a8748490511191630r3ad3e24w4e6d21b3f3b0c3a7@mail.gmail.com>

Jesper Juhl <jesper.juhl@gmail.com> wrote:
>
> > -ETOOTRIVIAL.  The code as-is works OK, and we have these sorts of things
>  > all over the tee.
>  >
>  Fair enough.
> 
>  Would a patch to clean this sort of stuff up in bulk all over be of
>  interrest or should I just leave it alone?

Such a patchset would be pretty intrusive and it's not exactly trivial - at
each site we need to decide whether we should be using signed or unsigned,
then change one or the other, then do a full-scope check to see what the
implications of that change are.

I think the two risks of signedness sloppiness are a) inadvertent or
premature overflow and b) comparisons, where the signed quantity went
negative.

Problem b) is more serious, and `gcc -Wsigned-compare' may be used to
identify possible problems.  There are quite a lot of places need checking,
iirc.


  reply	other threads:[~2005-11-20  1:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-19 23:10 Jesper Juhl
2005-11-20  0:28 ` Andrew Morton
2005-11-20  0:30   ` Jesper Juhl
2005-11-20  1:08     ` Andrew Morton [this message]
2005-11-20  1:15       ` Jesper Juhl
2005-11-20  1:33         ` Andrew Morton
2005-11-20  1:45           ` Jesper Juhl
2005-11-21 10:40             ` Jesper Juhl
2005-11-21 20:20               ` Andrew Morton

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=20051119170818.5e16afae.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=jesper.juhl@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    /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

Powered by JetHome