]> git.baikalelectronics.ru Git - kernel.git/commit
dccp: make const array error_code static
authorColin Ian King <colin.king@canonical.com>
Thu, 13 Jul 2017 11:22:24 +0000 (12:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jul 2017 16:24:02 +0000 (09:24 -0700)
commit20ec232e52f957b17e3344f87a1a0c301f7cac7a
tree323cc5e277fee30f4a7946f306c02953c0de0d3a
parent0b746995b3e315005345039b00ab71c664a27556
dccp: make const array error_code static

Don't populate array error_code on the stack but make it static. Makes
the object code smaller by almost 250 bytes:

Before:
   text    data     bss     dec     hex filename
  10366     983       0   11349    2c55 net/dccp/input.o

After:
   text    data     bss     dec     hex filename
  10161    1039       0   11200    2bc0 net/dccp/input.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/input.c