From patchwork Mon Apr 10 13:28:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Eremin-Solenikov X-Patchwork-Id: 97165 Delivered-To: patch@linaro.org Received: by 10.182.246.10 with SMTP id xs10csp1355822obc; Mon, 10 Apr 2017 06:28:23 -0700 (PDT) X-Received: by 10.36.215.129 with SMTP id y123mr11845657itg.17.1491830903048; Mon, 10 Apr 2017 06:28:23 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id a19si7726295itc.97.2017.04.10.06.28.22; Mon, 10 Apr 2017 06:28:23 -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 sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 90BB463A32; Mon, 10 Apr 2017 13:28:22 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6E0F663A32; Mon, 10 Apr 2017 13:28:20 +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 9A52263A2C; Mon, 10 Apr 2017 13:28:18 +0000 (UTC) Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by lists.linaro.org (Postfix) with ESMTPS id 523F1635B7 for ; Mon, 10 Apr 2017 13:28:16 +0000 (UTC) Received: by mail-lf0-f46.google.com with SMTP id s141so35063076lfe.3 for ; Mon, 10 Apr 2017 06:28:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=rmQ1sFJSeoNA7URQxie2j1JxOYSDcBmqE9sYgfETF/A=; b=bxhMGoEiqTeTJTpdwxMrCLcflyG5o0iWjYCO0giRkRKeiMl36+LkAyokc/8ow4tQwG qY5jn20zXQQ+L/3oT5ugDVSjgVhGkjG90RIwZspRfnt3OB7w3wtgHlXquH0IHaBfI1xJ 5XqcEKiPxUsM8IRkGfd3Hz7Y6qtCx4EtYtxIJc7DhKYRoJto+3sbmvabkVvOkAJ5hRrI XZWhM9IYSaWUCqMVls4c2PDmLAGrPnXojiALbzHIEGitSZsVTIf0FE7ZWkarYbRa7POY h2dpJfT69AzOLMqyPzbAXmVr2HkNGKoznoDqZIhaSkI4VDnMUt5QOHh7ssonX3fOGLqr OFxw== X-Gm-Message-State: AFeK/H0aswCWKCJpByH2c6YxMDNK0xLgorifcjz3K3shJU+aQJ78OLzTkix1J2HBNSpg4+0OIP63Gwxy X-Received: by 10.46.80.21 with SMTP id e21mr13773065ljb.105.1491830894869; Mon, 10 Apr 2017 06:28:14 -0700 (PDT) Received: from forlindon.lumag.auriga.ru ([94.25.228.46]) by smtp.gmail.com with ESMTPSA id i1sm2901803ljd.47.2017.04.10.06.28.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Apr 2017 06:28:14 -0700 (PDT) From: Dmitry Eremin-Solenikov To: lng-odp@lists.linaro.org Date: Mon, 10 Apr 2017 16:28:10 +0300 Message-Id: <20170410132811.19300-2-dmitry.ereminsolenikov@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170410132811.19300-1-dmitry.ereminsolenikov@linaro.org> References: <20170410132811.19300-1-dmitry.ereminsolenikov@linaro.org> Subject: [lng-odp] [PATCH 2/3] api: ipsec: mark odp_ipsec_sa_create argument as constant 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: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" odp_ipsec_sa_create() should not change its argument. Thus mark it as a constant. Signed-off-by: Dmitry Eremin-Solenikov --- include/odp/api/spec/ipsec.h | 2 +- platform/linux-generic/odp_ipsec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.11.0 diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 56553519..33a84eef 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -785,7 +785,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param); * * @see odp_ipsec_sa_param_init() */ -odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param); +odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param); /** * Disable IPSEC SA diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 5eb1be30..10918dfb 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -52,7 +52,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param) memset(param, 0, sizeof(odp_ipsec_sa_param_t)); } -odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param) +odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param) { (void)param;