Skip to content

Commit

Permalink
ext4: fix 64-bit number truncation warning
Browse files Browse the repository at this point in the history
'0x7FDEADBEEF' will be truncated to 32-bit number under unicore32. Need
append 'ULL' for it.

The related warning (with allmodconfig under unicore32):

    CC [M]  fs/ext4/extents_status.o
  fs/ext4/extents_status.c: In function "__es_remove_extent":
  fs/ext4/extents_status.c:813: warning: integer constant is too large for "long" type

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Chen-Gang authored and tytso committed Apr 7, 2014
1 parent d15e031 commit 666525d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext4/extents_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ static int __es_remove_extent(struct inode *inode, ext4_lblk_t lblk,

newes.es_lblk = end + 1;
newes.es_len = len2;
block = 0x7FDEADBEEF;
block = 0x7FDEADBEEFULL;
if (ext4_es_is_written(&orig_es) ||
ext4_es_is_unwritten(&orig_es))
block = ext4_es_pblock(&orig_es) +
Expand Down

0 comments on commit 666525d

Please sign in to comment.