From patchwork Wed Dec 27 11:00:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 122773 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2027515qgn; Wed, 27 Dec 2017 03:02:12 -0800 (PST) X-Google-Smtp-Source: ACJfBovJY3Kxm4r6J9NUYdzD/sWP69osjmNOmFkyl9d2T7iEHXTX9kYKSazZYSh72puxGs1wpnJt X-Received: by 10.55.38.81 with SMTP id y78mr20700135qkg.132.1514372532579; Wed, 27 Dec 2017 03:02:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514372532; cv=none; d=google.com; s=arc-20160816; b=lWIqMQ9ZfmWtZ/PuajpN7As+BZq09LDThN7wo81MqV/VzMgkd4lqmxfCeFX+WdtFGh MBg6plYPuyAD3UbimbuDMBol1KsaKxFYVQMrkTGosLMsmtzqLFE2NMAraRL4tuT8bzQc 2MSiNY97I6mZQc62GUNLhXD4vp6JFdZCULGJclxDZZF/T8FnWKc3Z6fiWmdu24/6bqvQ XOMDN7+rlp6yg+MqG4ltUnyECtp/HlrVNmEDxwXdvY+DJ75B5oJcee2Pblto6LJU3nQ4 qc8z3bQLcBuYHuhlQ0lk8eRd5BOWtefyDsgXlNRoYB8QLqX/wGLGSPRPD3IvUfFRpKbf SJsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=zw3GfutZk59ihtTbMRN1kDPhOIUgFfckHX+msYwTPZw=; b=Eq8nzxDFmTcyp8QfrhkeZTmOj5zz0ikwSRvEP0YMOuY7t7NCHX31oct3biFeg12n58 n/xpeV6Hmbe1QlyJySMBAfdP7hXZMEKaJcuKxh3yMSHFbHntnit6NgxwjlfQ6k4xTXZV ZpchcDgB2nyB4Vf+7p9AlLkF5wVWY6d35loYMCBrfKhqxtMj5k2Ghi6NqBW+pkPJCNiR sjc4QaL/Isrhnd81Xyaco12trmKxPU6tGJ/uivdz+7Y82h97tlcarKQEiTven4BHUIqA 9IHkizvBkrecmNZZq0KX5yScL4J9tdTQjs30E9Pmv56S5LInXkbEnFruoOdFhyBsoLV6 +puw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id t123si1572806qkf.99.2017.12.27.03.02.12; Wed, 27 Dec 2017 03:02:12 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 35B1D608B4; Wed, 27 Dec 2017 11:02:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 0BE66608DD; Wed, 27 Dec 2017 11:01:09 +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 D70BB6089D; Wed, 27 Dec 2017 11:00:54 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id CF991608A4 for ; Wed, 27 Dec 2017 11:00:38 +0000 (UTC) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 3F45B4083488 for ; Wed, 27 Dec 2017 14:00:37 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id xLnnql3mX6-0bre8Rui; Wed, 27 Dec 2017 14:00:37 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vygUVW2kiU-0Uni8uAt; Wed, 27 Dec 2017 14:00:30 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 27 Dec 2017 14:00:09 +0300 Message-Id: <1514372409-29331-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1514372409-29331-1-git-send-email-odpbot@yandex.ru> References: <1514372409-29331-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 369 Subject: [lng-odp] [PATCH API-NEXT v2 3/3] linux-gen: crypto: fix fallthrough error 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" From: Dmitry Eremin-Solenikov GCC-7 will output "may fall through" error if fallthrough comment is present, but before preprocessor directive. Move these comments after endif directives. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 369 (lumag:api-next-fixes) ** https://github.com/Linaro/odp/pull/369 ** Patch: https://github.com/Linaro/odp/pull/369.patch ** Base sha: a5f07dbf95f982b7c5898434e56164ff976c0a0f ** Merge commit sha: b9298b6e4d26f720f422ca57f1ea911597c955ef **/ platform/linux-generic/odp_crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linux-generic/odp_crypto.c b/platform/linux-generic/odp_crypto.c index 69e6d0dad..2038aa46b 100644 --- a/platform/linux-generic/odp_crypto.c +++ b/platform/linux-generic/odp_crypto.c @@ -962,8 +962,8 @@ odp_crypto_session_create(odp_crypto_session_param_t *param, case ODP_AUTH_ALG_MD5_96: /* Fixed digest tag length with deprecated algo */ session->p.auth_digest_len = 96 / 8; - /* Fallthrough */ #endif + /* Fallthrough */ case ODP_AUTH_ALG_MD5_HMAC: rc = process_auth_param(session, 16, EVP_md5()); break; @@ -974,8 +974,8 @@ odp_crypto_session_create(odp_crypto_session_param_t *param, case ODP_AUTH_ALG_SHA256_128: /* Fixed digest tag length with deprecated algo */ session->p.auth_digest_len = 128 / 8; - /* Fallthrough */ #endif + /* Fallthrough */ case ODP_AUTH_ALG_SHA256_HMAC: rc = process_auth_param(session, 32, EVP_sha256()); break; @@ -988,8 +988,8 @@ odp_crypto_session_create(odp_crypto_session_param_t *param, aes_gcm = 1; /* Fixed digest tag length with deprecated algo */ session->p.auth_digest_len = 16; - /* Fallthrough */ #endif + /* Fallthrough */ case ODP_AUTH_ALG_AES_GCM: /* AES-GCM requires to do both auth and * cipher at the same time */