Skip to contentSkip to conversation

binfmt_misc: remove the VERBOSE_STATUS toggle

PATCH Jori Koolstra 1 participant 1 message Jul 13 VFS

lore
Share & tools
lore

Jori Koolstra

author Reviewed-by
#0 lore raw
Quoted 42 lines · Christian Brauner

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.

---
 fs/binfmt_misc.c | 9 ---------
 1 file changed, 9 deletions(-)
fs/binfmt_misc.c +0 -9
index 9be57f387524..96f9ac752511 100644
@@ -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,
@@ -611,11 +607,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 */
Signature · 2 lines
-- 
2.53.0