From patchwork Thu Feb 4 11:09:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 376259 Delivered-To: patch@linaro.org Received: by 2002:a17:906:48d2:0:0:0:0 with SMTP id d18csp1193057ejt; Thu, 4 Feb 2021 03:18:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSx6hhHqAdyoGgr86fWhCOc5e1R3kRwpcGrDDizvyDYa8h7mnbfh636zl6Ttgw3yJ87mw4 X-Received: by 2002:a17:906:17d5:: with SMTP id u21mr7518948eje.109.1612437528946; Thu, 04 Feb 2021 03:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612437528; cv=none; d=google.com; s=arc-20160816; b=wynQkBrMvCxQ2ro74XcAXkQUaCPeSzvZSO+Sg4hdhh+WLY6i17ic2xMRh0wh7teGkm kFX4NBxNDJGuiUJpeFNctmh5EnaAGR6G+joLuuyC4hyGGBWTNLprM+EWd7NBN1kHmqVW h+nMh7Vu5oPbCd++yWsC490JvAhAR78+8ngCohbn5v4zqL/vz8Zn/JsXe2yP2W323V4B yfJAYlHrxhrjeIG0tD0gkBx0K0me7f2ZaF8WzAhvE57vTYnZwuWM/WHavmI2ulTWjW7U rAU3TQGDtySV95laDexQGDziCRGml0kNMbBNngs8EiBdQvbdqG73AWh8W60esX4sf8Kr iESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zBZEiBnCpDze/1GuNJ3i38XwYi6MurOqLTEFwMePbaw=; b=j6MrZAi1+7aCgsOHXD4IJ4qfBrqWzjpreF+6LYKMBHJQ80FZA5uJ6viWSKHuTGCDc2 F+LYL0s4PXLbzyK5sfw3T82T5z7No3xS0P0+pbOOCw6p8gLdri7UUHVzlapceSm1ryw7 2Ug8Wmadhh0gaxiTVJ0oj0dvh4icwJz5di0IO/qn9HvjiAyoQoTTOcWVHCJcqKnJ30Hl 9ZvAZrA0t2y/OlW1ExauLcaDfp7NsA0ai+km0zJl0VwWM9iDfSlnSIKXa4TGLMLdyqrL jI+2ofVl8wtzBjn0+1S3GIZynYVcQSsWwAwM2uiiUnRFQLahgfe4C+k0x3eg/T0rPS1a Bamg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P9bFnE5k; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r12si3378223edi.426.2021.02.04.03.18.48; Thu, 04 Feb 2021 03:18:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P9bFnE5k; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235574AbhBDLSM (ORCPT + 2 others); Thu, 4 Feb 2021 06:18:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235710AbhBDLMP (ORCPT ); Thu, 4 Feb 2021 06:12:15 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5C30C06121C for ; Thu, 4 Feb 2021 03:10:17 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id j11so2752253wmi.3 for ; Thu, 04 Feb 2021 03:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zBZEiBnCpDze/1GuNJ3i38XwYi6MurOqLTEFwMePbaw=; b=P9bFnE5keghdh3BWBUni3jDga4wzhgq6MltnIId6KX0E3x3XTkggNsmjWbaYy/CbvQ 5PI5SiqqrEnylEv2Kb2BcDmwoSuuXytdIbhaWuHUEO5NJfsqGHMa7rdAJlKyTTteJWAF HwM4Ugjfd4P2UIcA1Kl1XU9+6uwaaD/gGJdRQMeTu91HD0lmmBjgqQ1myxJPJy3ap0li xFQOKxmaMFOsMlKGvAYN/AOLw+npaUZLgWIBHgg9YzLiJpn3jN1UgpZd78eT63HMxGJR 76KYyHGu36j2+iTkHinJ49RIPRe9Nqp1HKCUTwijHUr9fZ7c2HW8y/nlBGeOBx9zMUK3 mVsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zBZEiBnCpDze/1GuNJ3i38XwYi6MurOqLTEFwMePbaw=; b=O1CbzhLMXhXRybvK/dsLa3hfhVQvAYwJDsBivqV/usfEibkjzESkslSNB+Uxpi71gg qu+JBWZcL5Af8lKz3VwbfB/J5J0Cs8B9IMSRusH3gATp3pLXr/gSeBhNIfKIZCgyAPuB YXd5tBBY7oQOGLEBvYPtLLqyjsWn1OJh16ja2UReQZ3z6o+nEaaN/yaSu2PE6a5KF1Nb lResyFnjGMejI2N2Lv+y4aD8L7kS0c2BpeP6IIUWzgQiEp7LG9bgGpeZaa5SjYvNH5S4 xJXPL2B185HJcNz5T7+Jy8zk9y8Q/qSHHbSdVVMiNGZK6oX3atf4h6HqHZJhAbwa7wTt tDIg== X-Gm-Message-State: AOAM530U9QG7nWaef076AuL45qTO5LIo2HKgXSbItwij8aqQtE/wd+WJ 3jW0Ibiurpgeek8/VQ8qAMhejQ== X-Received: by 2002:a1c:f70f:: with SMTP id v15mr6821220wmh.38.1612437016576; Thu, 04 Feb 2021 03:10:16 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id y18sm7696218wrt.19.2021.02.04.03.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 03:10:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Herbert Xu , "David S. Miller" , Shujuan Chen , Joakim Bech , Berne Hebark , Niklas Hernaeus , Jonas Linde , Andreas Westin , linux-crypto@vger.kernel.org Subject: [PATCH 11/20] crypto: ux500: cryp_core: Fix formatting issue and add description for 'session_id' Date: Thu, 4 Feb 2021 11:09:51 +0000 Message-Id: <20210204111000.2800436-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210204111000.2800436-1-lee.jones@linaro.org> References: <20210204111000.2800436-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/crypto/ux500/cryp/cryp_core.c:42: warning: expecting prototype for ST(). Prototype was for CRYP_MAX_KEY_SIZE() instead drivers/crypto/ux500/cryp/cryp_core.c:91: warning: Function parameter or member 'key' not described in 'cryp_ctx' drivers/crypto/ux500/cryp/cryp_core.c:91: warning: Function parameter or member 'session_id' not described in 'cryp_ctx' Cc: Herbert Xu Cc: "David S. Miller" Cc: Shujuan Chen Cc: Joakim Bech Cc: Berne Hebark Cc: Niklas Hernaeus Cc: Jonas Linde Cc: Andreas Westin Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/ux500/cryp/cryp_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index c3adeb2e58232..25ce56d05084e 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/** +/* * Copyright (C) ST-Ericsson SA 2010 * Author: Shujuan Chen for ST-Ericsson. * Author: Joakim Bech for ST-Ericsson. @@ -62,7 +62,7 @@ struct cryp_driver_data { /** * struct cryp_ctx - Crypto context * @config: Crypto mode. - * @key[CRYP_MAX_KEY_SIZE]: Key. + * @key: Key array. * @keylen: Length of key. * @iv: Pointer to initialization vector. * @indata: Pointer to indata. @@ -73,6 +73,7 @@ struct cryp_driver_data { * @updated: Updated flag. * @dev_ctx: Device dependent context. * @device: Pointer to the device. + * @session_id: Atomic session ID. */ struct cryp_ctx { struct cryp_config config;