All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Rob Clark <rob.clark@linaro.org>
Cc: Inki Dae <inki.dae@samsung.com>,
	dri-devel@lists.freedesktop.org, patches@linaro.org
Subject: Re: [PATCH] RFCv2: omapdrm DRM/KMS driver for TI OMAP platforms
Date: Mon, 26 Sep 2011 15:21:32 -0400	[thread overview]
Message-ID: <20110926192132.GA26714@phenom.oracle.com> (raw)
In-Reply-To: <20110926135544.GA4102@phenom.oracle.com>

On Mon, Sep 26, 2011 at 09:55:44AM -0400, Konrad Rzeszutek Wilk wrote:
> > >> +     commit(crtc);
> > >
> > > So no checking of its return value.. Should you at least wrap
> > > it with WARN_ON(?)
> > 
> > Is it safe to rely on the "payload" of the WARN_ON() always being
> > evaluated, or is there any scenario that you could have something like
> 
> Hmm, good question. I assumed so, but you got me thinking.
> > 
> >   #define WARN_ON(X)
> > 
> > ie., is this safe:
> > 
> >   WARN_ON(commit(crtc));
> > 
> > it looked like different archs can provide their own WARN_ON, so
> > wasn't sure how much to trust it..

asm-generic/bug.h has the "right" implementation. If other architectures
redefine as your have pointed out - then that looks like a bug.

A: Yes, it is safe to do WARN_ON(commit(rctc));

  reply	other threads:[~2011-09-26 19:21 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-17 21:32 [PATCH] RFCv2: omapdrm DRM/KMS driver for TI OMAP platforms Rob Clark
2011-09-18 10:23 ` Daniel Vetter
2011-09-18 15:31   ` Rob Clark
2011-09-18 15:55     ` Daniel Vetter
2011-09-18 18:50       ` Rob Clark
2011-09-18 19:36 ` Thomas Hellstrom
2011-09-18 19:50   ` Rob Clark
2011-09-18 20:00     ` Thomas Hellstrom
2011-09-18 20:15       ` Rob Clark
2011-09-18 20:31         ` Thomas Hellstrom
2011-09-18 21:03           ` Rob Clark
2011-09-19  7:44 ` Inki Dae
2011-09-19 13:14   ` Rob Clark
2011-09-21 22:32 ` Konrad Rzeszutek Wilk
2011-09-22 20:21   ` Rob Clark
2011-09-26 13:55     ` Konrad Rzeszutek Wilk
2011-09-26 19:21       ` Konrad Rzeszutek Wilk [this message]
2011-10-14 14:03       ` Rob Clark

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=20110926192132.GA26714@phenom.oracle.com \
    --to=konrad.wilk@oracle.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=inki.dae@samsung.com \
    --cc=patches@linaro.org \
    --cc=rob.clark@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.