From: Jakub Kicinski <jakub.kicinski@netronome.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Nicolai Stange <nicstange@gmail.com>
Cc: linux-kernel@vger.kernel.org, oss-drivers@netronome.com,
Jakub Kicinski <jakub.kicinski@netronome.com>
Subject: [PATCH] debugfs: add definition of debugfs_real_fops() if CONFIG_DEBUG_FS unset
Date: Mon, 27 Nov 2017 10:51:34 -0800 [thread overview]
Message-ID: <20171127185134.13405-1-jakub.kicinski@netronome.com> (raw)
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@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.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..b1dc23cc0214 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)
{ }
+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
next reply other threads:[~2017-11-27 18:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 18:51 Jakub Kicinski [this message]
2017-11-27 20:33 ` Jakub Kicinski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171127185134.13405-1-jakub.kicinski@netronome.com \
--to=jakub.kicinski@netronome.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicstange@gmail.com \
--cc=oss-drivers@netronome.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®