mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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 <green@linuxhacker.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f6758e7961
commit
1185aaf55c
1 changed files with 2 additions and 2 deletions
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue