Thread (3 messages) 3 messages, 2 authors, 2018-03-12

Re: [PATCH] net: llc: drop VLA in llc_sap_mcast()

flat view

From: Salvatore Mesoraca <hidden>
Date: 2018-03-12 16:47:41
Also in: lkml

2018-03-12 16:14 GMT+01:00 David Miller [off-list ref]:
From: Salvatore Mesoraca <redacted>
Date: Sun, 11 Mar 2018 22:12:04 +0100
quoted
Avoid a VLA[1] by using a real constant expression instead of a variable.
The compiler should be able to optimize the original code and avoid using
an actual VLA. Anyway this change is useful because it will avoid a false
positive with -Wvla, it might also help the compiler generating better
code.

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Salvatore Mesoraca <redacted>
Applied.
Thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help