From patchwork Wed Dec 9 12:15:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 340357 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp4543393jai; Wed, 9 Dec 2020 04:17:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5QUQ2NTnoFUYZu20pgDu7K90CfqWkBuATgqUpF+uPndQJaePIZT5D2xzx58ItOEdg52ab X-Received: by 2002:aa7:c58a:: with SMTP id g10mr1686640edq.315.1607516258550; Wed, 09 Dec 2020 04:17:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607516258; cv=none; d=google.com; s=arc-20160816; b=kI+Yie8A9RJGDvlsfD3yffkGEhj9GR6GwyBxChhhXQowK5m/3XfoPGmDbFuJRAv5qS clMTXt9AyFwU+IHH3u3BrPyxZNdXcYwi7LlfWkvai14THNyapTnHuUOKlUdPNw5mWSz0 +FoMHCo/kt3SemoSA+5UcM9wNMdJ+O6KBaKHZC9BKBFI6uakW1F4fBAB3ZHMQHg+CM8Z iSxwMPVus6Q6LyynCEboPjgG7kyeAKbB75HKyRpnHjazd26+kfwbL64k3FyIbayMI1WF kf8vYt3VNvj2IxbiWJkRN62AtoS1Chs6WkEc9cP8qPsoxXNOaXELLPjf7Id8He19s5Il hojA== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:organization:dkim-signature; bh=3/BnNwqyFLJmky74hsLoVI8kJdDI5RrCamyHKgioUvo=; b=MFMIjnP73oP2TtnOgBrpkm39yBPoMQoOkOwsYcuQg8JXdwm3mrpbcNrRnrVuCRlLd2 ofAaNEYsgfjAPKrbgJ8Nqgqgt7DM6K7PIkiF7Kz4h1PKGzEVnrH8DDxvyIavNz9oJwqM 6ZJSO5JHOyYR49LtXD0UuCImM/LImkM+CulfXKeVcDKaFwD9oSp2swjYUYpPQpZIbS/E SktT4ykWF7qqkeiomJnBbYA7YnB34/+GOQ6v1XlCyYdtLlQN0LuglFuCfMw7nXy42qnw tSDjY64wdSLZan75ndfQNM15Aep5hPQS+9bnbH7X+8dkyVn6FpE7hhh53FnFBRr/Jn/V 2ExQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=O8qhq7rK; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a29si770022edm.401.2020.12.09.04.17.38; Wed, 09 Dec 2020 04:17:38 -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=@redhat.com header.s=mimecast20190719 header.b=O8qhq7rK; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731530AbgLIMRU (ORCPT + 2 others); Wed, 9 Dec 2020 07:17:20 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51069 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731518AbgLIMRP (ORCPT ); Wed, 9 Dec 2020 07:17:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607516148; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3/BnNwqyFLJmky74hsLoVI8kJdDI5RrCamyHKgioUvo=; b=O8qhq7rK6CtkXZgjXjUPvLB84yyzwGnamv/xL6ybl3vBbqlGAvMgKzCWAPcIfHBAcW/xGZ 2DX4VSYhPaZqdyVLls5j5r/CHYRB2w77UpyIxgKnTrr4tWSxQLbkofdo6CLdBh1DVoZbqj z/+SlcQ50IV41OAbfnsc31O+7jIos6I= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-508-3qUFdTI4O-yFfjXt3VnqXA-1; Wed, 09 Dec 2020 07:15:44 -0500 X-MC-Unique: 3qUFdTI4O-yFfjXt3VnqXA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 40E0D190A7A5; Wed, 9 Dec 2020 12:15:43 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-116-67.rdu2.redhat.com [10.10.116.67]) by smtp.corp.redhat.com (Postfix) with ESMTP id C0FFF1007625; Wed, 9 Dec 2020 12:15:40 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Subject: [PATCH 10/18] PKCS#7: drop function from kernel-doc pkcs7_validate_trust_one From: David Howells To: Jarkko Sakkinen Cc: Alex Shi , Herbert Xu , "David S. Miller" , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, dhowells@redhat.com, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 09 Dec 2020 12:15:40 +0000 Message-ID: <160751614001.1238376.11020737504208096405.stgit@warthog.procyon.org.uk> In-Reply-To: <160751606428.1238376.14935502103503420781.stgit@warthog.procyon.org.uk> References: <160751606428.1238376.14935502103503420781.stgit@warthog.procyon.org.uk> User-Agent: StGit/0.23 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Alex Shi The function is a static function, so no needs add into kernel-doc. and we could avoid warning: crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or member 'pkcs7' not described in 'pkcs7_validate_trust_one' crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or member 'sinfo' not described in 'pkcs7_validate_trust_one' crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or member 'trust_keyring' not described in 'pkcs7_validate_trust_one' Signed-off-by: Alex Shi Cc: David Howells Cc: Herbert Xu Cc: "David S. Miller" Cc: keyrings@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: David Howells --- crypto/asymmetric_keys/pkcs7_trust.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/asymmetric_keys/pkcs7_trust.c b/crypto/asymmetric_keys/pkcs7_trust.c index 61af3c4d82cc..b531df2013c4 100644 --- a/crypto/asymmetric_keys/pkcs7_trust.c +++ b/crypto/asymmetric_keys/pkcs7_trust.c @@ -16,7 +16,7 @@ #include #include "pkcs7_parser.h" -/** +/* * Check the trust on one PKCS#7 SignedInfo block. */ static int pkcs7_validate_trust_one(struct pkcs7_message *pkcs7,