2006-01-17 14:50:31

by Serge E. Hallyn

[permalink] [raw]
Subject: RFC [patch 14/34] PID Virtualization const parameter for process group

Change parameter in access functions to const.
We try to be more diligent with the "const" attribute.
As a result not introducing const for this function will
result in many compiler warnings.

Signed-off-by: Hubertus Franke <[email protected]>
---
sched.h | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.15/include/linux/sched.h
===================================================================
--- linux-2.6.15.orig/include/linux/sched.h 2006-01-17 08:37:03.000000000 -0500
+++ linux-2.6.15/include/linux/sched.h 2006-01-17 08:37:03.000000000 -0500
@@ -859,7 +859,7 @@
atomic_t fs_excl; /* holding fs exclusive resources */
};

-static inline pid_t process_group(struct task_struct *tsk)
+static inline pid_t process_group(const struct task_struct *tsk)
{
return tsk->signal->pgrp;
}

--