pid: mark struct pid* argument as const
[platform/kernel/linux-rpi.git] / include / linux / pid.h
index fa10acb..a19f612 100644 (file)
@@ -87,12 +87,12 @@ static inline struct pid *get_pid(struct pid *pid)
 }
 
 extern void put_pid(struct pid *pid);
-extern struct task_struct *pid_task(struct pid *pid, enum pid_type);
+extern struct task_struct *pid_task(const struct pid *pid, enum pid_type);
 static inline bool pid_has_task(struct pid *pid, enum pid_type type)
 {
        return !hlist_empty(&pid->tasks[type]);
 }
-extern struct task_struct *get_pid_task(struct pid *pid, enum pid_type);
+extern struct task_struct *get_pid_task(const struct pid *pid, enum pid_type);
 
 extern struct pid *get_task_pid(struct task_struct *task, enum pid_type type);