Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1514714
| From | Jakub Kicinski <jakub.kicinski@netronome.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next resend 10/13] debugfs: constify argument to debugfs_real_fops() |
| Date | 2016-11-03 18:20 +0100 |
| Message-ID | <sztQe-6Qe-23@gated-at.bofh.it> (permalink) |
| References | <sztQe-6Qe-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
seq_file users can only access const version of file pointer,
because the ->file member of struct seq_operations is marked
as such. Make parameter to debugfs_real_fops() const.
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Nicolai Stange <nicstange@gmail.com>
CC: Christian Lamparter <chunkeey@gmail.com>
CC: LKML <linux-kernel@vger.kernel.org>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
---
include/linux/debugfs.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 4d3f0d1aec73..bf1907d96097 100644
--- a/include/linux/debugfs.h
+++ b/include/linux/debugfs.h
@@ -52,7 +52,8 @@ struct debugfs_regset32 {
* Must only be called under the protection established by
* debugfs_use_file_start().
*/
-static inline const struct file_operations *debugfs_real_fops(struct file *filp)
+static inline const struct file_operations *
+debugfs_real_fops(const struct file *filp)
__must_hold(&debugfs_srcu)
{
/*
--
1.9.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH net-next resend 10/13] debugfs: constify argument to debugfs_real_fops() Jakub Kicinski <jakub.kicinski@netronome.com> - 2016-11-03 18:20 +0100
Re: [PATCH net-next resend 10/13] debugfs: constify argument to debugfs_real_fops() Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-11-10 15:30 +0100
Re: [PATCH net-next resend 10/13] debugfs: constify argument to debugfs_real_fops() Jakub Kicinski <jakub.kicinski@netronome.com> - 2016-11-10 16:50 +0100
csiph-web