From patchwork Mon Dec 29 14:32:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 42642 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 82DD3246A4 for ; Mon, 29 Dec 2014 14:33:08 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id f15sf8218039lbj.7 for ; Mon, 29 Dec 2014 06:33:07 -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=eSkqiylGD7W0Bc25WJXlqSt0lY56Gzgx0RF1AS0Kj9w=; b=YN4QMuMqvXYictpT2fovlU9ibQiroVSZK0qZ9iCFx69T588mZegAPCGaVIHxqgYfMk 0fYlg1mqokea1p9m18KSOKlxJTEevG36PTYyVwop8zIuAVAXJVdmpwzvW+RC0l/UnhBx E3vrZ85nCJGabm5x2vyZUHblvMcVTgmBjaNOoLm6O80BVnhjCrCEyRPOLzav0IeaaQ6S 3ym8Nv65aqnMda5mztRuv3vKwBfiutrRx14rGDndgyL3EalKUIWHTchBWsB8uEUdyVZQ f3akQzsv9k1bdcHczFDyn9Lyp72uIvHZPFoM/cZwq277ksxft6/9sI1+rBYShabrucmK 0dLQ== X-Gm-Message-State: ALoCoQkvAahry0gzSwOEXJfJDnFPzKDSzsZaRTh3jh81MepSk0JE1wEPmgbwP7vsA75xU0QZwlW8 X-Received: by 10.194.71.207 with SMTP id x15mr312491wju.3.1419863587466; Mon, 29 Dec 2014 06:33:07 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.232 with SMTP id m8ls1939128laa.45.gmail; Mon, 29 Dec 2014 06:33:07 -0800 (PST) X-Received: by 10.152.25.194 with SMTP id e2mr57187397lag.22.1419863587302; Mon, 29 Dec 2014 06:33:07 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id xb8si39656755lbb.109.2014.12.29.06.33.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Dec 2014 06:33:07 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id f15so12241298lbj.27 for ; Mon, 29 Dec 2014 06:33:07 -0800 (PST) X-Received: by 10.152.115.146 with SMTP id jo18mr50838074lab.9.1419863587161; Mon, 29 Dec 2014 06:33:07 -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.142.69 with SMTP id ru5csp2799464lbb; Mon, 29 Dec 2014 06:33:06 -0800 (PST) X-Received: by 10.224.131.70 with SMTP id w6mr32687776qas.78.1419863585406; Mon, 29 Dec 2014 06:33:05 -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 45si40330747qgt.120.2014.12.29.06.33.04 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 29 Dec 2014 06:33:05 -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 1Y5bNW-0005xE-9X; Mon, 29 Dec 2014 14:33:02 +0000 Received: from mail-qc0-f179.google.com ([209.85.216.179]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Y5bNP-0005x7-ND for lng-odp@lists.linaro.org; Mon, 29 Dec 2014 14:32:55 +0000 Received: by mail-qc0-f179.google.com with SMTP id c9so9582526qcz.10 for ; Mon, 29 Dec 2014 06:32:50 -0800 (PST) X-Received: by 10.224.137.2 with SMTP id u2mr90896820qat.102.1419863570441; Mon, 29 Dec 2014 06:32:50 -0800 (PST) Received: from localhost.localdomain ([98.221.136.245]) by mx.google.com with ESMTPSA id 4sm16219148qgh.22.2014.12.29.06.32.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Dec 2014 06:32:50 -0800 (PST) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 29 Dec 2014 09:32:44 -0500 Message-Id: <1419863564-4130-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: patch Subject: [lng-odp] [PATCH v2] linux-generic: init: add call to odp_shm_init_local 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: mike.holmes@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.217.182 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 odp_init_local did not call shm init. Signed-off-by: Mike Holmes Reviewed-by: Maxim Uvarov --- v2 improve description platform/linux-generic/odp_init.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c index 7210430..4d0aa07 100644 --- a/platform/linux-generic/odp_init.c +++ b/platform/linux-generic/odp_init.c @@ -70,6 +70,11 @@ int odp_term_global(void) int odp_init_local(void) { + if (odp_shm_init_local()) { + ODP_ERR("ODP shm local init failed.\n"); + return -1; + } + if (odp_thread_init_local()) { ODP_ERR("ODP thread local init failed.\n"); return -1;