From: Chuck Lever <chuck.lever@oracle.com>
To: andi@firstfloor.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Fix the sign of the result of a conditional expression
Date: Wed, 15 Aug 2007 17:02:41 -0400 [thread overview]
Message-ID: <20070815204939.3518.63203.stgit@monet.1015granger.net> (raw)
In include/asm-x86_64/bitops.h, the find_{first,next,first_zero,next_zero}_bit
macros return a result type that depends on the width of the "size" argument.
The type of both arms of a conditional expression should always be the same.
I changed the return type of __scanbit() to match the return type of the
x86_64 find_*_bit() functions.
--
corporate: <chuck dot lever at oracle dot com>
next reply other threads:[~2007-08-15 21:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-15 21:02 Chuck Lever [this message]
2007-08-15 21:02 ` [PATCH] Eliminate result signage problem in asm-x86_64/bitops.h Chuck Lever
2007-08-15 22:23 ` Andi Kleen
2007-08-15 22:42 ` Chuck Lever
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=20070815204939.3518.63203.stgit@monet.1015granger.net \
--to=chuck.lever@oracle.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®