[1/4] linux-generic: tm: correct cast in hash_dump

Message ID 1464948753-942-2-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov June 3, 2016, 10:12 a.m.
odp_name_table.c:218:22: error: cast to pointer from integer
	of different size [-Werror=int-to-pointer-cast]
     name_tbl_entry = (name_tbl_entry_t *)

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-generic/odp_name_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/platform/linux-generic/odp_name_table.c b/platform/linux-generic/odp_name_table.c
index 14525d1..438630e 100644
--- a/platform/linux-generic/odp_name_table.c
+++ b/platform/linux-generic/odp_name_table.c
@@ -216,7 +216,7 @@  static void secondary_hash_dump(secondary_hash_tbl_t *secondary_hash_tbl)
 		if (hash_tbl_entry != 0) {
 			if ((hash_tbl_entry & 0x3F) != 0) {
 				name_tbl_entry = (name_tbl_entry_t *)
-					(hash_tbl_entry & ~0x3F);
+					(uintptr_t)(hash_tbl_entry & ~0x3F);
 				entry_cnt = hash_tbl_entry & 0x3F;
 				list_cnt  = linked_list_len(name_tbl_entry);
 				if (entry_cnt != list_cnt)