From: Oleg Drokin Date: Sun, 31 May 2015 06:47:22 +0000 (-0400) Subject: staging/lustre/ldlm: Fix up LDLM_POOL_SYSFS_WRITER*_STORE define X-Git-Tag: v4.2-rc1~88^2~383 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1185aaf55c20a1dfea8b7362e954da55e0e84fa7;p=karo-tx-linux.git staging/lustre/ldlm: Fix up LDLM_POOL_SYSFS_WRITER*_STORE define The store method defined by LDLM_POOL_SYSFS_WRITER_STORE and LDLM_POOL_SYSFS_WRITER_NOLOCK_STORE defines should use size_t count, not unsigned long. This produced a warning on i386 (and other 32bit architectures too, I guess) where unsigned long is not 32 bit. Reported by kbuild test bot. Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_internal.h b/drivers/staging/lustre/lustre/ldlm/ldlm_internal.h index cf81bdbd57cb..6601e6b12c32 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_internal.h +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_internal.h @@ -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); \