From patchwork Thu Jun 1 11:02:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 100898 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp701506obc; Thu, 1 Jun 2017 04:08:22 -0700 (PDT) X-Received: by 10.99.103.7 with SMTP id b7mr610537pgc.2.1496315301937; Thu, 01 Jun 2017 04:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315301; cv=none; d=google.com; s=arc-20160816; b=vvr5MSUiW3SmOIDPBbFUNWAOUXWvpF5OvvqKm1k+/GoEq9pthyrQknGG5MFWpVB2F9 WnY79kW0yllNe1lTwcLoozQ4oOomCoPvVqw9TntkM0UxTt5vMTjcL08U+PghUSFxQKyf rJRYjz3LOjGXMgneHBm9HYpcE60heYmajzTeQ2OXtHS+Y6Q3Mfcb0q+wSUxfSaQ02E/y Bf1U9zd7686AHAZ4kG6crZplyNTNnQpn5Ws0H8zB05i0pY71LpkEZEbSHPYFHLIcaSSG p2yZy1VEvo6jdY+629UCyIkoDlTlV9t+lHYP80M2IiMU0zIWsrQmzAzUOGjKjrHRpIyw bbWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=FR+rzw+Xn8Qx0/ETt6DsdOU2T4aDOaT6LPvu83eiq3E=; b=aWxX3IUc3GQ+fJf5QWuBb6+esmlzrD+RRPqaevZ8WcOGYFABENUWlH4O+mQqwrEAWy Rv6Rro40bKuBzFyPc/3tSM5oMyKGm3VVv1pHkHaMjKXXUIzTFDbbde8qI5yXtRpmflsb kkCnuG321/d6GS91n/pexTb4qXl0uAfFw1D7/x5jn8BPeB1aLSAqYwp/yoqJzhNLt9TP cSvtS75wmg65cs7LcTdfOY08VkuzNWT70MbEUIIynom8Dbm1CsL+862NERhj+VQ70Fq7 l2yLfvtGkD7Pjs6I3EBfrZUwILCSBPL3pa9Ij9TThTkMQpNK8J//w9IhyOxBHMqVQUCc 15pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r69si2905807pgr.349.2017.06.01.04.08.21; Thu, 01 Jun 2017 04:08:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751875AbdFALH7 (ORCPT + 25 others); Thu, 1 Jun 2017 07:07:59 -0400 Received: from foss.arm.com ([217.140.101.70]:54402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751703AbdFALDu (ORCPT ); Thu, 1 Jun 2017 07:03:50 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 19AEC1596; Thu, 1 Jun 2017 04:03:50 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1983E3F578; Thu, 1 Jun 2017 04:03:46 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Joe Perches , Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v2 05/20] staging: ccree: fix comments formatting Date: Thu, 1 Jun 2017 14:02:55 +0300 Message-Id: <1496314993-30229-6-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496314993-30229-1-git-send-email-gilad@benyossef.com> References: <1496314993-30229-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A few of the comments in cc_crypto_ctx.h where not formatted correctly. Format according to coding style guidelines. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_crypto_ctx.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_crypto_ctx.h b/drivers/staging/ccree/cc_crypto_ctx.h index 10f57e6..838e6e4 100644 --- a/drivers/staging/ccree/cc_crypto_ctx.h +++ b/drivers/staging/ccree/cc_crypto_ctx.h @@ -214,8 +214,9 @@ struct drv_ctx_hash { CC_DIGEST_SIZE_MAX]; }; -/* !!!! drv_ctx_hmac should have the same structure as drv_ctx_hash except - k0, k0_size fields */ +/* NOTE! drv_ctx_hmac should have the same structure as drv_ctx_hash except + * k0, k0_size fields + */ struct drv_ctx_hmac { enum drv_crypto_alg alg; /* DRV_CRYPTO_ALG_HMAC */ enum drv_hash_mode mode; @@ -236,9 +237,10 @@ struct drv_ctx_cipher { u32 key_size; /* numeric value in bytes */ u32 data_unit_size; /* required for XTS */ /* block_state is the AES engine block state. - * It is used by the host to pass IV or counter at initialization. - * It is used by SeP for intermediate block chaining state and for - * returning MAC algorithms results. */ + * It is used by the host to pass IV or counter at initialization. + * It is used by SeP for intermediate block chaining state and for + * returning MAC algorithms results. + */ u8 block_state[CC_AES_BLOCK_SIZE]; u8 key[CC_AES_KEY_SIZE_MAX]; u8 xex_key[CC_AES_KEY_SIZE_MAX]; @@ -274,9 +276,10 @@ struct drv_ctx_aead { /*******************************************************************/ /* Get the address of a @member within a given @ctx address - @ctx: The context address - @type: Type of context structure - @member: Associated context field */ + * @ctx: The context address + * @type: Type of context structure + * @member: Associated context field + */ #define GET_CTX_FIELD_ADDR(ctx, type, member) (ctx + offsetof(type, member)) #endif /* _CC_CRYPTO_CTX_H_ */