diff options
author | 2016-09-01 10:25:12 +0200 | |
---|---|---|
committer | 2016-10-19 08:37:53 +0200 | |
commit | 507b37cf71c86b7ceaebf333b8ae488a600f5afd (patch) | |
tree | 90f546e27c8d845db863ec66260a5ec0eede97bd /net/batman-adv/log.c | |
parent | batman-adv: Use proper name for gateway list head (diff) | |
download | linux-507b37cf71c86b7ceaebf333b8ae488a600f5afd.tar.gz linux-507b37cf71c86b7ceaebf333b8ae488a600f5afd.tar.bz2 linux-507b37cf71c86b7ceaebf333b8ae488a600f5afd.zip |
batman-adv: Use octal permissions instead of macros
Linus prefers to have octal permission numbers instead of combinations of
macro names ("random line noise"). Also old existing "bad symbolic
permission bit macro use" should be converted to octal numbers.
(http://lkml.kernel.org/r/CA+55aFw5v23T-zvDZp-MmD_EYxF8WbafwwB59934FV7g21uMGQ@mail.gmail.com)
Also remove the S_IFREG bit from the octal representation because it is
filtered out by debugfs_create.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/log.c')
-rw-r--r-- | net/batman-adv/log.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/batman-adv/log.c b/net/batman-adv/log.c index 56dc532f7a2c..c73c31769aba 100644 --- a/net/batman-adv/log.c +++ b/net/batman-adv/log.c @@ -31,7 +31,6 @@ #include <linux/sched.h> /* for linux/wait.h */ #include <linux/slab.h> #include <linux/spinlock.h> -#include <linux/stat.h> #include <linux/stddef.h> #include <linux/types.h> #include <linux/uaccess.h> @@ -212,8 +211,7 @@ int batadv_debug_log_setup(struct batadv_priv *bat_priv) spin_lock_init(&bat_priv->debug_log->lock); init_waitqueue_head(&bat_priv->debug_log->queue_wait); - d = debugfs_create_file("log", S_IFREG | S_IRUSR, - bat_priv->debug_dir, bat_priv, + d = debugfs_create_file("log", 0400, bat_priv->debug_dir, bat_priv, &batadv_log_fops); if (!d) goto err; |