Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750996AbWAQOub (ORCPT ); Tue, 17 Jan 2006 09:50:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751216AbWAQOua (ORCPT ); Tue, 17 Jan 2006 09:50:30 -0500 Received: from e36.co.us.ibm.com ([32.97.110.154]:42181 "EHLO e36.co.us.ibm.com") by vger.kernel.org with ESMTP id S1750996AbWAQOua (ORCPT ); Tue, 17 Jan 2006 09:50:30 -0500 Message-Id: <20060117143326.452219000@sergelap> References: <20060117143258.150807000@sergelap> Date: Tue, 17 Jan 2006 08:33:12 -0600 From: Serge Hallyn To: linux-kernel@vger.kernel.org Cc: Hubertus Franke , Cedric Le Goater , Dave Hansen , Serge E Hallyn Subject: RFC [patch 14/34] PID Virtualization const parameter for process group Content-Disposition: inline; filename=F1-const-task-parameter.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 25 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 --- 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; } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/