staging/lustre/ldlm: Fix up LDLM_POOL_SYSFS_WRITER*_STORE define
[firefly-linux-kernel-4.4.55.git] / drivers / staging / lustre / lustre / ldlm / ldlm_internal.h
index cf81bdbd57cb1bcb336eb011e5481df58840866b..6601e6b12c32df7c917e07d56c0e716545f39f6d 100644 (file)
@@ -265,7 +265,7 @@ typedef enum ldlm_policy_res ldlm_policy_res_t;
        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);               \
@@ -301,7 +301,7 @@ typedef enum ldlm_policy_res ldlm_policy_res_t;
        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);               \