From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id DB71BC33A for ; Fri, 5 Feb 2016 18:08:16 +0100 (CET) Received: by mail-wm0-f53.google.com with SMTP id r129so35775286wmr.0 for ; Fri, 05 Feb 2016 09:08:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=97gWsRf843saBeNq9h1/7X5navY7M6zT8MNqJT3Q5b8=; b=vktmtT57ZCA9Yvbo0Ai7FIm7JnnPGZ244iWyV+zRXNGO7pBcY7Po4W/fg+s6YQvfP5 U38ew3nSSM+6cayXl9JrhceQRDXe392Pfr1BbSIX5F486+dsMa91cvAjOlKXLUiURAxy 0fz8j5Hl9BPYLvhl2ejzj7TbmC6u/FS1kQJzy0UG7QNliLazzziN1n9gVG9yybgHDwNK oiuP6+XwqF7fh7P2Rm3APSHgPQJwywvXTQzknD9BNVzCErtYInPhf02Zqzw3YEVnd/AD zY6UJk9XrIf1//DeKxY5wBIXU3cl3J3lZiZLVHtbhJFC4ECbAYB4t4Lb0TEqCxHcgREK 8udw== 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:mime-version:content-type:content-transfer-encoding; bh=97gWsRf843saBeNq9h1/7X5navY7M6zT8MNqJT3Q5b8=; b=F2zl6u9I1Hx+pt/6+C1aorrBGZtK1l4YzrKJ7PgJ6Isb1UwsSn2yb1eiYA6U5wRmN5 DktcBGjwtPMfDjdWeXmxnvyP5tlIIsaqIrxg1DZtbJ7SXZGqmhN9DHUwiV5BeZuiuqqp 2NEGaYYnbVBXeXfz4sdZmu3QaDNEdNu2ZNqbNuILAUrqilVSsaxHmGWWxOwYRhNMTsXR HOxHS5wYCGfSSz3kR11G3IiTdWgbPi6+DDMr5T+jBwdS2ZfqIAN0FaKKX7MA7h7iVvmG zbzZNaQoAvsalJz+w1Eox+vLsA/+4cT/DLmzCTqmYxqEQB1WZdpaA0t3kq70L+qDBqMM fOtQ== X-Gm-Message-State: AG10YOSz0O6UrPYcahiKWepei1dIis4rGZ6dhkX8b7FoPD4MZehTyzca5eWc1/46eMSvEFua X-Received: by 10.194.249.69 with SMTP id ys5mr14339020wjc.97.1454692096781; Fri, 05 Feb 2016 09:08:16 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id u191sm31712660wmd.4.2016.02.05.09.08.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Feb 2016 09:08:16 -0800 (PST) From: Thomas Monjalon To: pablo.de.lara.guarch@intel.com, declan.doherty@intel.com, remy.horton@intel.com Date: Fri, 5 Feb 2016 18:06:08 +0100 Message-Id: <1454691969-25734-3-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454691969-25734-1-git-send-email-thomas.monjalon@6wind.com> References: <1454691969-25734-1-git-send-email-thomas.monjalon@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH 2/3] hash: fix header for C++ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2016 17:08:17 -0000 When built in a C++ application, the jhash include fails: rte_jhash.h:123:22: error: invalid conversion from ‘const void*’ to ‘const uint32_t*’ [-fpermissive] const uint32_t *k = key; ^ Fixes: 8718219a8737 ("hash: add new jhash functions") Signed-off-by: Thomas Monjalon --- lib/librte_hash/rte_jhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_hash/rte_jhash.h b/lib/librte_hash/rte_jhash.h index 457f225..207478c 100644 --- a/lib/librte_hash/rte_jhash.h +++ b/lib/librte_hash/rte_jhash.h @@ -120,7 +120,7 @@ __rte_jhash_2hashes(const void *key, uint32_t length, uint32_t *pc, * If check_align is not set, first case will be used */ #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) || defined(RTE_ARCH_X86_X32) - const uint32_t *k = key; + const uint32_t *k = (const uint32_t *)key; const uint32_t s = 0; #else const uint32_t *k = (uint32_t *)((uintptr_t)key & (uintptr_t)~3); -- 2.7.0