diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2016-05-23 19:23:39 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-23 20:04:14 -0400 |
commit | 0c6c44cb9f93f7c0ad803b41ae7c0b08cf6942e2 (patch) | |
tree | 4647ab990148950182368c90f9142be75153e6c9 /fs/nilfs2/sysfs.c | |
parent | 7592ecde65f908f082cfd3440888fd6ae99f4cbb (diff) |
nilfs2: avoid bare use of 'unsigned'
This fixes checkpatch.pl warning "WARNING: Prefer 'unsigned int' to
bare use of 'unsigned'".
Link: http://lkml.kernel.org/r/1462886671-3521-5-git-send-email-konishi.ryusuke@lab.ntt.co.jp
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/sysfs.c')
-rw-r--r-- | fs/nilfs2/sysfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nilfs2/sysfs.c b/fs/nilfs2/sysfs.c index 3e7d85335adf..8ffa42b704d8 100644 --- a/fs/nilfs2/sysfs.c +++ b/fs/nilfs2/sysfs.c | |||
@@ -756,7 +756,7 @@ nilfs_superblock_sb_write_count_show(struct nilfs_superblock_attr *attr, | |||
756 | struct the_nilfs *nilfs, | 756 | struct the_nilfs *nilfs, |
757 | char *buf) | 757 | char *buf) |
758 | { | 758 | { |
759 | unsigned sbwcount; | 759 | unsigned int sbwcount; |
760 | 760 | ||
761 | down_read(&nilfs->ns_sem); | 761 | down_read(&nilfs->ns_sem); |
762 | sbwcount = nilfs->ns_sbwcount; | 762 | sbwcount = nilfs->ns_sbwcount; |
@@ -770,7 +770,7 @@ nilfs_superblock_sb_update_frequency_show(struct nilfs_superblock_attr *attr, | |||
770 | struct the_nilfs *nilfs, | 770 | struct the_nilfs *nilfs, |
771 | char *buf) | 771 | char *buf) |
772 | { | 772 | { |
773 | unsigned sb_update_freq; | 773 | unsigned int sb_update_freq; |
774 | 774 | ||
775 | down_read(&nilfs->ns_sem); | 775 | down_read(&nilfs->ns_sem); |
776 | sb_update_freq = nilfs->ns_sb_update_freq; | 776 | sb_update_freq = nilfs->ns_sb_update_freq; |
@@ -784,7 +784,7 @@ nilfs_superblock_sb_update_frequency_store(struct nilfs_superblock_attr *attr, | |||
784 | struct the_nilfs *nilfs, | 784 | struct the_nilfs *nilfs, |
785 | const char *buf, size_t count) | 785 | const char *buf, size_t count) |
786 | { | 786 | { |
787 | unsigned val; | 787 | unsigned int val; |
788 | int err; | 788 | int err; |
789 | 789 | ||
790 | err = kstrtouint(skip_spaces(buf), 0, &val); | 790 | err = kstrtouint(skip_spaces(buf), 0, &val); |