Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2416928pxb; Sun, 31 Oct 2021 15:32:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGINHU7q7Jn+oEU4UUKlCFTYdgy6D6CWgC7IQZw86Hu5eo2o/fi7KdB/VlqB3s3Y5V0G65 X-Received: by 2002:a05:6402:10da:: with SMTP id p26mr35529148edu.283.1635719535473; Sun, 31 Oct 2021 15:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635719535; cv=none; d=google.com; s=arc-20160816; b=qugKNvzkuRMw9mxJugqx9U4lQCyb1BGgX2Ernty7YS1n4TYF6kHNirNcNHeVjUZo7d nvPwfThB/jxVtQMh2ZlIioAWwtpKhnBEXBCbJnNibGVgenpsqExKQHIWqLbdqcF1lvS+ M0icQOrfTW4e83stfmWdE04aVsoYCWrHn5nVjUVC815ejj0tqxkd3wpJNbn4owPXI2N8 hdnyRyeH5rSutajmksL9Bck1AgxoFOkKjcmP3aFhnAfDmakOo4iK7k/2j5y1gd0u0/XL wBytsAFU1jUEGcPYzYVwjPQvwRmWgDw8fOIJzzNGDdQr99yee2P/19w03piPnVzY3B50 KxXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BxpB33/UYztYD2qwFHBciLJVh+wt0BVXxu7eaiDjGSU=; b=E4T5bMGYRr5mm+2ZyfVrIaMpB+iXmFJCxKYh5xrzm1dtaoGZqcTnmIygglW/DmYZZ5 V80A05Db1cAZR3tR/LSJYfHk2eFCYb9tRTpyq8HH9Pbekh61/MQZZP5xzf6+qmTv4Dtx 5GtWJ4+BaCpBUt1qokJ9UC8BLvXbzvl7kSbyL9g0GU5zGS3nNFM/iPwiAWaJaxZX7s+5 6aHvnlExEK5dAm6qAL+H610adwdTBtP0by0vi9kZXPm6/iyv2+WKvvBpEcVyXrQoYMK8 4A/x56vgd5+DKeRrtvUGiY/YXk3P6fTR4oY5syDDiwmUrwoG86sMagwXb8lY1zX/1AWz wN2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="i/V6FAbn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz13si14007369ejb.619.2021.10.31.15.31.51; Sun, 31 Oct 2021 15:32:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@infradead.org header.s=bombadil.20210309 header.b="i/V6FAbn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbhJaWch (ORCPT + 99 others); Sun, 31 Oct 2021 18:32:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbhJaWch (ORCPT ); Sun, 31 Oct 2021 18:32:37 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8FEC061714; Sun, 31 Oct 2021 15:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=BxpB33/UYztYD2qwFHBciLJVh+wt0BVXxu7eaiDjGSU=; b=i/V6FAbnUCJVHJFXOofkn/GgYH sjG//+Z1TgwvQjG7Mcj90yJvOVXf+bEhbccx6tYrHEvB7MiiOgR6GZM6DnosZt9Co0rVfvEncbttK mGYmZvj/RhoxmBlkjtogKhKlK1OQrXXKyFIcoI1FmVpvS2AKsbMgZzDVwvQHMoMu0wqPDPWSVP/H0 3UDZZqOZLT/JpWjMJWyJDRrUfKhVZYbtnG0Xm2tB5J80PV/w2R+Dy0djSg9ViOBcfd0TXk0E/8RzO Dp/co8dmYmb5vUmcf8sOc+aPcSa0LobrHnXJ9oB6XvCCdcXWIgjjCG9dLKRLHW3IHhfQPIx2gdsZp A+RWVq8Q==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhJL1-00Ep3S-Ly; Sun, 31 Oct 2021 22:30:03 +0000 Subject: Re: [PATCH] certs: system_keyring.c: clean up kernel-doc To: Mimi Zohar , linux-kernel@vger.kernel.org Cc: David Howells , David Woodhouse , keyrings@vger.kernel.org References: <20211025003813.5164-1-rdunlap@infradead.org> <2ed333a24e8a3009acd4ef406ff8c2c39e95e2cf.camel@linux.ibm.com> From: Randy Dunlap Message-ID: Date: Sun, 31 Oct 2021 15:30:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <2ed333a24e8a3009acd4ef406ff8c2c39e95e2cf.camel@linux.ibm.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/27/21 5:12 PM, Mimi Zohar wrote: > Hi Randy, > > On Sun, 2021-10-24 at 17:38 -0700, Randy Dunlap wrote: >> Fix some kernel-doc warnings in system_keyring.c: >> >> system_keyring.c:43: warning: expecting prototype for restrict_link_to_builtin_trusted(). Prototype was for restrict_link_by_builtin_trusted() instead >> system_keyring.c:77: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst >> * Allocate a struct key_restriction for the "builtin and secondary trust" >> system_keyring.c:77: warning: missing initial short description on line: >> * Allocate a struct key_restriction for the "builtin and secondary trust" >> >> Fix the warnings above and then see & fix these: >> >> system_keyring.c:43: warning: No description found for return value of 'restrict_link_by_builtin_trusted' >> system_keyring.c:62: warning: No description found for return value of 'restrict_link_by_builtin_and_secondary_trusted' >> system_keyring.c:190: warning: No description found for return value of 'verify_pkcs7_message_sig' >> system_keyring.c:275: warning: No description found for return value of 'verify_pkcs7_signature' >> >> This still leaves non-exported two functions that do not have their >> functions parameters documented: restrict_link_by_builtin_trusted() and >> restrict_link_by_builtin_and_secondary_trusted(). >> >> Use '%' preceding constants in kernel-doc notation. >> >> Use "builtin" consistently instead of "built in" or "built-in". >> >> Don't use "/**" to begin a comment that is not in kernel-doc format. >> >> Document the use of VERIFY_USE_SECONDARY_KEYRING and >> VERIFY_USE_PLATFORM_KEYRING. >> > > Thanks, Randy. Even after these changes there are additional kernel > doc warnings. Missing are the parameter definitions for > restrict_link_by_builtin_trusted() and > restrict_link_by_builtin_and_secondary_trusted(). The first three are > exactly the same as for restrict_link_by_signature(). The fourth parm > needs to be tweaked. Ah, thanks for the info. I'll update the patch... -- ~Randy