[PATCH 4/4] staging: lustre: fixed signedness of obdclass

From: Stefano Manni
Date: Wed Nov 22 2017 - 14:39:22 EST


sparse warning on obd_mount.c:
warning: incorrect type in argument 5 (different signedness)
expected unsigned int [usertype] *vallen
got int *<noident>

Signed-off-by: Stefano Manni <stefano.manni@xxxxxxxxx>
---
drivers/staging/lustre/lustre/obdclass/obd_mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/obdclass/obd_mount.c b/drivers/staging/lustre/lustre/obdclass/obd_mount.c
index 2a79a22..b0af897 100644
--- a/drivers/staging/lustre/lustre/obdclass/obd_mount.c
+++ b/drivers/staging/lustre/lustre/obdclass/obd_mount.c
@@ -273,7 +273,7 @@ int lustre_start_mgc(struct super_block *sb)
/* IR compatibility check, only for clients */
if (lmd_is_client(lsi->lsi_lmd)) {
int has_ir;
- int vallen = sizeof(*data);
+ unsigned int vallen = sizeof(*data);
__u32 *flags = &lsi->lsi_lmd->lmd_flags;

rc = obd_get_info(NULL, obd->obd_self_export,
--
2.5.5