diff options
| author | Karl Mehltretter <kmehltretter@gmail.com> | 2026-08-08 14:38:02 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-08-12 09:20:35 +0200 |
| commit | 9ac8fd831252e52aa78399eaccc11a72f6c2af1a (patch) | |
| tree | 439d5eec2382251c06b0a581f84f2944ab6fe822 /drivers/phy/axiado/git@git.tavy.me:linux.git | |
| parent | 83887ad02f30c1814bed5da3ca999f7b0f3f337c (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 'drivers/phy/axiado/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
