[API-NEXT,v2,1/1] api: ipsec: mark odp_ipsec_sa_create argument as constant

Message ID 1494453610-17902-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [API-NEXT,v2,1/1] api: ipsec: mark odp_ipsec_sa_create argument as constant
Related show

Commit Message

Github ODP bot May 10, 2017, 10 p.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


odp_ipsec_sa_create() should not change its argument. Thus mark it as a
constant.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 13 (lumag:ipsec-api)
 ** https://github.com/Linaro/odp/pull/13
 ** Patch: https://github.com/Linaro/odp/pull/13.patch
 ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85
 ** Merge commit sha: e9577831c18ff1aa9d6b036af7c1fbdfd51d0405
 **/
 include/odp/api/spec/ipsec.h       | 2 +-
 platform/linux-generic/odp_ipsec.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Savolainen, Petri (Nokia - FI/Espoo) May 10, 2017, 10:25 p.m. | #1
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>


> -----Original Message-----

> From: lng-odp [mailto:lng-odp-bounces@lists.linaro.org] On Behalf Of

> Github ODP bot

> Sent: Thursday, May 11, 2017 1:00 AM

> To: lng-odp@lists.linaro.org

> Subject: [lng-odp] [PATCH API-NEXT v2 1/1] api: ipsec: mark

> odp_ipsec_sa_create argument as constant

> 

> From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

> 

> odp_ipsec_sa_create() should not change its argument. Thus mark it as a

> constant.

> 

> Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

> ---

> /** Email created from pull request 13 (lumag:ipsec-api)

>  ** https://github.com/Linaro/odp/pull/13

>  ** Patch: https://github.com/Linaro/odp/pull/13.patch

>  ** Base sha: 3ea9c1dac34e0fb4785b0d643056c731daa55e85

>  ** Merge commit sha: e9577831c18ff1aa9d6b036af7c1fbdfd51d0405

>  **/

>  include/odp/api/spec/ipsec.h       | 2 +-

>  platform/linux-generic/odp_ipsec.c | 2 +-

>  2 files changed, 2 insertions(+), 2 deletions(-)

> 

> diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h

> index e83494d..59737e6 100644

> --- a/include/odp/api/spec/ipsec.h

> +++ b/include/odp/api/spec/ipsec.h

> @@ -773,7 +773,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 5eb1be3..10918df 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;

>

Patch hide | download patch | download mbox

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index e83494d..59737e6 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -773,7 +773,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 5eb1be3..10918df 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;