From patchwork Mon Nov 10 15:30:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Badicioiu X-Patchwork-Id: 40502 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 61E0A218DE for ; Mon, 10 Nov 2014 15:33:34 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id w7sf4199136lbi.4 for ; Mon, 10 Nov 2014 07:33:33 -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 :mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=y+10FXjceZeuNqBS8NVz6x2+agbHajIQYxtElWnEoS4=; b=begq3Y1bmDA5LTsithjh57O3qp/n5ClhNz3dIKa6eMKEqtdjnnMSYpIYAgBRP97+Od tKllnhK6/hKIWQaqxZnGxKKpYSinUBwZEH9pOfi13BWaeQ/XYGKyCHkroa60Z4XkrDcC WD9cSEeR5Y7Gn6SrqNk9qFIgDkwAHPjeXZuYYdKXYMBxUhwfw56tHenJCbWstEnprD2j u4tT4YHhaVefqqaK2hNzSifvDemcEMjtYahbW86WYlvMLCSRabr2VvyOGUDBfQ1eskFs pRAfqiCi2FV3lS7ia+03R1LjbhE2mecMKvZ8An68n4vThRIvTJlil+De9OgMYzSg4Bwe 3p4g== X-Gm-Message-State: ALoCoQkbDHJKGQICBQhRt2EmWZbjSB/e0FYtmcVjhPYy/hEoEVO+dk8FdeosiepFmvSL3Y8pBtYa X-Received: by 10.112.151.38 with SMTP id un6mr1492160lbb.0.1415633613369; Mon, 10 Nov 2014 07:33:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.5.43 with SMTP id cj11ls450267lad.85.gmail; Mon, 10 Nov 2014 07:33:32 -0800 (PST) X-Received: by 10.152.22.135 with SMTP id d7mr29910733laf.46.1415633612877; Mon, 10 Nov 2014 07:33:32 -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 w2si27465506law.68.2014.11.10.07.33.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Nov 2014 07:33:32 -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 f15so6528705lbj.41 for ; Mon, 10 Nov 2014 07:33:32 -0800 (PST) X-Received: by 10.112.235.196 with SMTP id uo4mr20657524lbc.66.1415633612753; Mon, 10 Nov 2014 07:33:32 -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.184.201 with SMTP id ew9csp108266lbc; Mon, 10 Nov 2014 07:33:31 -0800 (PST) X-Received: by 10.140.37.71 with SMTP id q65mr41836855qgq.42.1415633611130; Mon, 10 Nov 2014 07:33:31 -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 s11si31615146qge.11.2014.11.10.07.33.30 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Nov 2014 07:33:31 -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 1Xnqy9-0002H4-6f; Mon, 10 Nov 2014 15:33:29 +0000 Received: from mail-by2on0058.outbound.protection.outlook.com ([207.46.100.58] helo=na01-by2-obe.outbound.protection.outlook.com) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1Xnqy0-0002Gj-GG for lng-odp@lists.linaro.org; Mon, 10 Nov 2014 15:33:20 +0000 Received: from CO2PR03CA0039.namprd03.prod.outlook.com (10.141.194.166) by CO2PR03MB1020.namprd03.prod.outlook.com (10.141.186.148) with Microsoft SMTP Server (TLS) id 15.1.11.14; Mon, 10 Nov 2014 15:33:13 +0000 Received: from BY2FFO11FD008.protection.gbl (2a01:111:f400:7c0c::130) by CO2PR03CA0039.outlook.office365.com (2a01:111:e400:1414::38) with Microsoft SMTP Server (TLS) id 15.1.16.15 via Frontend Transport; Mon, 10 Nov 2014 15:33:13 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD008.mail.protection.outlook.com (10.1.14.159) with Microsoft SMTP Server (TLS) id 15.1.6.13 via Frontend Transport; Mon, 10 Nov 2014 15:33:13 +0000 Received: from fsr-fed1364-15.ea.freescale.net (fsr-fed1364-15.ea.freescale.net [10.171.81.144]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id sAAFXBVk019567; Mon, 10 Nov 2014 08:33:11 -0700 From: To: Date: Mon, 10 Nov 2014 17:30:33 +0200 Message-ID: <1415633433-30247-1-git-send-email-alexandru.badicioiu@linaro.org> X-Mailer: git-send-email 1.7.3.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 130601071935635684; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(448002)(199003)(189002)(62966003)(36756003)(31966008)(107046002)(33646002)(104166001)(84676001)(85326001)(86362001)(50986999)(110136001)(46102003)(97736003)(120916001)(2351001)(95666004)(229853001)(106466001)(99396003)(104016003)(64706001)(20776003)(77156002)(47776003)(87286001)(21056001)(88136002)(87936001)(50226001)(4396001)(68736004)(19580395003)(50466002)(92726001)(102836001)(19580405001)(6806004)(86152002)(44976005)(92566001)(89996001)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB1020; H:tx30smr01.am.freescale.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CO2PR03MB1020; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA: BCL:0;PCL:0;RULEID:;SRVR:CO2PR03MB1020; X-Forefront-PRVS: 039178EF4A Received-SPF: PermError (protection.outlook.com: domain of linaro.org used an invalid SPF mechanism) X-Exchange-Antispam-Report-CFA: BCL:0; PCL:0; RULEID:(402001)(401002)(400003); SRVR:CO2PR03MB1020; X-Topics: crypto patch Subject: [lng-odp] [PATCH v3] odp_crypto.c : Add stubs for missing functions 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: , 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: alexandru.badicioiu@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 From: Alexandru Badicioiu This patch is required by crypto unit testing. Signed-off-by: Alexandru Badicioiu --- platform/linux-generic/odp_crypto.c | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 1475437..b9dd3e7 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -467,3 +468,28 @@ odp_crypto_get_ses_create_compl_session(odp_buffer_t completion_event, result = odp_buffer_addr(completion_event); *session = result->session; } + +void +odp_crypto_set_operation_compl_ctx(odp_buffer_t completion_event, + void *ctx) +{ + (void)completion_event; + (void)ctx; + ODP_UNIMPLEMENTED(); +} + +void +*odp_crypto_get_operation_compl_ctx(odp_buffer_t completion_event) +{ + (void)completion_event; + ODP_UNIMPLEMENTED(); + return NULL; +} + +odp_packet_t +odp_crypto_get_operation_compl_packet(odp_buffer_t completion_event) +{ + (void)completion_event; + ODP_UNIMPLEMENTED(); + return ODP_PACKET_INVALID; +}