]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: Fix "unsigned"->"unsigned int"
authorSabin Mihai Rapan <sabin.rapan@gmail.com>
Mon, 21 May 2018 17:34:29 +0000 (19:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 May 2018 16:40:56 +0000 (18:40 +0200)
This patch fixes the checkpatch.pl warning:

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Sabin Mihai Rapan <sabin.rapan@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/uapi/linux/lustre/lustre_fiemap.h

index f5214dc33c60e166fc8e740a6584ae8615e09301..d375a476f5eadb4a2b180f13d8c23513df32fdfd 100644 (file)
@@ -51,7 +51,7 @@ static inline size_t fiemap_count_to_size(size_t extent_count)
                                       sizeof(struct fiemap_extent);
 }
 
-static inline unsigned fiemap_size_to_count(size_t array_size)
+static inline unsigned int fiemap_size_to_count(size_t array_size)
 {
        return (array_size - sizeof(struct fiemap)) /
                sizeof(struct fiemap_extent);