Whamcloud - gitweb
LU-8066 ldlm: match store macro prototype 57/34557/2
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 26 Dec 2018 09:18:45 +0000 (02:18 -0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2019 06:32:09 +0000 (06:32 +0000)
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 <adilger@whamcloud.com>
Change-Id: I41012a66507a048c63bfe6b6e732cf858ba5a5b1
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-on: https://review.whamcloud.com/34557
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_internal.h

index 3b7e55d..0f184e3 100644 (file)
@@ -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);              \