On Thu, Nov 03, 2016 at 05:12:06PM +0000, Jakub Kicinski wrote: > 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 <gre...@linuxfoundation.org> > CC: Nicolai Stange <nicsta...@gmail.com> > CC: Christian Lamparter <chunk...@gmail.com> > CC: LKML <linux-ker...@vger.kernel.org> > Signed-off-by: Jakub Kicinski <jakub.kicin...@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)
Ick. Tell me that looks better :( Please just don't wrap things like that, just make it go longer than 80 columns, I can handle the complaints... thanks, greg k-h