On Thu, 07 Jan 2021 09:13:40 + Alexander Lobakin wrote:
> From: Jakub Kicinski
> Date: Wed, 6 Jan 2021 16:30:56 -0800
>
> > On Wed, 06 Jan 2021 20:40:28 + Alexander Lobakin wrote:
> >> 'net_header' is not used outside of this function, so can be moved
> >> from BSS onto the stack.
> >>
From: Jakub Kicinski
Date: Wed, 6 Jan 2021 16:30:56 -0800
> On Wed, 06 Jan 2021 20:40:28 + Alexander Lobakin wrote:
>> 'net_header' is not used outside of this function, so can be moved
>> from BSS onto the stack.
>> Declarations of one-element arrays are discouraged, and there's no
>> need t
On Wed, 06 Jan 2021 20:40:28 + Alexander Lobakin wrote:
> 'net_header' is not used outside of this function, so can be moved
> from BSS onto the stack.
> Declarations of one-element arrays are discouraged, and there's no
> need to store 'empty' in BSS. Simply allocate it from heap at init.
Are
'net_header' is not used outside of this function, so can be moved
from BSS onto the stack.
Declarations of one-element arrays are discouraged, and there's no
need to store 'empty' in BSS. Simply allocate it from heap at init.
Signed-off-by: Alexander Lobakin
---
net/sysctl_net.c | 27 ++
4 matches
Mail list logo