IB/mthca: Make 2 functions static
This patch makes the needlessly global functions mthca_tavor_write_mtt_seg() and mthca_arbel_write_mtt_seg() static. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
committed by
Roland Dreier
parent
f1d2120487
commit
c9add6ec56
@@ -310,8 +310,9 @@ int mthca_write_mtt_size(struct mthca_dev *dev)
|
|||||||
return mthca_is_memfree(dev) ? (PAGE_SIZE / sizeof (u64)) : 0x7ffffff;
|
return mthca_is_memfree(dev) ? (PAGE_SIZE / sizeof (u64)) : 0x7ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mthca_tavor_write_mtt_seg(struct mthca_dev *dev, struct mthca_mtt *mtt,
|
static void mthca_tavor_write_mtt_seg(struct mthca_dev *dev,
|
||||||
int start_index, u64 *buffer_list, int list_len)
|
struct mthca_mtt *mtt, int start_index,
|
||||||
|
u64 *buffer_list, int list_len)
|
||||||
{
|
{
|
||||||
u64 __iomem *mtts;
|
u64 __iomem *mtts;
|
||||||
int i;
|
int i;
|
||||||
@@ -323,8 +324,9 @@ void mthca_tavor_write_mtt_seg(struct mthca_dev *dev, struct mthca_mtt *mtt,
|
|||||||
mtts + i);
|
mtts + i);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mthca_arbel_write_mtt_seg(struct mthca_dev *dev, struct mthca_mtt *mtt,
|
static void mthca_arbel_write_mtt_seg(struct mthca_dev *dev,
|
||||||
int start_index, u64 *buffer_list, int list_len)
|
struct mthca_mtt *mtt, int start_index,
|
||||||
|
u64 *buffer_list, int list_len)
|
||||||
{
|
{
|
||||||
__be64 *mtts;
|
__be64 *mtts;
|
||||||
dma_addr_t dma_handle;
|
dma_addr_t dma_handle;
|
||||||
|
Reference in New Issue
Block a user