xlat_tables_v2: fix signed/unsigned comparisons
authorVarun Wadekar <vwadekar@nvidia.com>
Fri, 16 Jun 2017 21:15:34 +0000 (14:15 -0700)
committerDavid Cunado <david.cunado@arm.com>
Tue, 20 Jun 2017 13:39:34 +0000 (14:39 +0100)
This patch changes input param level in xlat_tables_print_internal() to
an unsigned int to fix the signed/unsigned comparison warnings. The
compiler complains about these warnings, thus halting the build flow
for Tegra platforms.

Change-Id: Ieccc262a63daca7a26ca6a14d81466397af8b89f
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Signed-off-by: David Cunado <david.cunado@arm.com>
lib/xlat_tables_v2/xlat_tables_internal.c

index e1a252be53da795a5ff90b597ce985f6b797f9f4..f60d78c10ce06443fc8171e410f06b17dd7fff64 100644 (file)
@@ -953,7 +953,7 @@ static const char *invalid_descriptors_ommited =
  */
 static void xlat_tables_print_internal(const uintptr_t table_base_va,
                uint64_t *const table_base, const int table_entries,
-               const int level, const uint64_t execute_never_mask)
+               const unsigned int level, const uint64_t execute_never_mask)
 {
        assert(level <= XLAT_TABLE_LEVEL_MAX);