Skip to contentSkip to conversation

fs/block_dev.c: add unsigned declaration to ints that

PATCH New Nicolas Kaiser 1 participant 1 message Dec 6, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/block_dev.c: add unsigned declaration to ints that

add unsigned declaration to ints that can't go negative

---
 block_dev.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/block_dev.c +2 -2
@@ -86,7 +86,7 @@ EXPORT_SYMBOL(set_blocksize);
 
 int sb_set_blocksize(struct super_block *sb, int size)
 {
-	int bits = 9; /* 2^9 = 512 */
+	unsigned int bits = 9; /* 2^9 = 512 */
 
 	if (set_blocksize(sb->s_bdev, size))
 		return 0;
@@ -103,7 +103,7 @@ EXPORT_SYMBOL(sb_set_blocksize);
 
 int sb_min_blocksize(struct super_block *sb, int size)
 {
-	int minsize = bdev_hardsect_size(sb->s_bdev);
+	unsigned int minsize = bdev_hardsect_size(sb->s_bdev);
 	if (size < minsize)
 		size = minsize;
 	return sb_set_blocksize(sb, size);

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors