aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/rtrs/rtrs-srv.h
diff options
context:
space:
mode:
authorMd Haris Iqbal <haris.iqbal@ionos.com>2021-09-22 14:53:28 +0200
committerJason Gunthorpe <jgg@nvidia.com>2021-10-04 16:46:11 -0300
commit80ad07f7e2bfab79e6209c7b8ce4665ffd9f25ed (patch)
tree5953f1f633ea074d8ea4b11e29fe9dcda981b1f6 /drivers/infiniband/ulp/rtrs/rtrs-srv.h
parentRDMA/rtrs: Use sysfs_emit instead of s*printf function for sysfs show (diff)
downloadlinux-dev-80ad07f7e2bfab79e6209c7b8ce4665ffd9f25ed.tar.xz
linux-dev-80ad07f7e2bfab79e6209c7b8ce4665ffd9f25ed.zip
RDMA/rtrs: Remove len parameter from helper print functions of sysfs
Since we have changed all sysfs show functions to use sysfs_emit, we do not require the len (PAGE_SIZE) in our helper print functions. So remove it from the function parameter. Link: https://lore.kernel.org/r/20210922125333.351454-3-haris.iqbal@ionos.com Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com> Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to '')
-rw-r--r--drivers/infiniband/ulp/rtrs/rtrs-srv.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/rtrs/rtrs-srv.h b/drivers/infiniband/ulp/rtrs/rtrs-srv.h
index 9d8d2a91a235..7d403c12faf3 100644
--- a/drivers/infiniband/ulp/rtrs/rtrs-srv.h
+++ b/drivers/infiniband/ulp/rtrs/rtrs-srv.h
@@ -136,8 +136,7 @@ static inline void rtrs_srv_update_rdma_stats(struct rtrs_srv_stats *s,
/* functions which are implemented in rtrs-srv-stats.c */
int rtrs_srv_reset_rdma_stats(struct rtrs_srv_stats *stats, bool enable);
-ssize_t rtrs_srv_stats_rdma_to_str(struct rtrs_srv_stats *stats,
- char *page, size_t len);
+ssize_t rtrs_srv_stats_rdma_to_str(struct rtrs_srv_stats *stats, char *page);
int rtrs_srv_reset_all_stats(struct rtrs_srv_stats *stats, bool enable);
ssize_t rtrs_srv_reset_all_help(struct rtrs_srv_stats *stats,
char *page, size_t len);