From patchwork Fri Jun 3 10:12:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 69236 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp184231qgf; Fri, 3 Jun 2016 03:14:44 -0700 (PDT) X-Received: by 10.200.55.251 with SMTP id e56mr2399093qtc.42.1464948883989; Fri, 03 Jun 2016 03:14:43 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f68si596579qkj.32.2016.06.03.03.14.43; Fri, 03 Jun 2016 03:14:43 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 9942E617AE; Fri, 3 Jun 2016 10:14:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 29CA5617B2; Fri, 3 Jun 2016 10:13:54 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4C3B361788; Fri, 3 Jun 2016 10:13:51 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by lists.linaro.org (Postfix) with ESMTPS id 3D40161719 for ; Fri, 3 Jun 2016 10:12:41 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id s64so51432823lfe.0 for ; Fri, 03 Jun 2016 03:12:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=szCG9TOWC/bqYgP5UkU7auZHLa5Giaf7oNFfbrAHmyM=; b=U8cE1iD437jV7xcJh79j61TJmZkgIliDuazmPA7bq9uBjM2YvYTOSpDdN7u5XVm2Iw YoyOgVDBJjdwbzqkaEyWIe2Oi36yS3mpKjCUMi177AVv8jXTYsofsEj1glutMOtcHkkQ 5K7Thhv5UIWlpyYXzHvC4qniZb9PbCImkwN16LqbSwMgvNOettEFAHXYlg/4r3fjRmqy PA5hcw8cLr04tp6IQAnbp5UB9ZUQaBffY7JfGKPqxEly1dkZZ85G+px42Earb/xIIx+k B3kaaXNDxRIJV1QBBR5TnLMwIfuj03LyGMZqkeYEhFo6wjYg+HgGZB1w9IeOq56wQabx YOqw== X-Gm-Message-State: ALyK8tL5SSFQ+BQ8jITBIJ23nAbBEsKGpFM+Hqu5meq64dTI5Qifv8Jn7UBFwAetHDZiLg2oGU4= X-Received: by 10.46.1.66 with SMTP id 63mr776373ljb.26.1464948760149; Fri, 03 Jun 2016 03:12:40 -0700 (PDT) Received: from maxim-Aspire-VN7-791.d-systems.local ([185.75.190.112]) by smtp.gmail.com with ESMTPSA id 1sm327712ljf.5.2016.06.03.03.12.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Jun 2016 03:12:39 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Fri, 3 Jun 2016 13:12:30 +0300 Message-Id: <1464948753-942-2-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 2.7.1.250.gff4ea60 In-Reply-To: <1464948753-942-1-git-send-email-maxim.uvarov@linaro.org> References: <1464948753-942-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 1/4] linux-generic: tm: correct cast in hash_dump X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" 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 --- platform/linux-generic/odp_name_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)