summaryrefslogtreecommitdiff
path: root/net/smc
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2020-05-05 15:01:21 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-05 12:56:52 -0700
commitfea805237dd984a71a2c5e5cf074a15505d5ba31 (patch)
tree34b0b5573b8b65e8b4d8b5635723acb127d0f90d /net/smc
parent0a99be434d145079d0509473b19e840629d851c2 (diff)
net/smc: remove unused inline function smc_curs_read
commit bac6de7b6370 ("net/smc: eliminate cursor read and write calls") left behind this. Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
-rw-r--r--net/smc/smc_cdc.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/net/smc/smc_cdc.h b/net/smc/smc_cdc.h
index 9cfabc9af120..2ddcc5fb5ceb 100644
--- a/net/smc/smc_cdc.h
+++ b/net/smc/smc_cdc.h
@@ -97,23 +97,6 @@ static inline void smc_curs_add(int size, union smc_host_cursor *curs,
}
}
-/* SMC cursors are 8 bytes long and require atomic reading and writing */
-static inline u64 smc_curs_read(union smc_host_cursor *curs,
- struct smc_connection *conn)
-{
-#ifndef KERNEL_HAS_ATOMIC64
- unsigned long flags;
- u64 ret;
-
- spin_lock_irqsave(&conn->acurs_lock, flags);
- ret = curs->acurs;
- spin_unlock_irqrestore(&conn->acurs_lock, flags);
- return ret;
-#else
- return atomic64_read(&curs->acurs);
-#endif
-}
-
/* Copy cursor src into tgt */
static inline void smc_curs_copy(union smc_host_cursor *tgt,
union smc_host_cursor *src,