diff options
| author | 2026-08-08 14:38:02 +0200 | |
|---|---|---|
| committer | 2026-08-12 09:20:35 +0200 | |
| commit | 9ac8fd831252e52aa78399eaccc11a72f6c2af1a (patch) | |
| tree | 439d5eec2382251c06b0a581f84f2944ab6fe822 /scripts/Makefile.thinlto | |
| parent | block: reject block device inodes with i_rdev == 0 in lookup_bdev() (diff) | |
super: fix dying superblock warning messages
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.
Found with a Coccinelle script. Clang's -Wstring-conversion also flags
such calls but is not enabled in kernel builds.
Fixes: f0cd988016f6 ("fs: massage locking helpers")
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Link: https://patch.msgid.link/20260808123802.73687-1-kmehltretter@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
