]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-tcp: constify nvme_tcp_mq_ops and nvme_tcp_admin_mq_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Thu, 28 May 2020 22:25:07 +0000 (00:25 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 11 Jun 2020 15:10:05 +0000 (09:10 -0600)
commit67758f864ab55b8014623a0d3bef202240326ab5
treeb0001be13cd43eb34e402daae291573337065234
parent55a0eeb062358a26ba358ca13d54999f21446db7
nvme-tcp: constify nvme_tcp_mq_ops and nvme_tcp_admin_mq_ops

nvme_tcp_mq_ops and nvme_tcp_admin_mq_ops are never modified and can be
made const to allow the compiler to put them in read-only memory.

Before:
   text    data     bss     dec     hex filename
  53102    6885     576   60563    ec93 drivers/nvme/host/tcp.o

After:
   text    data     bss     dec     hex filename
  53422    6565     576   60563    ec93 drivers/nvme/host/tcp.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/tcp.c