From patchwork Thu Feb 26 13:18:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 45173 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 474E22043C for ; Thu, 26 Feb 2015 13:19:17 +0000 (UTC) Received: by wesk11 with SMTP id k11sf8023591wes.3 for ; Thu, 26 Feb 2015 05:19:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=dhdNYClkTBpBOcWoIY3L22x+KweJvxHWi9Lj6POxRXg=; b=Cx0K1leq0Ephg/HrlESiNKK0pgA8heHTBiw5SO9zTnJJ0HtuLtIoR0OabiQlWfpDyV zc2BEPGU5UIM2Db79mmaLEk6Mi/BceaglX69X22+8lg1Uh0APVfU0CTccH4y+It+BYaH IcHdNINjCWX0OcD7qSbxndvEBIrenUHMPiFzMOR2fB4vt9qCy84JwBIsjRpXt6/Aukf0 ohOKEYeNES48Vq2IOk4hImkIrBr2jfxo7TRwtwib7phA8d+JCmUm7VqslceXdcOEAsv9 LI/HP7eocQxKRsKaPgvJaZPWVIpXsF7BX964k4sQUYzt1fSdUBhoZbGj5A+rLowKOYHZ 2o7Q== X-Gm-Message-State: ALoCoQnp/JJeROtxQKd6LJaEtW7osZclmv0IbBhV1lAQ3pVQljCjv2QKFhaFTmB9mybY4dWmWfe8 X-Received: by 10.180.8.67 with SMTP id p3mr3689903wia.7.1424956756512; Thu, 26 Feb 2015 05:19:16 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.203.171 with SMTP id kr11ls31350lac.36.gmail; Thu, 26 Feb 2015 05:19:16 -0800 (PST) X-Received: by 10.112.42.225 with SMTP id r1mr7384538lbl.72.1424956756290; Thu, 26 Feb 2015 05:19:16 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id m5si504447laj.177.2015.02.26.05.19.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 05:19:16 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labhs14 with SMTP id hs14so10874365lab.1 for ; Thu, 26 Feb 2015 05:19:16 -0800 (PST) X-Received: by 10.152.43.51 with SMTP id t19mr7314478lal.73.1424956756015; Thu, 26 Feb 2015 05:19:16 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp3293865lbj; Thu, 26 Feb 2015 05:19:15 -0800 (PST) X-Received: by 10.170.185.6 with SMTP id b6mr7524343yke.25.1424956754696; Thu, 26 Feb 2015 05:19:14 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id h6si619819qaz.110.2015.02.26.05.19.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 05:19:14 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQyLO-0008Pd-KA; Thu, 26 Feb 2015 13:19:10 +0000 Received: from mail-lb0-f171.google.com ([209.85.217.171]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQyLJ-0008NZ-1U for lng-odp@lists.linaro.org; Thu, 26 Feb 2015 13:19:05 +0000 Received: by lbvp9 with SMTP id p9so10748673lbv.0 for ; Thu, 26 Feb 2015 05:18:59 -0800 (PST) X-Received: by 10.152.37.69 with SMTP id w5mr7468732laj.15.1424956738692; Thu, 26 Feb 2015 05:18:58 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id ej11sm190742lad.22.2015.02.26.05.18.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Feb 2015 05:18:57 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 26 Feb 2015 14:18:00 +0100 Message-Id: <1424956680-24758-1-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 X-Topics: crypto patch Subject: [lng-odp] [PATCH] linux-generic: odp_crypto: use intptr_t to find the pointer X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 commit 4a4804a breaks on ARM 32-bit cross compile. odp_crypto.c: In function 'odp_crypto_session_destroy': odp_crypto.c:364:12: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] generic = (odp_crypto_generic_session_t *)session; Signed-off-by: Anders Roxell --- platform/linux-generic/odp_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 0c38263..2f13e2f 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -361,7 +361,7 @@ int odp_crypto_session_destroy(odp_crypto_session_t session) { odp_crypto_generic_session_t *generic; - generic = (odp_crypto_generic_session_t *)session; + generic = (odp_crypto_generic_session_t *)(intptr_t)session; memset(generic, 0, sizeof(*generic)); free_session(generic); return 0;