patman: Modify functional tests for new behavior
[oweals/u-boot.git] / tools / patman / test / 0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_mem_siz.patch
1 From 5ab48490f03051875ab13d288a4bf32b507d76fd Mon Sep 17 00:00:00 2001
2 From: Simon Glass <sjg@chromium.org>
3 Date: Sat, 15 Apr 2017 15:39:08 -0600
4 Subject: [RFC 2/2] fdt: Correct cast for sandbox in fdtdec_setup_mem_size_base()
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This gives a warning with some native compilers:
10
11 lib/fdtdec.c:1203:8: warning: format ‘%llx’ expects argument of type
12    ‘long long unsigned int’, but argument 3 has type
13    ‘long unsigned int’ [-Wformat=]
14
15 Fix it with a cast.
16
17 Signed-off-by: Simon Glass <sjg@chromium.org>
18 Series-to: u-boot
19 Series-prefix: RFC
20 Series-cc: Stefan Brüns <stefan.bruens@rwth-aachen.de>
21 Cover-letter-cc: Lord Mëlchett <clergy@palace.gov>
22 Series-version: 3
23 Patch-cc: fred
24 Series-process-log: sort, uniq
25 Series-changes: 4
26 - Some changes
27 - Multi
28   line
29   change
30
31 Commit-changes: 2
32 - Changes only for this commit
33
34 Cover-changes: 4
35 - Some notes for the cover letter
36
37 Cover-letter:
38 test: A test patch series
39 This is a test of how the cover
40 letter
41 works
42 END
43 ---
44  fs/fat/fat.c                | 1 +
45  lib/efi_loader/efi_memory.c | 1 +
46  lib/fdtdec.c                | 3 ++-
47  3 files changed, 4 insertions(+), 1 deletion(-)
48
49 diff --git a/fs/fat/fat.c b/fs/fat/fat.c
50 index a71bad1..ba169dc 100644
51 --- a/fs/fat/fat.c
52 +++ b/fs/fat/fat.c
53 @@ -1,3 +1,4 @@
54 +
55  /*
56   * fat.c
57   *
58 diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c
59 index db2ae19..05f75d1 100644
60 --- a/lib/efi_loader/efi_memory.c
61 +++ b/lib/efi_loader/efi_memory.c
62 @@ -1,3 +1,4 @@
63 +
64  /*
65   *  EFI application memory management
66   *
67 diff --git a/lib/fdtdec.c b/lib/fdtdec.c
68 index c072e54..942244f 100644
69 --- a/lib/fdtdec.c
70 +++ b/lib/fdtdec.c
71 @@ -1200,7 +1200,8 @@ int fdtdec_setup_mem_size_base(void)
72         }
73  
74         gd->ram_size = (phys_size_t)(res.end - res.start + 1);
75 -       debug("%s: Initial DRAM size %llx\n", __func__, (u64)gd->ram_size);
76 +       debug("%s: Initial DRAM size %llx\n", __func__,
77 +             (unsigned long long)gd->ram_size);
78  
79         return 0;
80  }
81 -- 
82 2.7.4
83