mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Al Viro <viro@ftp.linux.org.uk>
Cc: Alexey Dobriyan <adobriyan@sw.ru>,
	akpm@osdl.org, torvalds@osdl.org, linux-kernel@vger.kernel.org,
	herbert@gondor.apana.org.au
Subject: Re: WARN_ON() which sometimes sucks
Date: Wed, 1 Aug 2007 13:53:25 +1000	[thread overview]
Message-ID: <18096.949.934194.648312@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20070731160248.GK21089@ftp.linux.org.uk>

Al Viro writes:

> Actually, the real problem is different - WTF do we need that typeof
> anyway?
> 	int ret_warn_on = !!(condition);
> 	[same as now]
> will work just fine...

It will mean more code on architectures which have a
conditional-trap-on-nonzero instruction, such as powerpc, since the
compiler will generate instructions to evaluate !!x.  But I don't see
any reason why ret_warn_on couldn't be a long.

Paul.

  reply	other threads:[~2007-08-01  3:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-31 15:55 Alexey Dobriyan
2007-07-31 16:02 ` Al Viro
2007-08-01  3:53   ` Paul Mackerras [this message]
2007-08-01  4:05     ` Linus Torvalds
2007-08-01  4:20       ` Paul Mackerras
2007-08-01 15:17         ` Joe Korty

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=18096.949.934194.648312@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=adobriyan@sw.ru \
    --cc=akpm@osdl.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    --cc=viro@ftp.linux.org.uk \
    /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®