diff options
| author | Christian Brauner <brauner@kernel.org> | 2026-07-30 15:34:04 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-08-03 19:15:44 +0200 |
| commit | 686585ec270198690856077e55b7d579f84a765a (patch) | |
| tree | 646bdbf868ef73909e1266891c63176912366ca0 /include/linux/bnge/git@git.tavy.me:linux.git | |
| parent | 9984a51e3aa760aefa36569c730f4ebf172ba368 (diff) | |
selftests/exec: let binfmt_flag_supported() return a bool
binfmt_flag_supported() returns 0 when the flag is supported and -1
when it is not, so every caller reads backwards:
if (binfmt_flag_supported('T'))
SKIP(return, "kernel without the 'T' flag");
Make it return a bool and flip the callers. errno from a failed probe
is still set for callers that check it.
Link: https://patch.msgid.link/20260730-work-binfmt_misc-preopen-v1-2-4a0b0da71f16@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Reviewed-by: Farid Zakaria <farid.m.zakaria@gmail.com>
Diffstat (limited to 'include/linux/bnge/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
