From: Andrew Morton <akpm@linux-foundation.org>
To: Karl Mehltretter <kmehltretter@gmail.com>
Cc: Wei Yang <richard.weiyang@gmail.com>,
linux-kernel@vger.kernel.org, llvm@lists.linux.dev
Subject: Re: [PATCH] lib/interval_tree: fix allocation warning messages
Date: Sat, 8 Aug 2026 10:50:05 -0700 [thread overview]
Message-ID: <20260808105005.de1bcf3aff8698f818879053@linux-foundation.org> (raw)
In-Reply-To: <20260808123608.73613-1-kmehltretter@gmail.com>
On Sat, 8 Aug 2026 14:36:08 +0200 Karl Mehltretter <kmehltretter@gmail.com> 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.
next prev parent reply other threads:[~2026-08-08 17:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-08 12:36 [PATCH] lib/interval_tree: fix allocation warning messages Karl Mehltretter
2026-08-08 17:50 ` Andrew Morton [this message]
2026-08-08 18:55 ` Karl Mehltretter
2026-08-09 1:44 ` Wei Yang
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=20260808105005.de1bcf3aff8698f818879053@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=kmehltretter@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=richard.weiyang@gmail.com \
/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