[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191101160323.GB2300@nazgul.tnic>
Date: Fri, 1 Nov 2019 17:03:23 +0100
From: Borislav Petkov <bp@...en8.de>
To: zhong jiang <zhongjiang@...wei.com>
Cc: peterz@...radead.org, tglx@...utronix.de, mingo@...hat.com,
dave.hansen@...ux.intel.com, hpa@...or.com, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/ioremap: Use WARN_ONCE instead of printk() +
WARN_ON_ONCE()
On Fri, Nov 01, 2019 at 11:32:11PM +0800, zhong jiang wrote:
> WARN_ONCE will alway return true if its condition is true.:-)
And if its condition is false?
Lemme save you some time: WARN_ONCE() returns the @condition value so
constructs like
if (WARN_ONCE(condition,...))
are possible. Grep the code for examples.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
Powered by blists - more mailing lists