lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171127203544.7708-1-jakub.kicinski@netronome.com>
Date:   Mon, 27 Nov 2017 12:35:44 -0800
From:   Jakub Kicinski <jakub.kicinski@...ronome.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        Nicolai Stange <nicstange@...il.com>
Cc:     linux-kernel@...r.kernel.org, oss-drivers@...ronome.com,
        Jakub Kicinski <jakub.kicinski@...ronome.com>
Subject: [PATCH v2] debugfs: add definition of debugfs_real_fops() if CONFIG_DEBUG_FS unset

Recent commit moved the implementation of debugfs_real_fops()
out of the header file.  The declaration, however, is only
provided if CONFIG_DEBUG_FS is set.  Add an empty static inline
definition for when CONFIG_DEBUG_FS is unset.

Fixes: 7c8d469877b1 ("debugfs: add support for more elaborate ->d_fsdata")
Signed-off-by: Jakub Kicinski <jakub.kicinski@...ronome.com>
---
 include/linux/debugfs.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index f36ecc2a5712..95ebbdce4193 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -216,6 +216,11 @@ static inline void debugfs_remove(struct dentry *dentry)
 static inline void debugfs_remove_recursive(struct dentry *dentry)
 { }
 
+static inline const struct file_operations *debugfs_real_fops(const struct file *filp)
+{
+	return NULL;
+}
+
 static inline int debugfs_file_get(struct dentry *dentry)
 {
 	return 0;
-- 
2.14.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ