From: Jakub Kicinski Date: Thu, 3 Nov 2016 17:12:06 +0000 (+0000) Subject: debugfs: constify argument to debugfs_real_fops() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=68f929ff2654bced015ccb9b5555667f46f88dfa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git debugfs: constify argument to debugfs_real_fops() 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 CC: Nicolai Stange CC: Christian Lamparter CC: LKML Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller --- 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 @@ extern struct srcu_struct debugfs_srcu; * 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) { /*