From: Andreas Dilger Date: Wed, 26 Dec 2018 09:18:45 +0000 (-0700) Subject: LU-8066 ldlm: match store macro prototype X-Git-Tag: 2.12.51~11 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=3bbbe70d099466079e4c8c31291bcbe2a90da58c 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") Signed-off-by: Andreas Dilger Change-Id: I41012a66507a048c63bfe6b6e732cf858ba5a5b1 Reviewed-on: https://review.whamcloud.com/33920 Reviewed-by: James Simmons Reviewed-by: Ben Evans Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- 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); \