Re: [PATCH 3/3] livepatch: Use static buffer for debugging messages under rq lock
From: Petr Mladek
Date: Mon Jun 03 2019 - 04:11:15 EST
On Fri 2019-05-31 14:37:52, Miroslav Benes wrote:
> On Fri, 31 May 2019, Petr Mladek wrote:
> > The err_buf array uses 128 bytes of stack space. Move it off the stack
> > by making it static. It's safe to use a shared buffer because
> > klp_try_switch_task() is called under klp_mutex.
> > diff --git a/kernel/livepatch/transition.c b/kernel/livepatch/transition.c
> > index 1bf362df76e1..5c4f0c1f826e 100644
> > --- a/kernel/livepatch/transition.c
> > +++ b/kernel/livepatch/transition.c
> > @@ -327,7 +327,6 @@ static bool klp_try_switch_task(struct task_struct *task)
> > pr_debug("%s", err_buf);
> > return success;
> > -
> > }
> This could go in separately as it is not connected to the rest of the
I have never seen a standalone commit just removing an empty line.
It is usually done when one touches the code around.
If you resist, we could omit this hunk from the patch and leave
the code as is.