Re: [PATCH 2/3] Prepare pid_nr() etc functions to work with not-NULL pids

2007-10-05 Thread Pavel Emelyanov
Matt Mackall wrote: > On Thu, Oct 04, 2007 at 12:54:17PM +0400, Pavel Emelyanov wrote: >> Matt Mackall wrote: >>> On Wed, Oct 03, 2007 at 06:20:43PM +0400, Pavel Emelyanov wrote: Just make the __pid_nr() etc functions that expect the argument to always be not NULL. Signed-off-by

Re: [PATCH 2/3] Prepare pid_nr() etc functions to work with not-NULL pids

2007-10-04 Thread Matt Mackall
On Thu, Oct 04, 2007 at 12:54:17PM +0400, Pavel Emelyanov wrote: > Matt Mackall wrote: > > On Wed, Oct 03, 2007 at 06:20:43PM +0400, Pavel Emelyanov wrote: > >> Just make the __pid_nr() etc functions that expect the argument > >> to always be not NULL. > >> > >> Signed-off-by: Pavel Emelyanov <[EMA

Re: [PATCH 2/3] Prepare pid_nr() etc functions to work with not-NULL pids

2007-10-04 Thread Pavel Emelyanov
Matt Mackall wrote: > On Wed, Oct 03, 2007 at 06:20:43PM +0400, Pavel Emelyanov wrote: >> Just make the __pid_nr() etc functions that expect the argument >> to always be not NULL. >> >> Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> > >> static inline pid_t pid_nr(struct pid *pid) >> { >>

Re: [PATCH 2/3] Prepare pid_nr() etc functions to work with not-NULL pids

2007-10-03 Thread Matt Mackall
On Wed, Oct 03, 2007 at 06:20:43PM +0400, Pavel Emelyanov wrote: > Just make the __pid_nr() etc functions that expect the argument > to always be not NULL. > > Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> > static inline pid_t pid_nr(struct pid *pid) > { > pid_t nr = 0; > if (

[PATCH 2/3] Prepare pid_nr() etc functions to work with not-NULL pids

2007-10-03 Thread Pavel Emelyanov
Just make the __pid_nr() etc functions that expect the argument to always be not NULL. Signed-off-by: Pavel Emelyanov <[EMAIL PROTECTED]> --- diff --git a/include/linux/pid.h b/include/linux/pid.h index e29a900..50b6899 100644 --- a/include/linux/pid.h +++ b/include/linux/pid.h @@ -135,21 +135,3