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