IB/nes: Deinline nes_free_qp_mem, save 1072 bytes
authorDenys Vlasenko <dvlasenk@redhat.com>
Fri, 8 Apr 2016 18:58:42 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:40:00 +0000 (19:40 -0400)
This function compiles to 550 bytes of machine code.
Three callsites, all in nes_create_qp.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
CC: Faisal Latif <faisal.latif@intel.com>
CC: Doug Ledford <dledford@redhat.com>
CC: linux-rdma@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Reviewed-By: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/nes/nes_verbs.c

index 7394224e99b2845bf503f881384a5d7d4d904b0d..9229f168eca4db22dd7cf6c82845b41017143aec 100644 (file)
@@ -981,7 +981,7 @@ static int nes_setup_mmap_qp(struct nes_qp *nesqp, struct nes_vnic *nesvnic,
 /**
  * nes_free_qp_mem() is to free up the qp's pci_alloc_consistent() memory.
  */
-static inline void nes_free_qp_mem(struct nes_device *nesdev,
+static void nes_free_qp_mem(struct nes_device *nesdev,
                struct nes_qp *nesqp, int virt_wqs)
 {
        unsigned long flags;