]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
IB/qib: Move char *qib_sdma_state_names[] and constify while there.
authorHernán Gonzalez <hernan@vanguardiasur.com.ar>
Tue, 27 Feb 2018 22:05:43 +0000 (19:05 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 28 Feb 2018 20:57:40 +0000 (13:57 -0700)
commit7f566a91b126075953949dbfe28a7221e9703aff
treeca90acde47d9eec0d9a236c5af37df8b847375fe
parent4f1d58343210cf52f2cb96c2499c81e2ae8d62c5
IB/qib: Move char *qib_sdma_state_names[] and constify while there.

Note: This is compile only tested as I have no access to the hw.
This variable was not used in qib_sdma.c but in qib_iba7322.c. Declaring it
there, as static, saves 56 bytes.

add/remove: 0/2 grow/shrink: 0/0 up/down: 0/-144 (-144)
Function                                     old     new   delta
qib_sdma_state_names                          56       -     -56
qib_sdma_event_names                          88       -     -88
Total: Before=2874565, After=2874421, chg -0.01%

Signed-off-by: Hernán Gonzalez <hernan@vanguardiasur.com.ar>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/hw/qib/qib_sdma.c