diff options
| author | Colin Ian King <[email protected]> | 2021-08-01 06:53:28 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-08-02 16:12:24 +0000 |
| commit | f36c82ac1b1bbb648d93ef715f2d2f06f3663561 (patch) | |
| tree | 2f8bf09c6c65f3a7027e49be73231b6d852bea1b /net/unix/unix_bpf.c | |
| parent | net/ipv4: Replace one-element array with flexible-array member (diff) | |
| download | kernel-f36c82ac1b1bbb648d93ef715f2d2f06f3663561.tar.gz kernel-f36c82ac1b1bbb648d93ef715f2d2f06f3663561.zip | |
netdevsim: make array res_ids static const, makes object smaller
Don't populate the array res_ids on the stack but instead it
static const. Makes the object code smaller by 14 bytes.
Before:
text data bss dec hex filename
50833 8314 256 59403 e80b ./drivers/net/netdevsim/fib.o
After:
text data bss dec hex filename
50755 8378 256 59389 e7fd ./drivers/net/netdevsim/fib.o
(gcc version 10.2.0)
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions
