|
@@ -113,12 +113,12 @@ static inline void *__PDE_DATA(const struct inode *inode)
|
|
|
return PDE(inode)->data;
|
|
|
}
|
|
|
|
|
|
-static inline struct pid *proc_pid(struct inode *inode)
|
|
|
+static inline struct pid *proc_pid(const struct inode *inode)
|
|
|
{
|
|
|
return PROC_I(inode)->pid;
|
|
|
}
|
|
|
|
|
|
-static inline struct task_struct *get_proc_task(struct inode *inode)
|
|
|
+static inline struct task_struct *get_proc_task(const struct inode *inode)
|
|
|
{
|
|
|
return get_pid_task(proc_pid(inode), PIDTYPE_PID);
|
|
|
}
|