1 ext4: fix 64-bit number truncation warning
3 From: Chen Gang <gang.chen.5i5j@gmail.com>
5 '0x7FDEADBEEF' will be truncated to 32-bit number under unicore32. Need
8 The related warning (with allmodconfig under unicore32):
10 CC [M] fs/ext4/extents_status.o
11 fs/ext4/extents_status.c: In function "__es_remove_extent":
12 fs/ext4/extents_status.c:813: warning: integer constant is too large for "long" type
14 Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
15 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
17 fs/ext4/extents_status.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c
21 index 0a014a7..0ebc212 100644
22 --- a/fs/ext4/extents_status.c
23 +++ b/fs/ext4/extents_status.c
24 @@ -810,7 +810,7 @@ retry:
26 newes.es_lblk = end + 1;
28 - block = 0x7FDEADBEEF;
29 + block = 0x7FDEADBEEFULL;
30 if (ext4_es_is_written(&orig_es) ||
31 ext4_es_is_unwritten(&orig_es))
32 block = ext4_es_pblock(&orig_es) +