Re: [PATCH v2] sched/topology: Add __init for init_defrootdomain

From: Steven Rostedt
Date: Fri Sep 09 2022 - 13:25:40 EST


On Fri, 9 Sep 2022 14:24:06 +0800
Bing Huang <huangbing775@xxxxxxx> wrote:

> From: Bing Huang <huangbing@xxxxxxxxxx>
>
> init_defrootdomain is only used in initialization
>
> Signed-off-by: Bing Huang <huangbing@xxxxxxxxxx>
> Reviewed-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

Do not add a reviewed-by tag unless it is explicitly stated that you can.
Just because someone reviews your patch does not mean it allows you to add
that tag. I have not reviewed this version of the patch, and the last
version was not acceptable.

That said, this version is acceptable. But that still doesn't mean it was
right to add that tag before I gave the OK. That's because that tag carries
some weight of responsibility to those that give their review.

Now-Reviewed-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>

-- Steve

> Reviewed-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Reviewed-by: Valentin Schneider <vschneid@xxxxxxxxxx>
> ---
> v1->v2:
> Remove __init in function prototype
>
> kernel/sched/topology.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
> index 8739c2a5a54e..dea9fa39e7c0 100644
> --- a/kernel/sched/topology.c
> +++ b/kernel/sched/topology.c
> @@ -578,7 +578,7 @@ static int init_rootdomain(struct root_domain *rd)
> */
> struct root_domain def_root_domain;
>
> -void init_defrootdomain(void)
> +void __init init_defrootdomain(void)
> {
> init_rootdomain(&def_root_domain);
>