The patch titled Subject: fs/reiserfs/xattr.c: force type conversion in xattr_hash has been added to the -mm tree. Its filename is reiserfs-force-type-conversion-in-xattr_hash.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/reiserfs-force-type-conversion-in-xattr_hash.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/reiserfs-force-type-conversion-in-xattr_hash.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Bharath Vedartham <linux.bhar@xxxxxxxxx> Subject: fs/reiserfs/xattr.c: force type conversion in xattr_hash This patch fixes the sparse warning: fs/reiserfs//xattr.c:453:28: warning: incorrect type in return expression (different base types) fs/reiserfs//xattr.c:453:28: expected unsigned int fs/reiserfs//xattr.c:453:28: got restricted __wsum fs/reiserfs//xattr.c:453:28: warning: incorrect type in return expression (different base types) fs/reiserfs//xattr.c:453:28: expected unsigned int fs/reiserfs//xattr.c:453:28: got restricted __wsum csum_partial returns restricted integer __wsum whereas xattr_hash expects a return type of __u32. Link: http://lkml.kernel.org/r/20190417115200.GA10168@bharath12345-Inspiron-5559 Signed-off-by: Bharath Vedartham <linux.bhar@xxxxxxxxx> Cc: Jann Horn <jannh@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Jeff Mahoney <jeffm@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/reiserfs/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/reiserfs/xattr.c~reiserfs-force-type-conversion-in-xattr_hash +++ a/fs/reiserfs/xattr.c @@ -450,7 +450,7 @@ fail: static inline __u32 xattr_hash(const char *msg, int len) { - return csum_partial(msg, len, 0); + return (__force __u32)csum_partial(msg, len, 0); } int reiserfs_commit_write(struct file *f, struct page *page, _ Patches currently in -mm which might be from linux.bhar@xxxxxxxxx are reiserfs-force-type-conversion-in-xattr_hash.patch