[nacked] reiserfs-force-type-conversion-in-xattr_hash.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: fs/reiserfs/xattr.c: force type conversion in xattr_hash
has been removed from the -mm tree.  Its filename was
     reiserfs-force-type-conversion-in-xattr_hash.patch

This patch was dropped because it was nacked

------------------------------------------------------
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





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux