summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2026-07-10 11:33:11 +0200
committerChristian Brauner <brauner@kernel.org>2026-08-03 10:08:37 +0200
commite496ea42ced2540135baf7dfd208ea33be3a9c1d (patch)
tree5caf65c40c42c1fcdf7951e9d2c5efe8d9a5ec65
parente22835c83df441e8588d06c60a71cf5c2801f196 (diff)
binfmt_misc: remove the VERBOSE_STATUS toggle
VERBOSE_STATUS is a compile-time constant that has been fixed to 1 for as long as git history reaches. Turning it off requires editing the source and yields entry files that only ever report "enabled"/"disabled", a format nothing has ever seen in the wild. Remove the pretend knob and the dead branch it guards. Link: https://patch.msgid.link/20260710-work-binfmt_misc-locking-v3-10-a162f7cb58d6@kernel.org Reviewed-by: Jori Koolstra <jkoolstra@xs4all.nl> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
-rw-r--r--fs/binfmt_misc.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index a4206c0ee401..0880b058d3b6 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -38,10 +38,6 @@
# define USE_DEBUG 0
#endif
-enum {
- VERBOSE_STATUS = 1 /* make it zero to save 400 bytes kernel memory */
-};
-
/* Entry status and match type bit numbers. */
enum binfmt_misc_entry_bits {
MISC_FMT_ENABLED_BIT = 0,
@@ -610,11 +606,6 @@ static void entry_status(struct binfmt_misc_entry *e, char *page)
if (test_bit(MISC_FMT_ENABLED_BIT, &e->flags))
status = "enabled";
- if (!VERBOSE_STATUS) {
- sprintf(page, "%s\n", status);
- return;
- }
-
dp += sprintf(dp, "%s\ninterpreter %s\n", status, e->interpreter);
/* print the special flags */