* [patch 1/1] fs/ext4/super.c: fix printk warning
@ 2009-12-22 0:25 akpm
2009-12-23 12:49 ` tytso
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-12-22 0:25 UTC (permalink / raw)
To: tytso; +Cc: linux-ext4, akpm
From: Andrew Morton <akpm@linux-foundation.org>
sparc64 allmodconfig:
fs/ext4/super.c: In function `lifetime_write_kbytes_show':
fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4)
fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4)
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/ext4/super.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff -puN fs/ext4/super.c~fs-ext4-superc-fix-printk-warning fs/ext4/super.c
--- a/fs/ext4/super.c~fs-ext4-superc-fix-printk-warning
+++ a/fs/ext4/super.c
@@ -2174,9 +2174,9 @@ static ssize_t lifetime_write_kbytes_sho
struct super_block *sb = sbi->s_buddy_cache->i_sb;
return snprintf(buf, PAGE_SIZE, "%llu\n",
- sbi->s_kbytes_written +
+ (unsigned long long)(sbi->s_kbytes_written +
((part_stat_read(sb->s_bdev->bd_part, sectors[1]) -
- EXT4_SB(sb)->s_sectors_written_start) >> 1));
+ EXT4_SB(sb)->s_sectors_written_start) >> 1)));
}
static ssize_t inode_readahead_blks_store(struct ext4_attr *a,
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 1/1] fs/ext4/super.c: fix printk warning
2009-12-22 0:25 [patch 1/1] fs/ext4/super.c: fix printk warning akpm
@ 2009-12-23 12:49 ` tytso
0 siblings, 0 replies; 2+ messages in thread
From: tytso @ 2009-12-23 12:49 UTC (permalink / raw)
To: akpm; +Cc: linux-ext4
On Mon, Dec 21, 2009 at 04:25:42PM -0800, akpm@linux-foundation.org wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
>
> sparc64 allmodconfig:
>
> fs/ext4/super.c: In function `lifetime_write_kbytes_show':
> fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4)
> fs/ext4/super.c:2174: warning: long long unsigned int format, long unsigned int arg (arg 4)
>
> Cc: Theodore Ts'o <tytso@mit.edu>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Thanks, added to the ext4 tree.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-23 12:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-22 0:25 [patch 1/1] fs/ext4/super.c: fix printk warning akpm
2009-12-23 12:49 ` tytso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).