From 23f0c61e945e42c8d3ea8bd2fefb7c94f02abc72 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Wed, 26 Dec 2018 02:18:45 -0700 Subject: [PATCH] LU-8066 ldlm: match store macro prototype Use size_t in the LDLM_POOL_SYSFS_WRITER_STORE() function declaration to match the struct lustre_attr (*store) function prototype. Test-Paramters: trivial Fixes: 1196bd199e7 ("LU-8066 ldlm: move /proc/fs/lustre/ldlm to /sys") Lustre-change: https://review.whamcloud.com/33920 Lustre-commit: 3bbbe70d099466079e4c8c31291bcbe2a90da58c Signed-off-by: Andreas Dilger Change-Id: I41012a66507a048c63bfe6b6e732cf858ba5a5b1 Reviewed-by: James Simmons Reviewed-by: Ben Evans Reviewed-on: https://review.whamcloud.com/34557 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Minh Diep Reviewed-by: Oleg Drokin --- lustre/ldlm/ldlm_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/ldlm/ldlm_internal.h b/lustre/ldlm/ldlm_internal.h index 3b7e55d..0f184e3 100644 --- a/lustre/ldlm/ldlm_internal.h +++ b/lustre/ldlm/ldlm_internal.h @@ -288,7 +288,7 @@ enum ldlm_policy_res { static ssize_t var##_store(struct kobject *kobj, \ struct attribute *attr, \ const char *buffer, \ - unsigned long count) \ + size_t count) \ { \ struct ldlm_pool *pl = container_of(kobj, struct ldlm_pool,\ pl_kobj); \ @@ -324,7 +324,7 @@ enum ldlm_policy_res { static ssize_t var##_store(struct kobject *kobj, \ struct attribute *attr, \ const char *buffer, \ - unsigned long count) \ + size_t count) \ { \ struct ldlm_pool *pl = container_of(kobj, struct ldlm_pool,\ pl_kobj); \ -- 1.8.3.1