[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 50/66] kern/act.c, act.h: comment unused variable
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 50/66] kern/act.c, act.h: comment unused variable |
Date: |
Mon, 9 Dec 2013 00:15:30 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Thu 05 Dec 2013 22:03:44 +0100, a écrit :
> * kern/act.c (null_act): Comment unused variable.
Well, it is used, by being initialized. The comment above explains what
it's used for.
> * kern/act.h (null_act): Likewise.
>
> ---
> kern/act.c | 2 +-
> kern/act.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kern/act.c b/kern/act.c
> index 321ff98..61b982e 100644
> --- a/kern/act.c
> +++ b/kern/act.c
> @@ -61,7 +61,7 @@ static Act free_acts[ACT_STATIC_KLUDGE];
>
> As you might expect, most of its members have no particular value.
> alerts is zero. */
> -Act null_act;
> +/* Act null_act; */
>
> void
> global_act_init()
> diff --git a/kern/act.h b/kern/act.h
> index e064724..cddf6c7 100644
> --- a/kern/act.h
> +++ b/kern/act.h
> @@ -175,7 +175,7 @@ void act_init(void);
> kern_return_t act_terminate_task_locked(struct Act *act);
>
> /* Exported to thread.c */
> -extern Act null_act;
> +/* extern Act null_act; */
> kern_return_t act_create_kernel(Act **out_act);
>
> /* Exported to machine-dependent activation code */
> --
> 1.8.1.4
>
>
--
Samuel
There are two types of Linux developers - those who can spell, and
those who can't. There is a constant pitched battle between the two.
(From one of the post-1.1.54 kernel update messages posted to c.o.l.a)
- [PATCH 43/66] i386/i386at/rtc.c: use boolean instead of an int, (continued)
- [PATCH 43/66] i386/i386at/rtc.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 42/66] i386/i386at/lpr.c: remove uninitialized variable, Marin Ramesa, 2013/12/05
- [PATCH 44/66] i386/i386at/rtc.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 45/66] i386/intel/pmap.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 47/66] ipc/ipc_init.c: qualify constant with const, Marin Ramesa, 2013/12/05
- [PATCH 46/66] i386/intel/pmap.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 48/66] ipc/mach_port.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 49/66] ipc/port.h: update comment, Marin Ramesa, 2013/12/05
- [PATCH 50/66] kern/act.c, act.h: comment unused variable, Marin Ramesa, 2013/12/05
- Re: [PATCH 50/66] kern/act.c, act.h: comment unused variable,
Samuel Thibault <=
- [PATCH 51/66] kern/act.h: remove prototype without definition, Marin Ramesa, 2013/12/05
- [PATCH 52/66] kern/debug.c: initialize the lock, Marin Ramesa, 2013/12/05
- [PATCH 53/66] kern/debug.c: initialize panicstr, Marin Ramesa, 2013/12/05
- [PATCH 54/66] kern/debug.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 55/66] kern/lock_mon.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 57/66] kern/lock_mon.c: remove dead assignments, Marin Ramesa, 2013/12/05
- [PATCH 56/66] kern/lock_mon.c: use spl_t instead of an int, Marin Ramesa, 2013/12/05