From: Gustavo A. R. Silva <hidden> Date: 2018-03-09 05:43:43
In preparation to enabling -Wvla, remove VLA usage and replace it
with a fixed-length array instead.
Signed-off-by: Gustavo A. R. Silva <redacted>
---
David,
I'm not sure how often this function is being called and,
depending on the frequency it may be worth to use
dynamic memory allocation instead?
Thanks
--
Gustavo
net/core/pktgen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: David Miller <davem@davemloft.net> Date: 2018-03-09 16:58:14
From: "Gustavo A. R. Silva" <redacted>
Date: Thu, 8 Mar 2018 23:43:40 -0600
In preparation to enabling -Wvla, remove VLA usage and replace it
with a fixed-length array instead.
Signed-off-by: Gustavo A. R. Silva <redacted>
---
David,
I'm not sure how often this function is being called and,
depending on the frequency it may be worth to use
dynamic memory allocation instead?
It happens every time a config setting is made via the sysfs
files when debug is enabled.
This is not something that happens often.
So your patch is fine, applied to net-next, thanks.
From: Gustavo A. R. Silva <hidden> Date: 2018-03-09 18:33:31
On 03/09/2018 10:58 AM, David Miller wrote:
From: "Gustavo A. R. Silva" <redacted>
Date: Thu, 8 Mar 2018 23:43:40 -0600
quoted
In preparation to enabling -Wvla, remove VLA usage and replace it
with a fixed-length array instead.
Signed-off-by: Gustavo A. R. Silva <redacted>
---
David,
I'm not sure how often this function is being called and,
depending on the frequency it may be worth to use
dynamic memory allocation instead?
It happens every time a config setting is made via the sysfs
files when debug is enabled.
This is not something that happens often.
I got it.
So your patch is fine, applied to net-next, thanks.