Re: [PATCH] lib/interval_tree: fix allocation warning messages

Andrew Morton <[email protected]>
Newsgroups org.kernel.vger.linux-kernel,dev.linux.lists.llvm
Message-ID <[email protected]>
On Sat,  8 Aug 2026 14:36:08 +0200 Karl Mehltretter <[email protected]> wrote:

> WARN_ON_ONCE() takes a condition, not a message. The string literals
> are always true, so the warnings still trigger but the messages are
> never printed.
> 
> Use WARN_ONCE(1, ...) instead to print the messages and keep the
> once-only behavior.

lol, OK, thanks.

	fgrep -r 'WARN_ON_ONCE("' .

finds more.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.