From patchwork Wed Mar 3 14:34:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392651 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5614378jap; Wed, 3 Mar 2021 17:56:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJym7GyOF79Nfdl5VkN6mndLaEqrlO5OGT5b/5IQ1OEjCGL7r1LRRdMRpngNw5qqsWLp3NUp X-Received: by 2002:a17:907:10c1:: with SMTP id rv1mr1675489ejb.5.1614822893836; Wed, 03 Mar 2021 17:54:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822893; cv=none; d=google.com; s=arc-20160816; b=m/7+Zt6eXY9AYFKo392Dg5vKzlA2ozRkNPONa9HnavUrs4221dM7ChWIDStXdV9v6d YZDm7IaFBL85Kj+Vc4ew1qf/wrM0XS6yw3EEEe2GhxbvM11pWBp/l4RM0DqdEhorVYjz PkdyHlY6P7ElHEBgbigrO7+NpmLOMZMF4aYhrDEmZ+ezwvRh8GNcCX42oeuU66aj7Z/I o7GF7O3fSZ4KYdmQjUDu/o6rYMKDyinw8XYhHAFL5PyjVLD2xmE8kIjZtanrfCXkAMPG gItJIJBiIdHDTMxbkIJ2kgaIVpvzjIqjB7wtIhVxEUxlLXdLaa9j0ATi96WegMBswQZv CpEQ== 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=cqK2Pp2ViTz0xdgYhapttz8LcH4etuWNmG0+y0P94Tk=; b=BUPqz1+GBR5vmamh4v51j3q5AxR1Q5nRDGE+A0ZMJ/2c8HouDbnBgTx4mPZ0CPEsWJ eUUDJmDppwZiUecuGidyAUjqmk5jmqWeMpwKVcpBQpPGssnQm8Np6tC6agFlkoRiIyLp 5Ee7hO0F8IfyuMzQBrIvMetRui9GmrrjvJ6I9U7SgJKiDD1FHJZ1UfL/2zz40KLGwmMa GUVqThfHLFvd7kx7W6zcGItxOOHzW+F7bImbocCWqoEW17HsbGn4w2NxO+LHPYNigFuf QIehMw50qy5LeGOgDABNH3cjA7FyIH0dIXQUT/ngWXUukd+WsCXj0YmQv/U61JSYVABd Nvow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vZ//Oq17"; 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 p17si16189393ejd.307.2021.03.03.17.54.53; Wed, 03 Mar 2021 17:54:53 -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="vZ//Oq17"; 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 S1357307AbhCDAHg (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444108AbhCCPBU (ORCPT ); Wed, 3 Mar 2021 10:01:20 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9502FC061223 for ; Wed, 3 Mar 2021 06:34:57 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id d15so8689844wrv.5 for ; Wed, 03 Mar 2021 06:34:57 -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=cqK2Pp2ViTz0xdgYhapttz8LcH4etuWNmG0+y0P94Tk=; b=vZ//Oq17fVFIHNxnYuSz7zmIiCfX7FKb2JjXbFKwrJueBoLWMipljxZqkZkU6bIQsB likK+NsLkdz8/McVfqMXARxi6qK/OQPOL2bifNzI2lcmDegxejtRTlJc+lYK5AQOb6yb FkgBKNZo0SRcoId0GkIXHIrUC+7koACkR0MblOhBkdKRML/CY9WK34OzgRqD4tBnq21m Cs2D2ftMTFMSUmZsXykMPRi6KOKNFWj4xZtzDpRuRT8Intf0vM3l0o4ga3s4LRTjpTio KInznYoMVYau0okheGPv0WCchkmH9hi6dcNx3w6x9z+Ni4hKysTVX1n7wIk/NALdSnV8 bPBg== 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=cqK2Pp2ViTz0xdgYhapttz8LcH4etuWNmG0+y0P94Tk=; b=R34J4CT9FhbDnIWg0aQBV5qUSDRCc/6mQeQ+4eJW0YRVqO4J23ABPLXfBcZzWbZlB8 Dz7Rx2xN/2ygFLXkIuoy/fHaKqs3w5c8/U7A3LIWGP68bRlASKSmz2F5KPwBa7ehQ1QD yEe3BrBu4gC6YlZhIJGcuzgUZoArthBY1KwzBTAKSdu92d27JF+Xn0pNGyQXsrmO6L2A Hq6D24S4Dr9vdzk+/p4bV4cEAUWhRw2mo0v0nAmfcLycYPc81Frzz9/LLTZ4xxVdrhcr y3VPgAXW6dbAqwUQv229MIhEzrGvESkETC9EBDRQStDVPyt7MBoGaC7H+uokDAuz4Ae0 mnZQ== X-Gm-Message-State: AOAM5337bzdbAuCkGvyzBS4fqZ5V0GNOhN1IMnFKCueJSQbG5nUe+5M4 x4tmTQZZyfFBXcvHcv/xr5CjbQ== X-Received: by 2002:a5d:4903:: with SMTP id x3mr23879642wrq.143.1614782096340; Wed, 03 Mar 2021 06:34:56 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:34:55 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Herbert Xu , "David S. Miller" , Zaibo Xu , Jonathan Cameron , linux-crypto@vger.kernel.org Subject: [PATCH 01/10] crypto: hisilicon: sec_drv: Supply missing description for 'sec_queue_empty()'s 'queue' param Date: Wed, 3 Mar 2021 14:34:40 +0000 Message-Id: <20210303143449.3170813-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/hisilicon/sec/sec_drv.c:843: warning: Function parameter or member 'queue' not described in 'sec_queue_empty' Cc: Herbert Xu Cc: "David S. Miller" Cc: Zaibo Xu Cc: Jonathan Cameron Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/hisilicon/sec/sec_drv.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 diff --git a/drivers/crypto/hisilicon/sec/sec_drv.c b/drivers/crypto/hisilicon/sec/sec_drv.c index 91ee2bb575df2..3c26871db12f3 100644 --- a/drivers/crypto/hisilicon/sec/sec_drv.c +++ b/drivers/crypto/hisilicon/sec/sec_drv.c @@ -834,6 +834,7 @@ int sec_queue_stop_release(struct sec_queue *queue) /** * sec_queue_empty() - Is this hardware queue currently empty. + * @queue: The queue to test * * We need to know if we have an empty queue for some of the chaining modes * as if it is not empty we may need to hold the message in a software queue From patchwork Wed Mar 3 14:34:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392649 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5614315jap; Wed, 3 Mar 2021 17:56:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBw+0pUFuqomgvFDnwgLYqAzyKsUrPXDDvBX2UGkoi2oZLYa7eVvYuISLbVMsY02caVnVa X-Received: by 2002:a17:906:12db:: with SMTP id l27mr1616620ejb.500.1614822894255; Wed, 03 Mar 2021 17:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822894; cv=none; d=google.com; s=arc-20160816; b=dOIhuX25VCgymaDB4C2iVSL3dijAm5v68RAZK4KbGJeEg5rH3kHBGEKO8lMSYuFixQ jgT/A1F+U9ir+F12+/prln3X3c5cp076uRvchXLdGUZdNJiP2imMz5H3Q76t+bBJeCVy 9RVM6oJB5qzo0lZt3KkDHdiDhkC7k7xXxzji7Q/Yo/HSzRvsstHqbF/keavjW/YIKPCo DUrwXp0FqN9AUiyAWxYbn+YLy+INusZPtDex6b/AltFAcSS+6QqAPOtR9JMhcxjkTHnI EW15F/sc0PSIP1vtz/KGpNpX3Pc5MejSnn8BGn27mQzyuRXgCVJ36r4f9QtbNVUFy7iq o7zA== 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=erPTjshbhLchKwQuh0XQUk+wc12RIGoz2km1xclT6d4=; b=ft4sq5bHw+PhOuHdkoHUp1o2B0/M85o44Rf9YHSekEOmezCFyS1nqvSrJ+O54RWEFK uJAo9shDc8BowBkLKflMfX1R2lVNv/bsUxh8miMBqybFBNHt9UMRq9F2kEjq/9Osi7zm HQt8Igy8KR8/H0gbwACpESr/5JfS5zu5gYSmfTADt4kWf50E2GQJDmVSerCxtpsjKqs2 a+itk0GoVL5x3ACKsShFR52FkSykZpp7dk6Gf6rWXfY3fzDkOeKQQoeZus9CPbqxpEV7 Ve9wBRGt0d8vjIzrlfndiaZweb+Eh/pagaFPx7lTPfDeHOXt+mAjM5cSFg6/fIHjoF4u W+NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="EZo0F/vK"; 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 p17si16189393ejd.307.2021.03.03.17.54.54; Wed, 03 Mar 2021 17:54:54 -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="EZo0F/vK"; 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 S235312AbhCDAHh (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444146AbhCCPBU (ORCPT ); Wed, 3 Mar 2021 10:01:20 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F33C6C061225 for ; Wed, 3 Mar 2021 06:34:58 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id h98so23906120wrh.11 for ; Wed, 03 Mar 2021 06:34:58 -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=erPTjshbhLchKwQuh0XQUk+wc12RIGoz2km1xclT6d4=; b=EZo0F/vKAXWlIQpH9PKqPP4VUz1vgWxjmgaL0A6IOrX4Zm0mz5zh/eOsJsT7Ux1gDE 0axE6MsOpRohAXChk1J5cnJWf7/gDUt2CVNwx30l8yc5VjW7th/ct4aaoqAZEwEtvDG+ mmbx22dFlouq+ky0S9Htp2vFGaRw08CdjsDXm82grykQNcw2DJYMK40jMC0GZYNEFFYa +aiNEQak2YYfkMoanJIjD2hCSRejCvGH9cRrD576TpYHImXZG3w6yXlcW/wwB1/u2zau bHCjf0S9B7APGQqDcwzzwqG7ISsbitDdvaVbBwBxHIvZf7+pn7rSxVtQr1cyf6h2rNVg Kb8A== 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=erPTjshbhLchKwQuh0XQUk+wc12RIGoz2km1xclT6d4=; b=k5o3DYnwu2pL//uJSWeOwFVz8565VVXGK/q1F4556tU4dJMi22HnrEQ7Z7tAbjZMh7 jbVfyL2iKt2/LVy2l17Gbtpe4TMormKt65S7HlK+PQh0QZjuz4/s0EbIopjVu8Zqms6S QWHMkHCsi2Lcw00k9197rdfnweMNwMh6w3xEP71BFlqdgef4DxhHI8kabxVrvx334tlA qY7ZVLd6E9hrgQfEcIc7Uf4lE9pAA7QVoCIwaitELcIC/59wsXzPpBPJSNebLHxq7TMa bSfMWvTrTvB4PdMYowpfDa0yHo3l+EFYEkPps55mbbdJwBHszxQxm7FF3EUNpi/SKyDv LCXw== X-Gm-Message-State: AOAM533Av3U44Un6MlWUw2mispmeWV4/E5De0QBPU9zU7ZnI2jz9wADV uIUAcH1J07ZU50We9iBD+W6tsA== X-Received: by 2002:adf:fbce:: with SMTP id d14mr26519347wrs.44.1614782097568; Wed, 03 Mar 2021 06:34:57 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.34.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:34:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Herbert Xu , "David S. Miller" , Rob Rice , linux-crypto@vger.kernel.org Subject: [PATCH 02/10] crypto: bcm: Fix a whole host of kernel-doc misdemeanours Date: Wed, 3 Mar 2021 14:34:41 +0000 Message-Id: <20210303143449.3170813-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/bcm/util.c:136: warning: Function parameter or member 'from_nents' not described in 'spu_msg_sg_add' drivers/crypto/bcm/util.c:136: warning: Function parameter or member 'length' not described in 'spu_msg_sg_add' drivers/crypto/bcm/spu.c:464: warning: Excess function parameter 'Return' description in 'spum_gcm_ccm_pad_len' drivers/crypto/bcm/spu.c:524: warning: Function parameter or member 'iv_len' not described in 'spum_aead_ivlen' drivers/crypto/bcm/spu.c:524: warning: expecting prototype for spu_aead_ivlen(). Prototype was for spum_aead_ivlen() instead drivers/crypto/bcm/spu.c:556: warning: Function parameter or member 'alg_digest_size' not described in 'spum_digest_size' drivers/crypto/bcm/spu.c:556: warning: Function parameter or member 'alg' not described in 'spum_digest_size' drivers/crypto/bcm/spu.c:556: warning: Function parameter or member 'htype' not described in 'spum_digest_size' drivers/crypto/bcm/spu.c:583: warning: bad line: drivers/crypto/bcm/spu.c:927: warning: Function parameter or member 'is_inbound' not described in 'spum_cipher_req_finish' drivers/crypto/bcm/spu.c:927: warning: Excess function parameter 'isInbound' description in 'spum_cipher_req_finish' drivers/crypto/bcm/spu2.c:557: warning: Function parameter or member 'fmd' not described in 'spu2_fmd_init' drivers/crypto/bcm/spu2.c:557: warning: Function parameter or member 'spu2_type' not described in 'spu2_fmd_init' drivers/crypto/bcm/spu2.c:557: warning: Excess function parameter 'spu2_cipher_type' description in 'spu2_fmd_init' drivers/crypto/bcm/spu2.c:615: warning: Function parameter or member 'auth_first' not described in 'spu2_fmd_ctrl0_write' drivers/crypto/bcm/spu2.c:615: warning: Excess function parameter 'authFirst' description in 'spu2_fmd_ctrl0_write' drivers/crypto/bcm/spu2.c:666: warning: Function parameter or member 'is_inbound' not described in 'spu2_fmd_ctrl1_write' drivers/crypto/bcm/spu2.c:803: warning: expecting prototype for spu_payload_length(). Prototype was for spu2_payload_length() instead drivers/crypto/bcm/spu2.c:825: warning: Function parameter or member 'is_hash' not described in 'spu2_response_hdr_len' drivers/crypto/bcm/spu2.c:825: warning: expecting prototype for spu_response_hdr_len(). Prototype was for spu2_response_hdr_len() instead drivers/crypto/bcm/spu2.c:843: warning: expecting prototype for spu_hash_pad_len(). Prototype was for spu2_hash_pad_len() instead drivers/crypto/bcm/spu2.c:855: warning: Function parameter or member 'cipher_mode' not described in 'spu2_gcm_ccm_pad_len' drivers/crypto/bcm/spu2.c:855: warning: Function parameter or member 'data_size' not described in 'spu2_gcm_ccm_pad_len' drivers/crypto/bcm/spu2.c:855: warning: expecting prototype for spu2_gcm_ccm_padlen(). Prototype was for spu2_gcm_ccm_pad_len() instead drivers/crypto/bcm/spu2.c:872: warning: expecting prototype for spu_assoc_resp_len(). Prototype was for spu2_assoc_resp_len() instead drivers/crypto/bcm/spu2.c:919: warning: Function parameter or member 'alg_digest_size' not described in 'spu2_digest_size' drivers/crypto/bcm/spu2.c:919: warning: Function parameter or member 'alg' not described in 'spu2_digest_size' drivers/crypto/bcm/spu2.c:919: warning: Function parameter or member 'htype' not described in 'spu2_digest_size' drivers/crypto/bcm/spu2.c:945: warning: expecting prototype for spu_create_request(). Prototype was for spu2_create_request() instead drivers/crypto/bcm/spu2.c:1122: warning: expecting prototype for spu_cipher_req_init(). Prototype was for spu2_cipher_req_init() instead drivers/crypto/bcm/spu2.c:1182: warning: Function parameter or member 'is_inbound' not described in 'spu2_cipher_req_finish' drivers/crypto/bcm/spu2.c:1182: warning: expecting prototype for spu_cipher_req_finish(). Prototype was for spu2_cipher_req_finish() instead drivers/crypto/bcm/spu2.c:1243: warning: expecting prototype for spu_request_pad(). Prototype was for spu2_request_pad() instead drivers/crypto/bcm/spu2.c:1321: warning: expecting prototype for spu_status_process(). Prototype was for spu2_status_process() instead drivers/crypto/bcm/cipher.c:1048: warning: Function parameter or member 'req' not described in 'spu_aead_rx_sg_create' drivers/crypto/bcm/cipher.c:2966: warning: Function parameter or member 'cipher' not described in 'rfc4543_gcm_esp_setkey' drivers/crypto/bcm/cipher.c:2966: warning: Function parameter or member 'key' not described in 'rfc4543_gcm_esp_setkey' drivers/crypto/bcm/cipher.c:2966: warning: Function parameter or member 'keylen' not described in 'rfc4543_gcm_esp_setkey' Cc: Herbert Xu Cc: "David S. Miller" Cc: Rob Rice Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/bcm/cipher.c | 7 +++--- drivers/crypto/bcm/spu.c | 16 +++++++------- drivers/crypto/bcm/spu2.c | 43 +++++++++++++++++++++---------------- drivers/crypto/bcm/util.c | 4 ++-- 4 files changed, 38 insertions(+), 32 deletions(-) -- 2.27.0 diff --git a/drivers/crypto/bcm/cipher.c b/drivers/crypto/bcm/cipher.c index 851b149f71701..053315e260c22 100644 --- a/drivers/crypto/bcm/cipher.c +++ b/drivers/crypto/bcm/cipher.c @@ -1019,6 +1019,7 @@ static void handle_ahash_resp(struct iproc_reqctx_s *rctx) * a SPU response message for an AEAD request. Includes buffers to catch SPU * message headers and the response data. * @mssg: mailbox message containing the receive sg + * @req: Crypto API request * @rctx: crypto request context * @rx_frag_num: number of scatterlist elements required to hold the * SPU response message @@ -2952,9 +2953,9 @@ static int aead_gcm_esp_setkey(struct crypto_aead *cipher, /** * rfc4543_gcm_esp_setkey() - setkey operation for RFC4543 variant of GCM/GMAC. - * cipher: AEAD structure - * key: Key followed by 4 bytes of salt - * keylen: Length of key plus salt, in bytes + * @cipher: AEAD structure + * @key: Key followed by 4 bytes of salt + * @keylen: Length of key plus salt, in bytes * * Extracts salt from key and stores it to be prepended to IV on each request. * Digest is always 16 bytes diff --git a/drivers/crypto/bcm/spu.c b/drivers/crypto/bcm/spu.c index 007abf92cc05b..6283e8c6d51d3 100644 --- a/drivers/crypto/bcm/spu.c +++ b/drivers/crypto/bcm/spu.c @@ -457,7 +457,7 @@ u16 spum_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, * @cipher_mode: Algo type * @data_size: Length of plaintext (bytes) * - * @Return: Length of padding, in bytes + * Return: Length of padding, in bytes */ u32 spum_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, unsigned int data_size) @@ -510,10 +510,10 @@ u32 spum_assoc_resp_len(enum spu_cipher_mode cipher_mode, } /** - * spu_aead_ivlen() - Calculate the length of the AEAD IV to be included + * spum_aead_ivlen() - Calculate the length of the AEAD IV to be included * in a SPU request after the AAD and before the payload. * @cipher_mode: cipher mode - * @iv_ctr_len: initialization vector length in bytes + * @iv_len: initialization vector length in bytes * * In Linux ~4.2 and later, the assoc_data sg includes the IV. So no need * to include the IV as a separate field in the SPU request msg. @@ -543,9 +543,9 @@ enum hash_type spum_hash_type(u32 src_sent) /** * spum_digest_size() - Determine the size of a hash digest to expect the SPU to * return. - * alg_digest_size: Number of bytes in the final digest for the given algo - * alg: The hash algorithm - * htype: Type of hash operation (init, update, full, etc) + * @alg_digest_size: Number of bytes in the final digest for the given algo + * @alg: The hash algorithm + * @htype: Type of hash operation (init, update, full, etc) * * When doing incremental hashing for an algorithm with a truncated hash * (e.g., SHA224), the SPU returns the full digest so that it can be fed back as @@ -580,7 +580,7 @@ u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg, * @aead_parms: Parameters related to AEAD operation * @data_size: Length of data to be encrypted or authenticated. If AEAD, does * not include length of AAD. - + * * Return: the length of the SPU header in bytes. 0 if an error occurs. */ u32 spum_create_request(u8 *spu_hdr, @@ -911,7 +911,7 @@ u16 spum_cipher_req_init(u8 *spu_hdr, struct spu_cipher_parms *cipher_parms) * setkey() time in spu_cipher_req_init(). * @spu_hdr: Start of the request message header (MH field) * @spu_req_hdr_len: Length in bytes of the SPU request header - * @isInbound: 0 encrypt, 1 decrypt + * @is_inbound: 0 encrypt, 1 decrypt * @cipher_parms: Parameters describing cipher operation to be performed * @data_size: Length of the data in the BD field * diff --git a/drivers/crypto/bcm/spu2.c b/drivers/crypto/bcm/spu2.c index 2db35b5ccaa24..07989bb8c220a 100644 --- a/drivers/crypto/bcm/spu2.c +++ b/drivers/crypto/bcm/spu2.c @@ -543,7 +543,8 @@ void spu2_dump_msg_hdr(u8 *buf, unsigned int buf_len) /** * spu2_fmd_init() - At setkey time, initialize the fixed meta data for * subsequent skcipher requests for this context. - * @spu2_cipher_type: Cipher algorithm + * @fmd: Start of FMD field to be written + * @spu2_type: Cipher algorithm * @spu2_mode: Cipher mode * @cipher_key_len: Length of cipher key, in bytes * @cipher_iv_len: Length of cipher initialization vector, in bytes @@ -598,7 +599,7 @@ static int spu2_fmd_init(struct SPU2_FMD *fmd, * SPU request packet. * @fmd: Start of FMD field to be written * @is_inbound: true if decrypting. false if encrypting. - * @authFirst: true if alg authenticates before encrypting + * @auth_first: true if alg authenticates before encrypting * @protocol: protocol selector * @cipher_type: cipher algorithm * @cipher_mode: cipher mode @@ -640,6 +641,7 @@ static void spu2_fmd_ctrl0_write(struct SPU2_FMD *fmd, * spu2_fmd_ctrl1_write() - Write ctrl1 field in fixed metadata (FMD) field of * SPU request packet. * @fmd: Start of FMD field to be written + * @is_inbound: true if decrypting. false if encrypting. * @assoc_size: Length of additional associated data, in bytes * @auth_key_len: Length of authentication key, in bytes * @cipher_key_len: Length of cipher key, in bytes @@ -793,7 +795,7 @@ u32 spu2_ctx_max_payload(enum spu_cipher_alg cipher_alg, } /** - * spu_payload_length() - Given a SPU2 message header, extract the payload + * spu2_payload_length() - Given a SPU2 message header, extract the payload * length. * @spu_hdr: Start of SPU message header (FMD) * @@ -812,10 +814,11 @@ u32 spu2_payload_length(u8 *spu_hdr) } /** - * spu_response_hdr_len() - Determine the expected length of a SPU response + * spu2_response_hdr_len() - Determine the expected length of a SPU response * header. * @auth_key_len: Length of authentication key, in bytes * @enc_key_len: Length of encryption key, in bytes + * @is_hash: Unused * * For SPU2, includes just FMD. OMD is never requested. * @@ -827,7 +830,7 @@ u16 spu2_response_hdr_len(u16 auth_key_len, u16 enc_key_len, bool is_hash) } /** - * spu_hash_pad_len() - Calculate the length of hash padding required to extend + * spu2_hash_pad_len() - Calculate the length of hash padding required to extend * data to a full block size. * @hash_alg: hash algorithm * @hash_mode: hash mode @@ -845,8 +848,10 @@ u16 spu2_hash_pad_len(enum hash_alg hash_alg, enum hash_mode hash_mode, } /** - * spu2_gcm_ccm_padlen() - Determine the length of GCM/CCM padding for either + * spu2_gcm_ccm_pad_len() - Determine the length of GCM/CCM padding for either * the AAD field or the data. + * @cipher_mode: Unused + * @data_size: Unused * * Return: 0. Unlike SPU-M, SPU2 hardware does any GCM/CCM padding required. */ @@ -857,7 +862,7 @@ u32 spu2_gcm_ccm_pad_len(enum spu_cipher_mode cipher_mode, } /** - * spu_assoc_resp_len() - Determine the size of the AAD2 buffer needed to catch + * spu2_assoc_resp_len() - Determine the size of the AAD2 buffer needed to catch * associated data in a SPU2 output packet. * @cipher_mode: cipher mode * @assoc_len: length of additional associated data, in bytes @@ -878,11 +883,11 @@ u32 spu2_assoc_resp_len(enum spu_cipher_mode cipher_mode, return resp_len; } -/* - * spu_aead_ivlen() - Calculate the length of the AEAD IV to be included +/** + * spu2_aead_ivlen() - Calculate the length of the AEAD IV to be included * in a SPU request after the AAD and before the payload. * @cipher_mode: cipher mode - * @iv_ctr_len: initialization vector length in bytes + * @iv_len: initialization vector length in bytes * * For SPU2, AEAD IV is included in OMD and does not need to be repeated * prior to the payload. @@ -909,9 +914,9 @@ enum hash_type spu2_hash_type(u32 src_sent) /** * spu2_digest_size() - Determine the size of a hash digest to expect the SPU to * return. - * alg_digest_size: Number of bytes in the final digest for the given algo - * alg: The hash algorithm - * htype: Type of hash operation (init, update, full, etc) + * @alg_digest_size: Number of bytes in the final digest for the given algo + * @alg: The hash algorithm + * @htype: Type of hash operation (init, update, full, etc) * */ u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg, @@ -921,7 +926,7 @@ u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg, } /** - * spu_create_request() - Build a SPU2 request message header, includint FMD and + * spu2_create_request() - Build a SPU2 request message header, includint FMD and * OMD. * @spu_hdr: Start of buffer where SPU request header is to be written * @req_opts: SPU request message options @@ -1105,7 +1110,7 @@ u32 spu2_create_request(u8 *spu_hdr, } /** - * spu_cipher_req_init() - Build an skcipher SPU2 request message header, + * spu2_cipher_req_init() - Build an skcipher SPU2 request message header, * including FMD and OMD. * @spu_hdr: Location of start of SPU request (FMD field) * @cipher_parms: Parameters describing cipher request @@ -1162,11 +1167,11 @@ u16 spu2_cipher_req_init(u8 *spu_hdr, struct spu_cipher_parms *cipher_parms) } /** - * spu_cipher_req_finish() - Finish building a SPU request message header for a + * spu2_cipher_req_finish() - Finish building a SPU request message header for a * block cipher request. * @spu_hdr: Start of the request message header (MH field) * @spu_req_hdr_len: Length in bytes of the SPU request header - * @isInbound: 0 encrypt, 1 decrypt + * @is_inbound: 0 encrypt, 1 decrypt * @cipher_parms: Parameters describing cipher operation to be performed * @data_size: Length of the data in the BD field * @@ -1222,7 +1227,7 @@ void spu2_cipher_req_finish(u8 *spu_hdr, } /** - * spu_request_pad() - Create pad bytes at the end of the data. + * spu2_request_pad() - Create pad bytes at the end of the data. * @pad_start: Start of buffer where pad bytes are to be written * @gcm_padding: Length of GCM padding, in bytes * @hash_pad_len: Number of bytes of padding extend data to full block @@ -1311,7 +1316,7 @@ u8 spu2_rx_status_len(void) } /** - * spu_status_process() - Process the status from a SPU response message. + * spu2_status_process() - Process the status from a SPU response message. * @statp: start of STATUS word * * Return: 0 - if status is good and response should be processed diff --git a/drivers/crypto/bcm/util.c b/drivers/crypto/bcm/util.c index c4669a96eaecf..d5d9cabea55aa 100644 --- a/drivers/crypto/bcm/util.c +++ b/drivers/crypto/bcm/util.c @@ -119,8 +119,8 @@ int spu_sg_count(struct scatterlist *sg_list, unsigned int skip, int nbytes) * @from_skip: number of bytes to skip in from_sg. Non-zero when previous * request included part of the buffer in entry in from_sg. * Assumes from_skip < from_sg->length. - * @from_nents number of entries in from_sg - * @length number of bytes to copy. may reach this limit before exhausting + * @from_nents: number of entries in from_sg + * @length: number of bytes to copy. may reach this limit before exhausting * from_sg. * * Copies the entries themselves, not the data in the entries. Assumes to_sg has From patchwork Wed Mar 3 14:34:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392648 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5614238jap; Wed, 3 Mar 2021 17:56:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz82FWDuMGcDYTl42Hd/idAph/YeAZ0CFkdVrddn1hJeVwguOWd+LrX1/6Z8I4SnqffaEwJ X-Received: by 2002:aa7:c98f:: with SMTP id c15mr1935861edt.231.1614822887258; Wed, 03 Mar 2021 17:54:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822887; cv=none; d=google.com; s=arc-20160816; b=zjzdeoShSWXQS71dA1tqpvcEM6zZs6gb2irev9cpPa640U50aR6TrbWS7GesEWMZ/j zLMCWZNSwfddzRKWww9tdXJNf+kuzfeqwXS9W2KCUh5YydZOG9kqQnEh7Yky/+ZdTt7o V/+MOkw63GZcz58jdDsNSd3qBf/awqQG/R3x7UDwRlXyRA8TidC05ePc7cRf9m2RlPiz P2MJT1LTS5QXhPz1IVRUK/nquFp1fwMEuky8D3qToUaeRujuz1xxH1kCOR7vq1VjyRMT Nuowc5ivqOpyHur25P+w36lj/T6mNgWB/3UvQYCb1fBSNx0xX1Cfb99cC3DjwPKgx87H yHDg== 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=HZrsJeCHjZzLqDs78jg58TD58YS3CDAKgLNjuHszhbU=; b=S1txuxZIDY0LXp8/SzvaNyz4jhQXJ+PgZ+qEOFk3R1ni8S7Dzw36TXXtlz4xVUyIDs WO4Ub3TrYELRRMB+MCMXq/phlFWQrq4yxGxZDvkSoLmsBFB5Q1UJvU+QUoYOSA3NeBkG kO4vfEP+tZuA9gpb1CzFy6wYAq3XvZGCLxGmuu2VbBM88LMHnkpPxWJO58UCM8I3QGyn LdpxyOPCKyxpu01Ra+F+mcY/2TbJdBZ9QddGbbK6MMdOkePU8FeX8M+oHKVNTEUjIevL aUFGwIYxNdZBNIb3hTG1rFjfre3Hifprq58SvCG7gwVXRqmyZBNggZhZBAHM3btFGKHL SvzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fsK4tgYS; 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 p17si16189393ejd.307.2021.03.03.17.54.47; Wed, 03 Mar 2021 17:54:47 -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=fsK4tgYS; 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 S232359AbhCDAHV (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239696AbhCCOhZ (ORCPT ); Wed, 3 Mar 2021 09:37:25 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47D6EC0611C0 for ; Wed, 3 Mar 2021 06:35:00 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id d11so23925864wrj.7 for ; Wed, 03 Mar 2021 06:35:00 -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=HZrsJeCHjZzLqDs78jg58TD58YS3CDAKgLNjuHszhbU=; b=fsK4tgYSmAtd236Nx4kix67WOEAP8Vq1qYBvdI4sTw930KBO3MiQI2ZR+ZTYrg+mU8 dqt/ute+MemtwlFyuFQVWKSaBE6FjUvnphQhfN/3dK1UzoWjkXahHEMDbY4hSDh1GtV5 tOl+B9q6QxeYaIs9DHZiN2Qt3TXmRAnhx1eHx9Q+8GKbEGkNipFHDsbnhtUiae8nwMIr J9f+PFqquA4pjI/2wN9MtoOvNZrQUPUQBJRxvKqnX3BTLf5sQNcFHmglHEdK9bMyAOEk xFxeoKk/xAlRgU9d7E8Ebd+OwV5os2DR1yalbq0EF4LGnC6LQ7Az/Uaol1uzJs+Tguj8 VmYA== 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=HZrsJeCHjZzLqDs78jg58TD58YS3CDAKgLNjuHszhbU=; b=ITcCy4nUmNSDVZFTaBUVQaPY1QGYSCkuNQLOojHtRzn7u0LXSbzPa+3bdWp3GEXcq+ 6DQ7I1WfgLzvb6UHOiqDfJwwoiUjOyCbJafShM8J69Uk5IKEKc3opZJyTMoNlt1bFDT6 GMNf72ARtb5uQjKCi1wPr7xIZoOrVWkZwk+hN/kphRLRkKt612+irqqCB13j1064xHbP rAtlu9dzEBm+Tuv8sbbel/kIVfsEx2NSHahsLnl/Y9IzE8cNLXJhPJpHUl6eHybWvG2M c3IOoIiGftBMzdrx9FswiO0xLKHQAvpFavl2sgY9QWYwOOQBXAWXpgtqJtP4N3TSMTcd UBsQ== X-Gm-Message-State: AOAM531oZIjVTzbuPc1ltBf7f776NVpw6T3Zjl71xlA8DHIojArmPwki roZmExMP1JkuhDthQViRRCfMYQ== X-Received: by 2002:adf:edc3:: with SMTP id v3mr26709243wro.79.1614782098770; Wed, 03 Mar 2021 06:34:58 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.34.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:34:58 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Ayush Sawal , Vinay Kumar Yadav , Rohit Maheshwari , Herbert Xu , "David S. Miller" , Manoj Malviya , Atul Gupta , Jitendra Lulla , M R Gowda , Harsh Jain , linux-crypto@vger.kernel.org Subject: [PATCH 03/10] crypto: chelsio: chcr_core: Fix some kernel-doc issues Date: Wed, 3 Mar 2021 14:34:42 +0000 Message-Id: <20210303143449.3170813-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/chelsio/chcr_core.c:2: warning: wrong kernel-doc identifier on line: drivers/crypto/chelsio/chcr_algo.c:806: warning: Function parameter or member 'wrparam' not described in 'create_cipher_wr' drivers/crypto/chelsio/chcr_algo.c:806: warning: Excess function parameter 'req' description in 'create_cipher_wr' drivers/crypto/chelsio/chcr_algo.c:806: warning: Excess function parameter 'ctx' description in 'create_cipher_wr' drivers/crypto/chelsio/chcr_algo.c:806: warning: Excess function parameter 'qid' description in 'create_cipher_wr' drivers/crypto/chelsio/chcr_algo.c:806: warning: Excess function parameter 'op_type' description in 'create_cipher_wr' drivers/crypto/chelsio/chcr_algo.c:1566: warning: Function parameter or member 'req' not described in 'create_hash_wr' drivers/crypto/chelsio/chcr_algo.c:1566: warning: Function parameter or member 'param' not described in 'create_hash_wr' Cc: Ayush Sawal Cc: Vinay Kumar Yadav Cc: Rohit Maheshwari Cc: Herbert Xu Cc: "David S. Miller" Cc: Manoj Malviya Cc: Atul Gupta Cc: Jitendra Lulla Cc: M R Gowda Cc: Harsh Jain Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/chelsio/chcr_algo.c | 8 +++----- drivers/crypto/chelsio/chcr_core.c | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) -- 2.27.0 diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c index f5a336634daa6..f77d3fd962bf8 100644 --- a/drivers/crypto/chelsio/chcr_algo.c +++ b/drivers/crypto/chelsio/chcr_algo.c @@ -797,10 +797,7 @@ static inline void create_wreq(struct chcr_context *ctx, /** * create_cipher_wr - form the WR for cipher operations - * @req: cipher req. - * @ctx: crypto driver context of the request. - * @qid: ingress qid where response of this WR should be received. - * @op_type: encryption or decryption + * @wrparam: Container for create_cipher_wr()'s parameters */ static struct sk_buff *create_cipher_wr(struct cipher_wr_param *wrparam) { @@ -1559,7 +1556,8 @@ static inline void chcr_free_shash(struct crypto_shash *base_hash) /** * create_hash_wr - Create hash work request - * @req - Cipher req base + * @req: Cipher req base + * @param: Container for create_hash_wr()'s parameters */ static struct sk_buff *create_hash_wr(struct ahash_request *req, struct hash_wr_param *param) diff --git a/drivers/crypto/chelsio/chcr_core.c b/drivers/crypto/chelsio/chcr_core.c index f91f9d762a45e..f03ef4a23f96d 100644 --- a/drivers/crypto/chelsio/chcr_core.c +++ b/drivers/crypto/chelsio/chcr_core.c @@ -1,4 +1,4 @@ -/** +/* * This file is part of the Chelsio T4/T5/T6 Ethernet driver for Linux. * * Copyright (C) 2011-2016 Chelsio Communications. All rights reserved. From patchwork Wed Mar 3 14:34:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392642 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5613093jap; Wed, 3 Mar 2021 17:54:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeo4z41WO/G00O7xGacYmTmQbhxU2iJQnBVMqQ8RQtfIyCzGuMI4oCphWQYyz1zVuyiY50 X-Received: by 2002:a17:906:6095:: with SMTP id t21mr1642008ejj.384.1614822886926; Wed, 03 Mar 2021 17:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822886; cv=none; d=google.com; s=arc-20160816; b=PEFNSB2IMYV1PTfGE52LWuZ7dZM07CTBZklyWI2DzR7iTmzpvblmLeZshPiyspUBj6 8uWVmvK/QK8NZV4I6UU395mHDhk1LdCYJFHrd4SmYIFT/Hu0RbRpsHYFgmh/n7Jx94aQ NEGsp3HtGwmOnnMuJrAZDIVY/EG7XujDgZVxpsRYssKVdf1f7a6NxVd3/YB/T3ZtvCto wiqeHvRSHZXbC7QZcFCsU1EPF6Icya/Gthj4PP+5UA6XTbHIhChhZ7RkckzHpptO96vc VMTyZnZqQ5/7UaAK2+6a8MCmsQZ5wDSkyJ5kWMxAa7Yq8tLovzpqKMa4SpWhgracGyAb GCjA== 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=GVJx+OIpfKowVFAHFOdCV34ApK3YA2W1l4+0ZHpyDsw=; b=nBnWCHfDtuarHOWF+oQW0JV0SNsVOmZdVRlq8Q7slhp+7RPFa67ygB2lVCeslWVQ9V B+ftpO7+aUmntvdCaw1nVXL+w5ujEq+tnN13twBuNP8diE3z/qUOCMxqoO6yrBCc4SIz JW19kX7iOe9WbNIKwRQGocYyVXVCfdTyr0SaRw86JaUfFUGk4zKIxk9lznlsMFzoGhFO b3XsBE+JFRCA7WLzCk11Rbbj1EPDUj3Ny145NSwfapOyYXNMgQ9BXhpp4R8dtHtqUq5s ImGcKsoGQOHXIZFiSorU1KnQEuBLL1Ajw/4quQ2fpYfhr9zppdKnibWC8OxHOSfmEnuN Rz0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OneTgoj3; 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 p17si16189393ejd.307.2021.03.03.17.54.46; Wed, 03 Mar 2021 17:54:46 -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=OneTgoj3; 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 S239938AbhCDAHV (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243811AbhCCOhq (ORCPT ); Wed, 3 Mar 2021 09:37:46 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086A9C0611C2 for ; Wed, 3 Mar 2021 06:35:02 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id v15so23937116wrx.4 for ; Wed, 03 Mar 2021 06:35:01 -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=GVJx+OIpfKowVFAHFOdCV34ApK3YA2W1l4+0ZHpyDsw=; b=OneTgoj343vuzv6eLpdMk7KlamRIjQ+zwEP4ByQvLTClzJw/vompYIPqNAcX0/eHud mRoCZExt2LM8evV6Eev/Q5a+ox3XLp0K7SeWY51eZThyFmxBmjDn/xBsEvp2Z5E/4oai 39uATGESAQRWkd+4/eTtsZ3kpZb2BTvPmoarJIOKQ28ovA4Xz9duL2iFsPxBM8qFxfyo aYLYwVJ8Q1htY77gm/0prxmwzZDJ9Nd7Jo+v3SABrWCoUECnIyXfWsifBKTw2E/GJKtZ MWu3kWfOxYTe6mgt5d2L0mJJdmeabHqm6HkszCOF3zwlFU+VWGf3v/OvWYok948++aoA NPcA== 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=GVJx+OIpfKowVFAHFOdCV34ApK3YA2W1l4+0ZHpyDsw=; b=rXE4QAFmYQ5gDeAZuSP7Pn4XSJiPXsRPBH8ICkE13pbS6qQYZl0iep2ZQzDWTXCnCU zBSSUlC20T9VPSXHh7a/y0oz3u0GaCxBIjGqKuoWUJin0gh6ORBXCJj35Tg/+s18mt8R KNfTs4uvfx0YIcuc2aj7fSWqXE+DeOzoV4oQ7L9ZojM2whzKQEFMv6tHVluelrkbBWPc grbnNSljTb1qdrUK2XjU+3WsKTLK1tq2FyrMjCt/tdO9n9GcueNJTYjAj1PDQ1N4ORlK c0xfwkq/i6Ro9/lK8/WKN3x79a80tYBuJVs+dz8mZEUrW5WIdoCfClBGMokYihewiiCd 52mg== X-Gm-Message-State: AOAM533GGcjDKwhh3pv4azZez+P4msZosQLf42HoSDDa6Qi7PSrF7g2J o3oYG3gUYkIf0RCMfq7502CB/w== X-Received: by 2002:a05:6000:1788:: with SMTP id e8mr28068298wrg.171.1614782100775; Wed, 03 Mar 2021 06:35:00 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.34.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:34:59 -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 04/10] crypto: ux500: hash: hash_core: Fix worthy kernel-doc headers and remove others Date: Wed, 3 Mar 2021 14:34:43 +0000 Message-Id: <20210303143449.3170813-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The ones remove here not only fail to conform to kernel-doc, but also provide no value, so let's remove them completely in this case. Fixes the following W=1 kernel build warning(s): drivers/crypto/ux500/hash/hash_core.c:368: warning: Function parameter or member 'ctx' not described in 'hash_get_device_data' drivers/crypto/ux500/hash/hash_core.c:368: warning: Excess function parameter 'hash_ctx' description in 'hash_get_device_data' drivers/crypto/ux500/hash/hash_core.c:551: warning: expecting prototype for hash_init(). Prototype was for ux500_hash_init() instead drivers/crypto/ux500/hash/hash_core.c:592: warning: Function parameter or member 'length' not described in 'hash_processblock' drivers/crypto/ux500/hash/hash_core.c:1302: warning: expecting prototype for hash_update(). Prototype was for ahash_update() instead drivers/crypto/ux500/hash/hash_core.c:1322: warning: expecting prototype for hash_final(). Prototype was for ahash_final() instead drivers/crypto/ux500/hash/hash_core.c:1622: warning: Function parameter or member 'device_data' not described in 'ahash_algs_register_all' drivers/crypto/ux500/hash/hash_core.c:1622: warning: expecting prototype for hash_algs_register_all(). Prototype was for ahash_algs_register_all() instead drivers/crypto/ux500/hash/hash_core.c:1647: warning: Function parameter or member 'device_data' not described in 'ahash_algs_unregister_all' drivers/crypto/ux500/hash/hash_core.c:1647: warning: expecting prototype for hash_algs_unregister_all(). Prototype was for ahash_algs_unregister_all() instead drivers/crypto/ux500/cryp/cryp.c:19: warning: Incorrect use of kernel-doc format: * cryp_wait_until_done - wait until the device logic is not busy drivers/crypto/ux500/cryp/cryp.c:22: warning: Function parameter or member 'device_data' not described in 'cryp_wait_until_done' drivers/crypto/ux500/cryp/cryp.c:22: warning: expecting prototype for ST(). Prototype was for cryp_wait_until_done() instead drivers/crypto/ux500/cryp/cryp.c:292: warning: Function parameter or member 'cryp_mode' not described in 'cryp_save_device_context' drivers/crypto/ux500/cryp/cryp_irq.c:21: warning: Function parameter or member 'device_data' not described in 'cryp_enable_irq_src' drivers/crypto/ux500/cryp/cryp_irq.c:21: warning: Function parameter or member 'irq_src' not described in 'cryp_enable_irq_src' drivers/crypto/ux500/cryp/cryp_irq.c:21: warning: expecting prototype for ST(). Prototype was for cryp_enable_irq_src() instead 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.c | 5 +++-- drivers/crypto/ux500/cryp/cryp_core.c | 5 +++-- drivers/crypto/ux500/cryp/cryp_irq.c | 2 +- drivers/crypto/ux500/hash/hash_core.c | 15 +++++---------- 4 files changed, 12 insertions(+), 15 deletions(-) -- 2.27.0 diff --git a/drivers/crypto/ux500/cryp/cryp.c b/drivers/crypto/ux500/cryp/cryp.c index 9866c2a5e9a70..759d0d9786fd1 100644 --- a/drivers/crypto/ux500/cryp/cryp.c +++ b/drivers/crypto/ux500/cryp/cryp.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: Jonas Linde for ST-Ericsson. @@ -15,7 +15,7 @@ #include "cryp_p.h" #include "cryp.h" -/** +/* * cryp_wait_until_done - wait until the device logic is not busy */ void cryp_wait_until_done(struct cryp_device_data *device_data) @@ -285,6 +285,7 @@ int cryp_configure_init_vector(struct cryp_device_data *device_data, * other device context parameter * @device_data: Pointer to the device data struct for base address. * @ctx: Crypto device context + * @cryp_mode: Mode: Polling, Interrupt or DMA */ void cryp_save_device_context(struct cryp_device_data *device_data, struct cryp_device_context *ctx, 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; diff --git a/drivers/crypto/ux500/cryp/cryp_irq.c b/drivers/crypto/ux500/cryp/cryp_irq.c index 7ebde69e8c76b..6d2f07bec98a7 100644 --- a/drivers/crypto/ux500/cryp/cryp_irq.c +++ b/drivers/crypto/ux500/cryp/cryp_irq.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: Jonas Linde for ST-Ericsson. diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index da284b0ea1b26..bcaf6ba3e9235 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -356,7 +356,7 @@ static int hash_enable_power(struct hash_device_data *device_data, /** * hash_get_device_data - Checks for an available hash device and return it. - * @hash_ctx: Structure for the hash context. + * @ctx: Structure for the hash context. * @device_data: Structure for the hash device. * * This function check for an available hash device and return it to @@ -542,7 +542,7 @@ static bool hash_dma_valid_data(struct scatterlist *sg, int datasize) } /** - * hash_init - Common hash init function for SHA1/SHA2 (SHA256). + * ux500_hash_init - Common hash init function for SHA1/SHA2 (SHA256). * @req: The hash request for the job. * * Initialize structures. @@ -585,6 +585,7 @@ static int ux500_hash_init(struct ahash_request *req) * @device_data: Structure for the hash device. * @message: Block (512 bits) of message to be written to * the HASH hardware. + * @length: Message length * */ static void hash_processblock(struct hash_device_data *device_data, @@ -1295,7 +1296,7 @@ void hash_get_digest(struct hash_device_data *device_data, } /** - * hash_update - The hash update function for SHA1/SHA2 (SHA256). + * ahash_update - The hash update function for SHA1/SHA2 (SHA256). * @req: The hash request for the job. */ static int ahash_update(struct ahash_request *req) @@ -1315,7 +1316,7 @@ static int ahash_update(struct ahash_request *req) } /** - * hash_final - The hash final function for SHA1/SHA2 (SHA256). + * ahash_final - The hash final function for SHA1/SHA2 (SHA256). * @req: The hash request for the job. */ static int ahash_final(struct ahash_request *req) @@ -1615,9 +1616,6 @@ static struct hash_algo_template hash_algs[] = { } }; -/** - * hash_algs_register_all - - */ static int ahash_algs_register_all(struct hash_device_data *device_data) { int ret; @@ -1640,9 +1638,6 @@ static int ahash_algs_register_all(struct hash_device_data *device_data) return ret; } -/** - * hash_algs_unregister_all - - */ static void ahash_algs_unregister_all(struct hash_device_data *device_data) { int i; From patchwork Wed Mar 3 14:34:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392643 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5613112jap; Wed, 3 Mar 2021 17:54:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJozKngwTgeMSTGMPstf/onX08rsHADYqyInaYPbtxKzB4m0kAp1OPWuRgV21QuVu8IvEr X-Received: by 2002:a17:906:6817:: with SMTP id k23mr1649876ejr.6.1614822888992; Wed, 03 Mar 2021 17:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822888; cv=none; d=google.com; s=arc-20160816; b=m+qgQk/1RZOBpxbzsBC67VP4ppKvYrs8y9TMdA6/bBEW0JC4RW5MaOBXGpK6kLKUKW KBe9xKNEZiqmW2a8vqjWe/N9unrJuxJAvrSAomX3NiYTEfFOyfaUOGhBA5eV5aBA6UM+ RZ9LKbxrbC7WTCv46HFrG4Yyy+SddIOQHpga2Ppi+r4vbroPdyzs6OAaTPhHMh50IhbB C+plqZUUS7JwGSTaoyMj3TY9fqwUU3K5Jj7vJKKldxBkEpTa7nWgHufp2NRRxY7Mf+XP mpAHr1EcrWSAW8EVR82zJB6FJIH00RcYnVjn2cqW4sMbISgZvGneNiO1QmHtlCAx2xv0 FDGw== 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=39xrqSAYtv9KigkLBZKC9OTmCVVdo8yE25LRar3D2UY=; b=wrs0KysTjrl9HaaJVSW7eHXm4XXMUsWKI6UVoeoSTOdsmA3Di6ne9WxldRKxVtVbjL 0uORiJaYA0yg07719sbfvLtbRPkvfC1qEJ+lQDanNjtoq/msAca14TE3NWH/8sb0TSqm ZcQO7wVJudjZonl7XjBRfXNM0WtyEx+6WL4eFREUrE0XeEnA4q8pSxDfF7MfBgEsqg6U XVP3DuMR1SLdWZvhVXU+PozCDq3Z/9zyD1IKlLsFbevsrpotVD1dcCWFUEHEI31rpkT7 wD02mzLvHWirj2Xnwxp0Bzwxyr+zDnI4gQ/gs7nsCJ8D+czlNa9aAIn6kyG8BlDp78FT 6n5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VQ9cM0oq; 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 p17si16189393ejd.307.2021.03.03.17.54.48; Wed, 03 Mar 2021 17:54: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=VQ9cM0oq; 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 S1345736AbhCDAHX (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243813AbhCCOhu (ORCPT ); Wed, 3 Mar 2021 09:37:50 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5E7EC0611C3 for ; Wed, 3 Mar 2021 06:35:02 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id d11so23926000wrj.7 for ; Wed, 03 Mar 2021 06:35:02 -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=39xrqSAYtv9KigkLBZKC9OTmCVVdo8yE25LRar3D2UY=; b=VQ9cM0oqM57huxiYVr2jgosLOhPO9LZ+aUzWHCnyELnzuNJn++8bWgghXseyRujsgc 01JhEPHgIBgtGAEwYWVUTeFpryv+93wmNSS+tzfx5qhafhHKCKiTq1GcxWvFfkx9HW91 7qYb61R0W7QdwJc6MJdsdi7EEvPys8CNJldPhsNcFQlW4g8p0Crk6yoklRII1X8yAJWO 7a6RYhPoj/BNeqB/f808qaWhFuXzohjNhQCOTjpj8JOK7xRmjjZCd/nA1rziRAnmLbN6 Rud3vtd23PwrlJdo9BerAR6ywTb/1c0bQRZU1Oayfx3tWT1UoKMIfGYnGxfj7+I/aJfC Cgfg== 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=39xrqSAYtv9KigkLBZKC9OTmCVVdo8yE25LRar3D2UY=; b=jj7hk07LzkFDtlzhQq06CpqMdM0g2I0HGalZEf2YM9yZxuwklSYMjTBMBgOa6GREBK ZTAdjFrdFiZ9Y1vQLhL/8uq0mMOk1ZwHuCnoFUsHxtngl5tlG6PYujhF1LeuhLWsaUeu cT1e0n4WWZ2BCe/p506JwhOoH9BTEt3Rz35pT+frHqqHJ3UEXwUnYxcf4myVe7siTs7O +J1US/+W/jlncLCgtL3bRZ7pwRQCLCOtxXC1KNoqRVnTCJwbLCWecINOe7MgpuorZDMI 1TIzShV/QQGC9tvCHtVHodLNIj403vJUINhgLCEu38z8P4lfhuE+nAQzzVyHSyfP3BNP wjJg== X-Gm-Message-State: AOAM5305lO3kHAZg9JrHL/wDwlwKI9RiNvO+YMvDQqcXeFwATp1CaDrt /K90e+z9V3DVBek6Xm3OZJtc7w== X-Received: by 2002:a5d:4d09:: with SMTP id z9mr26973841wrt.426.1614782101662; Wed, 03 Mar 2021 06:35:01 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:35:01 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Daniele Alessandrelli , Declan Murphy , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Subject: [PATCH 05/10] crypto: keembay: ocs-hcu: Fix incorrectly named functions/structs Date: Wed, 3 Mar 2021 14:34:44 +0000 Message-Id: <20210303143449.3170813-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/keembay/ocs-hcu.c:107: warning: expecting prototype for struct ocs_hcu_dma_list. Prototype was for struct ocs_hcu_dma_entry instead drivers/crypto/keembay/ocs-hcu.c:127: warning: expecting prototype for struct ocs_dma_list. Prototype was for struct ocs_hcu_dma_list instead drivers/crypto/keembay/ocs-hcu.c:610: warning: expecting prototype for ocs_hcu_digest(). Prototype was for ocs_hcu_hash_update() instead drivers/crypto/keembay/ocs-hcu.c:648: warning: expecting prototype for ocs_hcu_hash_final(). Prototype was for ocs_hcu_hash_finup() instead Cc: Daniele Alessandrelli Cc: Declan Murphy Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/keembay/ocs-hcu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.27.0 diff --git a/drivers/crypto/keembay/ocs-hcu.c b/drivers/crypto/keembay/ocs-hcu.c index 81eecacf603ad..d522757855fb0 100644 --- a/drivers/crypto/keembay/ocs-hcu.c +++ b/drivers/crypto/keembay/ocs-hcu.c @@ -93,7 +93,7 @@ #define OCS_HCU_WAIT_BUSY_TIMEOUT_US 1000000 /** - * struct ocs_hcu_dma_list - An entry in an OCS DMA linked list. + * struct ocs_hcu_dma_entry - An entry in an OCS DMA linked list. * @src_addr: Source address of the data. * @src_len: Length of data to be fetched. * @nxt_desc: Next descriptor to fetch. @@ -597,7 +597,7 @@ int ocs_hcu_hash_init(struct ocs_hcu_hash_ctx *ctx, enum ocs_hcu_algo algo) } /** - * ocs_hcu_digest() - Perform a hashing iteration. + * ocs_hcu_hash_update() - Perform a hashing iteration. * @hcu_dev: The OCS HCU device to use. * @ctx: The OCS HCU hashing context. * @dma_list: The OCS DMA list mapping the input data to process. @@ -632,7 +632,7 @@ int ocs_hcu_hash_update(struct ocs_hcu_dev *hcu_dev, } /** - * ocs_hcu_hash_final() - Update and finalize hash computation. + * ocs_hcu_hash_finup() - Update and finalize hash computation. * @hcu_dev: The OCS HCU device to use. * @ctx: The OCS HCU hashing context. * @dma_list: The OCS DMA list mapping the input data to process. From patchwork Wed Mar 3 14:34:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392644 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5613165jap; Wed, 3 Mar 2021 17:54:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpDNczS2oB4b0Xc6Nqa30qniOAO32dSbdhGa4+T8tebQAOCQrmJD6kXOCyG+xk72bZN5FL X-Received: by 2002:a17:907:10c1:: with SMTP id rv1mr1675382ejb.5.1614822891763; Wed, 03 Mar 2021 17:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822891; cv=none; d=google.com; s=arc-20160816; b=XO2f2xiwVkPBINbcMqvzYI/jYoCSRUZ6SMZ49XeFZ/c0epoReM/0HWDekxDPTXUAxt /hF6J4O8z4ZIJRIWdolE6VO8Fxx8Mo5Qv4H6/KTgWjeArpnCiCgKZdpytH1OE0P3h/Fl n9Lz5Hydi9gNyBBItIxsumJJZWTWFnH7PecEfAhcFj21zOrwxo5zXxooZk8NI03a3bXw iu8IjnnhNqO9oYA9O526wEArqkB2l8Q8U9YV4HMcBedlDAr/ETNFIoDVDs9UhIAkl/Qw JZzTXBah8V0mgsjuaLe0+FPab90KE5o1cCuqE2LfNviQwSXoDB/TsFjpBvKToToOUY93 UbBA== 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=TyCRNcW9jhoQTNtiMi/xmI1j72eDsy4y59EVvo0Z4FE=; b=E4RXDzxdzMiFx2ZaDHPQo5QMtjG8NyHBgl6zZx+i0rVH4hHhl3/SHqecPyfvgKBAHu sat39w1uU76tuJY8segiCBMD1dqeO1Au05qe15xjvXjAkhwUd4CnzogQmk3drOVu59EL cMHpO40X4nIZliSGOknn4qgm1BTIB46AGdoFCYKyTIgbxMe/Jwe9afA4ZPITrGmalcwm Yu/iNeoQRLk/Lm/nOi8Sx5tcAULINyCuKMq10wlzHAbgs2uRFYcricyKryc1bzLY2zKT +tglr2VcX85sHxkOVFEPwIjjffdbKz1YAtMOkz3cuxUso1yczyuqj4otEhZZbY0ok/Dh qj0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l8UUBG2u; 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 p17si16189393ejd.307.2021.03.03.17.54.51; Wed, 03 Mar 2021 17:54:51 -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=l8UUBG2u; 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 S1357246AbhCDAHY (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243855AbhCCOhw (ORCPT ); Wed, 3 Mar 2021 09:37:52 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34044C0611BD for ; Wed, 3 Mar 2021 06:35:04 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id h98so23906458wrh.11 for ; Wed, 03 Mar 2021 06:35:04 -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=TyCRNcW9jhoQTNtiMi/xmI1j72eDsy4y59EVvo0Z4FE=; b=l8UUBG2uy3M0PPzlV0JbisAYlPqKofn0NrVD5U2bbR5BmLpsStqQ4UYbCQ9ZYOklNX ZnA5xeEviOvpvW/3LNb5j4Ll2Y9l7O9dKYESIGO8aa3vmNYoR4WghDEDiP9PTvHeM/JP XhgdSihASpr4apdI0bH9P5TvVPcSdPYljiLxd0BmcEKMDbWMJyildqTVgZ9gpj/2eLYu 8W9mOw9Z80Ii6YtrUWJLv6Wq/xQG6lpatAmPR5KiuDKhjDXN7HDPdKPhvP2+uYRiL9iS m1G5k4nm8yvYX2LtBU0jB1Gkc9uUxg3WV6o5DiOTJ40RNZ1VaHhRm7aFFea1++YB2p8p CHtQ== 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=TyCRNcW9jhoQTNtiMi/xmI1j72eDsy4y59EVvo0Z4FE=; b=jVd0ujqe2qUG4w3qGmMUfrbgctnv57p1ocKL6svbsZ8oDU9bXTOh7kPe16NdON3KNl yCCN6rIuzdMTdi83shDu8TkrJaUMH+Kj/ybzwgiw/6DM6kEvF+TNfHItr7nZYVi4AeHd 3WZkOP0m/2pqyrU9/8oXGtcaXS/VtoqoRgyLOlT2dTAr0NxC3T/Y19jFWwLJLyISV3N4 fPm4hh5lMDq4nLJ13VUpBLkn57ydR++G7qg/+Bcm3U0qo1IxqkduSzes7y2/N/Dlk8Ol 03rlzVI5YQLJsWMirdkyuP4d4+HCJzK1+fkqkEupGHpiThTxpkcQUQBFZGt7Dvozt96B k/fw== X-Gm-Message-State: AOAM531AzYItIwgzEHuKsQd1LrUZuXOCkdMyQ1k9fLWBqCJVolkj+Z2f /S+XOqHJTpuXEtUXAS6jJNG2vA== X-Received: by 2002:a5d:67c8:: with SMTP id n8mr20592106wrw.351.1614782102888; Wed, 03 Mar 2021 06:35:02 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:35:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Tudor Ambarus , Herbert Xu , "David S. Miller" , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/10] crypto: atmel-ecc: Struct headers need to start with keyword 'struct' Date: Wed, 3 Mar 2021 14:34:45 +0000 Message-Id: <20210303143449.3170813-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/atmel-ecc.c:41: warning: cannot understand function prototype: 'struct atmel_ecdh_ctx ' Cc: Tudor Ambarus Cc: Herbert Xu Cc: "David S. Miller" Cc: Nicolas Ferre Cc: Alexandre Belloni Cc: Ludovic Desroches Cc: linux-crypto@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Lee Jones --- drivers/crypto/atmel-ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/crypto/atmel-ecc.c b/drivers/crypto/atmel-ecc.c index 9bd8e5167be34..66a31e5739f4c 100644 --- a/drivers/crypto/atmel-ecc.c +++ b/drivers/crypto/atmel-ecc.c @@ -26,7 +26,7 @@ static struct atmel_ecc_driver_data driver_data; /** - * atmel_ecdh_ctx - transformation context + * struct atmel_ecdh_ctx - transformation context * @client : pointer to i2c client device * @fallback : used for unsupported curves or when user wants to use its own * private key. From patchwork Wed Mar 3 14:34:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392650 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5614367jap; Wed, 3 Mar 2021 17:56:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwksups9sEsM45UiLqVpKyzkgfumjNjm0Kk8B5/qXp9pH4Ra3WE2cRxdGJ0jrtfDmT+LfKW X-Received: by 2002:aa7:db01:: with SMTP id t1mr1898699eds.77.1614822888324; Wed, 03 Mar 2021 17:54:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822888; cv=none; d=google.com; s=arc-20160816; b=BzPrMDtXZ7KUuPV4EX85h2I6UyrX0OcnQOZHZzHbXwwgFlVOfM7eX5VSvWK8N2tHVL zew3dlrHNeGV8Ix1i25FX+PBWJfCwDW+dOuYZzaVdzHaO21Qw4jTy/QgKNTByjjXpmYi jg3ldoX5DliLs6je3FSx7Lj4W54j4lvAZ2iCq90A+0FaxCvu2wTVCE1pUDuuI4KV2eeS 06cDYTqLn33aC19zQn8/ZTdQoN6CHecR98zwsLsTMO+MLCl2FD8O6/ozAd0xB6iJjS6K xXf4Mt9CaxpgyJc/tafwKzyQhyGzKPB/h8PTBYHuL4EVHkeWoIRGjQf+nbWjse3cUfZ5 LlGQ== 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=51h0lVd1c7+OEvoO2UQG6dIvRRvCEl0n5KWV8010Ypo=; b=PmrRtSkH5/Vc/xmELbZuPQiz1gak0xVChVF29qSmB1ALszB/VpanAE+PGXrWthCDOq vNCh+hLClBbfXCV0UNAsn+d3/w+vj47EiFPgVgG0FEjonQ3T+MukD35/5GgRRkXy+nzC hgaJL1064w5MGqEgvm8N8K55Q6AkCeX0Kr+1hA07bAEAgmHC3smDD2n2+k5ixbUTnf3i SZ/tU25E6NieloTSubx9PuMSSp62k/TRLZ6eQ+J4qYJFuLCM0caxXouvQb60D1Y5Oc2u x8s/rO/7D+JKq4RzrP4w3A4nVaWcoWKnmNvkDHw6HrpLs425YmSwmWvt8aQrMSFOMfOj N9/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GkxKVVq7; 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 p17si16189393ejd.307.2021.03.03.17.54.48; Wed, 03 Mar 2021 17:54: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=GkxKVVq7; 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 S1344113AbhCDAHW (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243833AbhCCOhu (ORCPT ); Wed, 3 Mar 2021 09:37:50 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D09C5C061A27 for ; Wed, 3 Mar 2021 06:35:05 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id j2so11074921wrx.9 for ; Wed, 03 Mar 2021 06:35:05 -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=51h0lVd1c7+OEvoO2UQG6dIvRRvCEl0n5KWV8010Ypo=; b=GkxKVVq7IkiWjmYpMI1QVOgqWdbTVgDmPsYWZtIM68tQPUU+sP13OEYiyBs7aFTC2a zjmRxkMeM+VRRDJ9Q5Rh9pBjyAFKdijQa8mT2gzs9NvNFqiC2NEcVB/uDxFrokKlnXKk bUlxZ6zLSS/x4qjwXKMAAvEP35y0gRtmxAGxNehjhnbhkOQSNXsjL27K/rnVwnn1foky Kyliq/xAiJ2BM7u/vcf/HELPZf6g99B0srUDNT4+SGm3MDy4FO7gs9k1VkIPtuO/G01u 7ysCOpvwI9sSB+zwadrwca55dMboDEOYQ8xBCqNCsZCMQMgDB5Uw0yfMXh3bS4Ffy7Gd OQIg== 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=51h0lVd1c7+OEvoO2UQG6dIvRRvCEl0n5KWV8010Ypo=; b=Rii6bD5zcnZ9rgpCYMoKwATVtyQzbEies16YTxK5zA7bs2Jj25WxIxIQey4peaepbl AWmlw/QnszBPpJw7yG0iXMZgy1/aoOqgBVXpQJTU5H03WwuCZXg+KvEaIAx9P/sxKyu+ oqZ1dn9Pfmx3bXGNhTkqI0Wqtx/i1fLakJckKVd4zNAQopRwWMusvkOhn+utd12pKHuR 4Z0jS8JduCVtdWW5GY0I+bgVzAedhvCHOTKwK1jBtUVEwyBa/LPMEfKvBIri9CR0oqz8 7vn8DfJZd9mZ2xDvD05cmk5nrG8nlOTP/5PjDcTq3kUq4dTkqjb9hzI3tq2+TQgOkmEO ugYA== X-Gm-Message-State: AOAM532J5ws3xA0k3TE74zOhpiIIwp3Ln4fflvHzaO1SooI7gLHuzDK6 GHg6X6wOzAANSws53+KwnafPvw== X-Received: by 2002:a5d:4903:: with SMTP id x3mr23880148wrq.143.1614782104546; Wed, 03 Mar 2021 06:35:04 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.35.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:35:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Horia_Geant=C4=83?= , Aymen Sghaier , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Subject: [PATCH 07/10] crypto: caam: caampkc: Provide the name of the function and provide missing descriptions Date: Wed, 3 Mar 2021 14:34:46 +0000 Message-Id: <20210303143449.3170813-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/caam/caampkc.c:199: warning: expecting prototype for from a given scatterlist(). Prototype was for caam_rsa_count_leading_zeros() instead drivers/crypto/caam/caamalg_qi2.c:87: warning: Function parameter or member 'xts_key_fallback' not described in 'caam_ctx' drivers/crypto/caam/caamalg_qi2.c:87: warning: Function parameter or member 'fallback' not described in 'caam_ctx' Cc: "Horia Geantă" Cc: Aymen Sghaier Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/caam/caamalg_qi2.c | 2 ++ drivers/crypto/caam/caampkc.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/crypto/caam/caamalg_qi2.c b/drivers/crypto/caam/caamalg_qi2.c index a780e627838ae..22e45c5bf2023 100644 --- a/drivers/crypto/caam/caamalg_qi2.c +++ b/drivers/crypto/caam/caamalg_qi2.c @@ -71,6 +71,8 @@ struct caam_skcipher_alg { * @adata: authentication algorithm details * @cdata: encryption algorithm details * @authsize: authentication tag (a.k.a. ICV / MAC) size + * @xts_key_fallback: whether to set the fallback key + * @fallback: the fallback key */ struct caam_ctx { struct caam_flc flc[NUM_OP]; diff --git a/drivers/crypto/caam/caampkc.c b/drivers/crypto/caam/caampkc.c index dd5f101e43f83..e313233ec6de7 100644 --- a/drivers/crypto/caam/caampkc.c +++ b/drivers/crypto/caam/caampkc.c @@ -187,7 +187,8 @@ static void rsa_priv_f_done(struct device *dev, u32 *desc, u32 err, } /** - * Count leading zeros, need it to strip, from a given scatterlist + * caam_rsa_count_leading_zeros - Count leading zeros, need it to strip, + * from a given scatterlist * * @sgl : scatterlist to count zeros from * @nbytes: number of zeros, in bytes, to strip From patchwork Wed Mar 3 14:34:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392652 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5614448jap; Wed, 3 Mar 2021 17:56:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnAN3AJLtQlPHCgJqLhbso7sJBe65Gxln/IqFmUMkC7SLaQLBDQkl8Q+yuvJc7P3+/M0c3 X-Received: by 2002:a17:906:d115:: with SMTP id b21mr1629824ejz.233.1614822889357; Wed, 03 Mar 2021 17:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822889; cv=none; d=google.com; s=arc-20160816; b=juyQlcFbGS0pr3VauylM5NscqobFqSmt0SS51LicGVc680m+kwA2sPBVTRjVY+iuP3 EAX+1yrXl1RIErhlvmBzo2RAWO1N4Ji+sdhUkRMpoqSo+gbH7S40VDZZbqLF88UIkH7S YU40T/w3iZOkzFO0mjqSZI4YQf+wyJBd1267FJfnhBQC19sTgek+6cM7f/v/xfpSAnN3 QlY/1Or6w6N7O3shiQZbpfcnDqc0Fq8CxMwlIWeFJSrNh2YFbSgTEy2bOdvLfb7kAP7G jNonH5LWuvjlRLNTRNzeVA2W6+JP2A+LAUwHqcNVAbWh0QHD1AOjwIH1nveqrvAqU4Hh 1JqQ== 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=4foJK0tE+WL3lsMryI6KM5lFp3YWmzugBxJCQxMDWAg=; b=Hb8xNak3ebbQk/3LNWtE4QRmolQ5bZm6ECRLm046GM1rfv1g6h5O7kVlQSyQx5jf16 j1UtiE6dKwd4Ehu4GtPxlChCcTNR3BFfiY4C45zGUeZAYRHE2Der+TbV/brmCupeGxwg gfLZcWm2IvABdgvyre5rjvOis1xavyEHrPfTgD9aotvdNt+XhNu8m5rCaxdpIh/i+LOM gyjoMrAClHKG/soBlm+S+WlqwUifWv6/J2dpU0MqPnAFP6pqvYAiybhmWD8DlOB/hnwg tFL8oQFT7+cX6whw1BndTOZpQjBUOdJTLMewtFHq0wFnRknQqf6sY6/LCU47l2KAaQEm OBYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=inVGwKaD; 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 p17si16189393ejd.307.2021.03.03.17.54.49; Wed, 03 Mar 2021 17:54:49 -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=inVGwKaD; 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 S1345414AbhCDAHX (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243869AbhCCOhw (ORCPT ); Wed, 3 Mar 2021 09:37:52 -0500 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE0BEC061A2A for ; Wed, 3 Mar 2021 06:35:06 -0800 (PST) Received: by mail-wr1-x42c.google.com with SMTP id e10so23685708wro.12 for ; Wed, 03 Mar 2021 06:35:06 -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=4foJK0tE+WL3lsMryI6KM5lFp3YWmzugBxJCQxMDWAg=; b=inVGwKaDwve1QjGO3jdDapDzAs0FwzTQPLRFIf7SaA3wWNHK40p/mxs0i2GoIsGiHT t7lE3EBbvOM85d3bDMDXRkCIQydJou0eH5L+svxCsdQcZepoyhJyYEDqb6xT505CStDm 4pBfUpT719TsH14oSiB+9sZgSA/A/k+k6gGITlEtZrK7j7RfU2pbR32iG/MwWvLPMcyh CROUzpdIQBrzk5qQbrI7lpgOQIYz1wzDxv6YlUptI6pj7WwOksxLDvuezKPgZN/IIaqC ozTph8dGppYHqhijDMjqB84LSBXZqxTmFlijBAAGDHdrR6Qx/BvU1mhpSwg8Jk6sxGL/ Vo4A== 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=4foJK0tE+WL3lsMryI6KM5lFp3YWmzugBxJCQxMDWAg=; b=TZutCZYiTm6Rg71AMtntdu8r0kacT+7QrlsiXqgPPiybKVy0W4k2Xr7HNwbRmJewj4 +tt+Io11aXYWY2Em3OD/TAIf91hcRBIjVzjQqfus0czqmJ6ix0snURDw5yR9Wv8M3+V9 pNKFabpLRMjdyPQenAiago8qNXSr/XJhKXKo7CWYIUmt37neLe+2mG9ZDG0F+9aqTLaA bhCscCqaQfjjfzHTPXxOA3T4oSOXj1LGNVVv8N6T1zyvyts8uUWJnWrgjuzE+zygz0hT jBb6CcUtF3TCa99IiftkjatfTDTWm/HVrRWuR8oJ8WTSe6O6oqJ9CZsuGK6MvQWV+qWo 0g/A== X-Gm-Message-State: AOAM5321cZexMRuGwkQwlVvJVgko62lrOxyjOidTzIm/e+Os4I9dAYcB bw2eVwaVimFk2byoJXGGtpHn4g== X-Received: by 2002:adf:f3cc:: with SMTP id g12mr18581487wrp.118.1614782105696; Wed, 03 Mar 2021 06:35:05 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.35.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:35:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Breno_Leit=C3=A3o?= , Nayna Jain , Paulo Flabiano Smorigo , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Herbert Xu , "David S. Miller" , Henrique Cerri , linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 08/10] crypto: vmx: Source headers are not good kernel-doc candidates Date: Wed, 3 Mar 2021 14:34:47 +0000 Message-Id: <20210303143449.3170813-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/vmx/vmx.c:23: warning: expecting prototype for Routines supporting VMX instructions on the Power 8(). Prototype was for p8_init() instead Cc: "Breno Leitão" Cc: Nayna Jain Cc: Paulo Flabiano Smorigo Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Herbert Xu Cc: "David S. Miller" Cc: Henrique Cerri Cc: linux-crypto@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/crypto/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/crypto/vmx/vmx.c b/drivers/crypto/vmx/vmx.c index a40d08e75fc0b..7eb713cc87c8c 100644 --- a/drivers/crypto/vmx/vmx.c +++ b/drivers/crypto/vmx/vmx.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/** +/* * Routines supporting VMX instructions on the Power 8 * * Copyright (C) 2015 International Business Machines Inc. From patchwork Wed Mar 3 14:34:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392647 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5614083jap; Wed, 3 Mar 2021 17:56:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpuCtE8p8itvFphbmcWYfgV37Xyu1zOjOpaqPtMjw/waJxO45n/8KvjIFms57nEbI/bO9n X-Received: by 2002:a17:906:a86:: with SMTP id y6mr1682024ejf.354.1614822892073; Wed, 03 Mar 2021 17:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822892; cv=none; d=google.com; s=arc-20160816; b=K+vNfi8u2IH23ghxnVY4XWlsA6JTWbNS3mE56utgsTvZTdkuUm0W0nyeBWMkY3PL3k VZSxuC46WR04VkY9GfrlEmOIoqcLLRTy712+aaiwNCNbzggFLV6ktSM7mSM9C8taNFOr e2SCtSwGrGo1LLv/pfG0/CpAAPGa4lQPSSIqP5/iaYlCgkv3h6W3XfXFNP4zZF4Ft3ux WRHMn7e6CkXkNrmETwHC2Xp4ax+D/zHg7IQfR5T/BidWEiags0YXFjW7c+D9ThyZh3BU DGbDUXwRyNiSWZU6sVwd3rhia2IkFhsAs+H/2Vujy9GqRWb5NpAPJObew1iepzGJ8O7a Yvdw== 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=zaL0nEsFAcBhqqjVU0O9HWEXuIfJLm4ctcMaPZZ2Fv8=; b=gjuh1C6h3IRCUdx/zDA6QXeEMcsSoGE1KcldptvJSzQK8iOQpd1Hewag3BqRIdYexS Sn7MMyEbe/ohhHdP8nHa7WOo3u7pKqsVq+aWH7duBBcJ9jn66bV2P0MFy6TweNb6GAKx h7QePZcFaeJ8cg5y/tsju1X6ksewPyrv1Ktlmzg3TGz0M7lUBLa6ID3R8t1cvC8tvbdn k/lU9vb9UWPMHyu8Ogwr8GOp1AlZKlH5RF2CP0nE20GDQ9gKEMvP3p0gJ6ycOPmwgJaJ No9kzyzJnQ/8hmf78gqaXzfOOHLqbWObRNgG8TZ/20IlfSPzvhRfuueoeqc1nIfVGJ2M dpfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RVPZjH9O; 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 p17si16189393ejd.307.2021.03.03.17.54.51; Wed, 03 Mar 2021 17:54:52 -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=RVPZjH9O; 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 S1345360AbhCDAH1 (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381976AbhCCOi7 (ORCPT ); Wed, 3 Mar 2021 09:38:59 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FFC8C061A2D for ; Wed, 3 Mar 2021 06:35:08 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id b18so17443295wrn.6 for ; Wed, 03 Mar 2021 06:35:08 -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=zaL0nEsFAcBhqqjVU0O9HWEXuIfJLm4ctcMaPZZ2Fv8=; b=RVPZjH9OeD0Q3vBT9F5IcbacI94H0pMjvBOauWacuWRPZTgfR3YfdqguV/ZnQDvyFH 4P0qemUuKRuRUt8Yc8SZrnHKHvtKQ9cGaKJkpi6NIBBNCPROCfc4fEnXyOkHO7eExPHY 4jDRu+U+3z9ZvSawgncZF2cWI5f5A6QI5pWIcPkxJnfCdOiabSq86MyGS5SDWrKHWd5z kT0NjYSc77OLA78GE73g5v2hWNoB+wAS1Z8FrnLXSYukpAFCPKifaMNkyHTCqOcVHCUZ hIW42ufS8aRvEBZPanIzd54n2vgOLTEKJsIyAp+6gfkoWBmEH+jOBHc2+9oOUOu+1ZW1 7Xag== 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=zaL0nEsFAcBhqqjVU0O9HWEXuIfJLm4ctcMaPZZ2Fv8=; b=oM3ti7sEobEFlp1xr7bQjwyMAGuAPtxvhZQxcubefKcM9A11X8ct2Dze9Hc/CqGzCo td/wqtdYnWYTAKilYE96yr/3R8Zw3AXCQxua1HBKx/4aZwB5B8N0XsA/pLEzvU+zIKB/ YOB5nh/GTAJEcv2bOafl5yUhvGfw0qUcMXVz2Ls6aNW1cnmlofWWups/SwRrPGdpOy1v iXSioT2ixYzwX5Fc/IgKvJDvXI525L1TZgWS4yMI6dTSa5iTohcSiXEvBON46/WAfXhz O8qLc+2RF/xsDyjlcRYlTqWQURwQDGvBVxLrj4sGglL+5S+P/1XWPfKC0agonU/wfiCN VP0g== X-Gm-Message-State: AOAM530RyOElz3eYTUsxqEOOZNwrF319iDW/KaNco4Tn7fBH+CKbkom2 M7ZqG2VG+BaupnLvl9Bm9f9pKQ== X-Received: by 2002:adf:8341:: with SMTP id 59mr3553695wrd.130.1614782107307; Wed, 03 Mar 2021 06:35:07 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:35:06 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Breno_Leit=C3=A3o?= , Nayna Jain , Paulo Flabiano Smorigo , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Herbert Xu , "David S. Miller" , Kent Yoder , linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 09/10] crypto: nx: nx-aes-cbc: Repair some kernel-doc problems Date: Wed, 3 Mar 2021 14:34:48 +0000 Message-Id: <20210303143449.3170813-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/nx/nx-aes-cbc.c:24: warning: Function parameter or member 'tfm' not described in 'cbc_aes_nx_set_key' drivers/crypto/nx/nx-aes-cbc.c:24: warning: Function parameter or member 'in_key' not described in 'cbc_aes_nx_set_key' drivers/crypto/nx/nx-aes-cbc.c:24: warning: Function parameter or member 'key_len' not described in 'cbc_aes_nx_set_key' drivers/crypto/nx/nx-aes-cbc.c:24: warning: expecting prototype for Nest Accelerators driver(). Prototype was for cbc_aes_nx_set_key() instead drivers/crypto/nx/nx_debugfs.c:34: warning: Function parameter or member 'drv' not described in 'nx_debugfs_init' drivers/crypto/nx/nx_debugfs.c:34: warning: expecting prototype for Nest Accelerators driver(). Prototype was for nx_debugfs_init() instead drivers/crypto/nx/nx.c:31: warning: Incorrect use of kernel-doc format: * nx_hcall_sync - make an H_COP_OP hcall for the passed in op structure drivers/crypto/nx/nx.c:43: warning: Function parameter or member 'nx_ctx' not described in 'nx_hcall_sync' drivers/crypto/nx/nx.c:43: warning: Function parameter or member 'op' not described in 'nx_hcall_sync' drivers/crypto/nx/nx.c:43: warning: Function parameter or member 'may_sleep' not described in 'nx_hcall_sync' drivers/crypto/nx/nx.c:43: warning: expecting prototype for Nest Accelerators driver(). Prototype was for nx_hcall_sync() instead drivers/crypto/nx/nx.c:209: warning: Function parameter or member 'nbytes' not described in 'trim_sg_list' Cc: "Breno Leitão" Cc: Nayna Jain Cc: Paulo Flabiano Smorigo Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Herbert Xu Cc: "David S. Miller" Cc: Kent Yoder Cc: linux-crypto@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Lee Jones --- drivers/crypto/nx/nx-aes-cbc.c | 2 +- drivers/crypto/nx/nx.c | 5 +++-- drivers/crypto/nx/nx_debugfs.c | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) -- 2.27.0 diff --git a/drivers/crypto/nx/nx-aes-cbc.c b/drivers/crypto/nx/nx-aes-cbc.c index 92e921eceed75..d6314ea9ae896 100644 --- a/drivers/crypto/nx/nx-aes-cbc.c +++ b/drivers/crypto/nx/nx-aes-cbc.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/** +/* * AES CBC routines supporting the Power 7+ Nest Accelerators driver * * Copyright (C) 2011-2012 International Business Machines Inc. diff --git a/drivers/crypto/nx/nx.c b/drivers/crypto/nx/nx.c index 1d0e8a1ba1605..010e87d9da36b 100644 --- a/drivers/crypto/nx/nx.c +++ b/drivers/crypto/nx/nx.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/** +/* * Routines supporting the Power 7+ Nest Accelerators driver * * Copyright (C) 2011-2012 International Business Machines Inc. @@ -200,7 +200,8 @@ struct nx_sg *nx_walk_and_build(struct nx_sg *nx_dst, * @sg: sg list head * @end: sg lisg end * @delta: is the amount we need to crop in order to bound the list. - * + * @nbytes: length of data in the scatterlists or data length - whichever + * is greater. */ static long int trim_sg_list(struct nx_sg *sg, struct nx_sg *end, diff --git a/drivers/crypto/nx/nx_debugfs.c b/drivers/crypto/nx/nx_debugfs.c index 1975bcbee9974..ee7cd88bb10a7 100644 --- a/drivers/crypto/nx/nx_debugfs.c +++ b/drivers/crypto/nx/nx_debugfs.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -/** +/* * debugfs routines supporting the Power 7+ Nest Accelerators driver * * Copyright (C) 2011-2012 International Business Machines Inc. From patchwork Wed Mar 3 14:34:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392645 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5613175jap; Wed, 3 Mar 2021 17:54:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsvB7WKZQfdHZ7DJQRAkllg3XvswOu/XOIrHWPfWxDHGyVHgODe06XBoJEL5FYtNhzgTZ5 X-Received: by 2002:aa7:c3c4:: with SMTP id l4mr1842375edr.335.1614822892403; Wed, 03 Mar 2021 17:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614822892; cv=none; d=google.com; s=arc-20160816; b=DGX5ISiBWsu6Q/ond6DBP2t0cgfan8HXZ9DKDGqWHaA0GSCW29BIKxzM5idQQOKrN5 GqTHB3ouyt3hJ2257nsFlpirMW1zq1HsIKFEjg/hvt6UbCjVU4nuu5/WbkNYod5xCWGk N2darK+kSdOlIhqGzSzU15Ly0GZd1/YiLUMCiienNC2QVPvAiuGHzVDhFLR3wqh7zrvA qsFMxe/Ov8RNZK6t2wcQN6A0BHgS02xUco3lHa0S0G7sXyZe44Q6Or8GALzkeHkui+MX BujIE5ce3+vC5pHWXmLmWL4h71CPHygMfpIsKQlCza/FjiuxgWD/+yp3IVYnffRs9r3l 3jjQ== 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=TY1HutZnteRyydV5Ih0Egjx6tbg8POtzIYYu0tZ9gLI=; b=yo0HPQStrZOw03kwLBLNXAZjua+ogMVPhcF6PoEv3H/SPOWUFhqDR7QeUnIA7Ls3L1 9USy4/lhWx78wRVLkzwhhc7iEZk9RVtUjJNGnxS6Z9aaMTMoBC2GIkm5/HRlioc4nlOj KJqP/MOOTgXwqbujVKzW0ygbkOsYvngogaIm9KbJVPAPj7YElJb3StwtDMeN8wtykpSq KYcd8p1eMRrszKl4cXuH6sMIknbN+jFGoj1cRrIyjlyTwlg0trXu7gomHQLGIpHQZFu4 79b00BmArEMQ9Jq9SGABncTNDugMVPqPhuqpOSm3ZonDhuheCH6kpzp2a4vlyGsnEPwO FGWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZrZtPbht; 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 p17si16189393ejd.307.2021.03.03.17.54.52; Wed, 03 Mar 2021 17:54:52 -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=ZrZtPbht; 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 S1351879AbhCDAHb (ORCPT + 2 others); Wed, 3 Mar 2021 19:07:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383500AbhCCOjF (ORCPT ); Wed, 3 Mar 2021 09:39:05 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BA91C061A30 for ; Wed, 3 Mar 2021 06:35:09 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id b18so17443336wrn.6 for ; Wed, 03 Mar 2021 06:35:09 -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=TY1HutZnteRyydV5Ih0Egjx6tbg8POtzIYYu0tZ9gLI=; b=ZrZtPbhtMvfSfUn1CpaM/MJoaOHiS73bOkPE4fNSZTfjUEZOFTPG9QWcs/aeegYLFS f44kVN1zeKnnoyhuhPS7kUznosUtF1IH/wbGXk1tF/7blzw6ufR/lKeIBHYgXs8R7GB+ S2JCCq7ed4tqHQQ6IhWJowxYnpBMk7bqNuS5OHFXDSJgUldfEl+BoB6s1HerOOMayVRA UsCLzhOh3MeXhozA5M4RdFT3sj5ZdhaftbNm3zAGZLlm3+v1ElhiHtH3jdQ8LbiVTWW/ c/ZCG2Jb6uwxjh9KwFVVtPEqBGoitNp6y/WyY7ciBAbNTxs4Y6/Y9Tk/WiESIVPn6KI9 vKlQ== 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=TY1HutZnteRyydV5Ih0Egjx6tbg8POtzIYYu0tZ9gLI=; b=MPpLU7DbyDKqriorZtNX6pd2sdIfEVUPTxBBhtAES1m6RmIjSGyVXpQIVaq0+y3Tzn LtP431Jv1UNF4xe9cyosGkm5wf3s/fIaPMraNzYzBCIlMchHrTwwGbpx9T8mO6ufZLEy dNFNFIWxcPUAMCIZgTpN9bLQnyazB9zWQ1fNjvFZRW0PlLJ4mIm0/hE3p3T4KSHxyj4V 1xhKu0gndsqdH7orIOZUso1PDXW/+D9PTkVJkrdevV5U/dplGIRRLEtM1N1zqWkopSkw IpmK0e7GB9MZSFWUWr3Tp7/ZFFBOaJTP5SgICIt9Pog2orsNi26/qOmFA1G5YHckHu0e 1GUA== X-Gm-Message-State: AOAM532v/MKcWiMjRCKZRbfw6vLjmMw45PZ4a4+u2IkFKDzp0C+BjIQO zrNeXKByqrhmY6nnERtd62Ppgg== X-Received: by 2002:adf:dbc2:: with SMTP id e2mr26742037wrj.227.1614782108194; Wed, 03 Mar 2021 06:35:08 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id f16sm31475923wrt.21.2021.03.03.06.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 06:35:07 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Subject: [PATCH 10/10] crypto: cavium: nitrox_isr: Demote non-compliant kernel-doc headers Date: Wed, 3 Mar 2021 14:34:49 +0000 Message-Id: <20210303143449.3170813-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303143449.3170813-1-lee.jones@linaro.org> References: <20210303143449.3170813-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/cavium/nitrox/nitrox_isr.c:17: warning: expecting prototype for One vector for each type of ring(). Prototype was for NR_RING_VECTORS() instead drivers/crypto/cavium/nitrox/nitrox_isr.c:224: warning: Function parameter or member 'irq' not described in 'nps_core_int_isr' drivers/crypto/cavium/nitrox/nitrox_isr.c:224: warning: Function parameter or member 'data' not described in 'nps_core_int_isr' Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Signed-off-by: Lee Jones --- drivers/crypto/cavium/nitrox/nitrox_isr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 diff --git a/drivers/crypto/cavium/nitrox/nitrox_isr.c b/drivers/crypto/cavium/nitrox/nitrox_isr.c index 99b053094f5af..c288c4b51783d 100644 --- a/drivers/crypto/cavium/nitrox/nitrox_isr.c +++ b/drivers/crypto/cavium/nitrox/nitrox_isr.c @@ -10,7 +10,7 @@ #include "nitrox_isr.h" #include "nitrox_mbx.h" -/** +/* * One vector for each type of ring * - NPS packet ring, AQMQ ring and ZQMQ ring */ @@ -216,7 +216,7 @@ static void nps_core_int_tasklet(unsigned long data) } } -/** +/* * nps_core_int_isr - interrupt handler for NITROX errors and * mailbox communication */