Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935088AbeAHQn1 (ORCPT + 1 other); Mon, 8 Jan 2018 11:43:27 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33894 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932623AbeAHQnX (ORCPT ); Mon, 8 Jan 2018 11:43:23 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180108164320euoutp02d2a8a2131c5e680fb2aecf9aec9326c5~H41-sYEW30411104111euoutp025 X-AuditID: cbfec7f2-f793b6d000003243-5f-5a539fa7026a Subject: Re: [PATCH] crypto: clear htmldocs build warnings for crypto/hash To: Herbert Xu Cc: "Tobin C. Harding" , "David S. Miller" , Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org, "linux-crypto@vger.kernel.org" From: Kamil Konieczny Message-id: <2b4fa5b0-dadb-47fe-2bbd-b051ad343bc4@partner.samsung.com> Date: Mon, 08 Jan 2018 17:43:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-version: 1.0 In-reply-to: <20180108155619.GA5350@gondor.apana.org.au> Content-type: text/plain; charset="utf-8" Content-language: en-US Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGKsWRmVeSWpSXmKPExsWy7djP87rL5wdHGTw6rW+xccZ6Vos551tY LLpfyVjcv/eTyeLyrjlsFrfbjrE6sHlsWXmTyWPbAVWPvi2rGD2+XH/N6PF5k1wAaxSXTUpq TmZZapG+XQJXRufSPsaCBfwVn+d/YG9g7OHpYuTkkBAwkbixew47hC0mceHeerYuRi4OIYGl jBLXNj1ghHA+M0q8WL2CEaajefIWFojEMkaJqX++QlU9Y5SYcWUp2CxhAS+Jh/eb2UBsEQEd iZUvF7OC2MwgRc2dBiA2m4C5xKPtZ5hAbF4BN4ltc9pYQGwWAVWJGZsXgW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DsZLG4MPMQpwMCrx8Ba0B0cJsSaWFVfmHmKU 4GBWEuEVigYK8aYkVlalFuXHF5XmpBYfYpTmYFES5+3dszpSSCA9sSQ1OzW1ILUIJsvEwSnV wMiUanPkrsXcbteL7AkvD81f9eFt/flVkz2yM259N4qb7LSl84rsnqu5e2Tv79H52rInN3/n qRkvqvI6fvn0rk8yMXKd2/31rpX590K7BZcWbwrosEyO/d67iW+7JWNmvrxg/6Xd5zxvzJ1/ dW1dTtFqm8CDm198Lvl5aGmSV6V68JStRZZbblkosRRnJBpqMRcVJwIAXbmQzn4CAAA= X-CMS-MailID: 20180108164319eucas1p1d34e92e12e9dfe326eda8c50542106ef X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180106230157epcas2p2a3dc70ac85fbd7861ddf916fde5dd2be X-RootMTR: 20180106230157epcas2p2a3dc70ac85fbd7861ddf916fde5dd2be References: <1515279703-14070-1-git-send-email-me@tobin.cc> <724b85c9-f3df-15b2-7aa2-4089f232c155@partner.samsung.com> <20180108155619.GA5350@gondor.apana.org.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 08.01.2018 16:56, Herbert Xu wrote: > On Mon, Jan 08, 2018 at 02:11:21PM +0100, Kamil Konieczny wrote: >> >> >> On 07.01.2018 00:01, Tobin C. Harding wrote: >>> SPHINX build emits multiple warnings of kind: >>> >>> warning: duplicate section name 'Note' >>> >>> (when building kernel via make target 'htmldocs') >>> >>> This is caused by repeated use of comments of form: >>> >>> * Note: soau soaeusoa uoe >>> >>> We can change the format without loss of clarity and clear the build >>> warnings. >>> >>> Add '**[mandatory]**' or '**[optional]**' as kernel-doc field element >>> description prefix >>> >>> This renders in HTML as (prefixes in bold) >>> >>> final >>> [mandatory] Retrieve result from the driver. This function finalizes the >>> transformation and retrieves the resulting hash from the driver and >>> pushes it back to upper layers. No data processing happens at this >>> point unless hardware requires it to finish the transformation (then >>> the data buffered by the device driver is processed). >>> >>> Signed-off-by: Tobin C. Harding >>> --- >>> >>> This patch begs the question why the other members of struct ahash_alg >>> are not marked? Some are marked 'optional' some 'mandatory'. It would >>> seem that if the marking were necessary for some members it is necessary >>> for all to eliminate ambiguity? >>> >>> thanks >> >> import, export are optional > > No import/export must be implemented for all hashes. Is it mandatory for both async hash and shash ? in crypto/ahash.c in function static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) there is: hash->export = ahash_no_export; hash->import = ahash_no_import; and later in the same function: if (alg->export) hash->export = alg->export; if (alg->import) hash->import = alg->import; -- Best regards, Kamil Konieczny Samsung R&D Institute Poland