debugfs: Fix default access mode config check
PATCH 1/1 debugfs: Fix default access mode config check
This typo caused debugfs to always behave as ifCONFIG_DEBUG_FS_ALLOW_NONE was selected.
--- fs/debugfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/debugfs/inode.c +1 -1
@@ -35,7 +35,7 @@static struct vfsmount *debugfs_mount;static int debugfs_mount_count;static bool debugfs_registered; -static bool debugfs_enabled__ro_after_init =IS_ENABLED (DEBUG_FS_ALLOW_ALL ); +static bool debugfs_enabled__ro_after_init =IS_ENABLED (CONFIG_DEBUG_FS_ALLOW_ALL );/* * Don't allow access attributes to be changed whilst the kernel is locked down
base-commit: f278809475f6835b56de78b28dc2cc0c7e2c20a4
Signature · 1 line
2.47.3
Hi Aaron,
Thanks for your patch!
Quoted 5 lines · Aaron Thompson
This typo caused debugfs to always behave as if
CONFIG_DEBUG_FS_ALLOW_NONEwas selected.Fixes f278809475f6 ("debugfs: Remove broken no-mount mode")Reported-by Mark Brown <[email protected]>
Please run scripts/checkpatch.pl on your patches.
For this patch, it reports:
WARNING: Reported-by: should be immediately followed by Closes:
with a URL to the report
For the broken patch, it would have reported:
WARNING: IS_ENABLED(DEBUG_FS_ALLOW_ALL) is normally used asIS_ENABLED(CONFIG_DEBUG_FS_ALLOW_ALL)
Quoted 2 lines
Tested-by Chen-Yu Tsai <[email protected]>Signed-off-by Aaron Thompson <[email protected]>
Thank you, this fixes:
1. "pinctrl core: failed to create debugfs directory for <foo>.pinctrl",
2. Failed to mount debugfs,
3. Systemd dropping in emergency mode on Debian systems.
fs/debugfs/inode.c line 41
Quoted 11 lines
fs/debugfs/inode.c +1
-1@@ -35,7 +35,7 @@static struct vfsmount *debugfs_mount;static int debugfs_mount_count;static bool debugfs_registered; -static bool debugfs_enabled__ro_after_init =IS_ENABLED (DEBUG_FS_ALLOW_ALL ); +static bool debugfs_enabled__ro_after_init =IS_ENABLED (CONFIG_DEBUG_FS_ALLOW_ALL );/* * Don't allow access attributes to be changed whilst the kernel is locked down
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds