IB/core: Create common start/end port functions
authorIra Weiny <ira.weiny@intel.com>
Thu, 14 May 2015 00:02:55 +0000 (20:02 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:27:14 +0000 (15:27 +0100)
commitffd80cc52e3c9b6284c2ce223cba255188c161d3
tree973543a3012bab8b2662e0f2b4ed5a1386d4c155
parent9a4287f37c6739efcd133942e1aca96259429fc3
IB/core: Create common start/end port functions

commit 0cf18d7723055709faf51b50f5a33253b480637f upstream.

Previously start_port and end_port were defined in 2 places, cache.c and
device.c and this prevented their use in other modules.

Make these common functions, change the name to reflect the rdma
name space, and update existing users.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
[bwh: Backported to 3.2: drop one inapplicable change]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/core/cache.c
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h