add patch disallow-all-fallocate-operation-on-active-swapfile
[ext4-patch-queue.git] / fix-64bit-number-truncation-warning
blob8422155316bf8cb2f6911233e006cee51525496e
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
6 append 'ULL' for it.
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>
16 ---
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;
27                         newes.es_len = len2;
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) +
33 -- 
34 1.7.9.5