Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EB10C433FE for ; Wed, 22 Dec 2021 09:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243979AbhLVJhw (ORCPT ); Wed, 22 Dec 2021 04:37:52 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:57316 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbhLVJhv (ORCPT ); Wed, 22 Dec 2021 04:37:51 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 1CC102110A; Wed, 22 Dec 2021 09:37:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1640165870; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Hrod5KJSN7h/591Obfh5OfYIH4ZGTWPjQzVcGxqq1dA=; b=puiSU2jM+umEPzPz2PI+lI6gNwCdOyOPdNxxfUWzuuNS5Pb7aASHj1OYOr2HvxIEyBMqyQ gOZnO6CQ2It9gtXLl3ETIP1LfaAKhiq/X0J+Pr2ZvfW0GnZtfX/29TQQOgYT7U/viRmxn5 zgjiG91tDKcttf5R2LkA+4LBUzSgnIk= Received: from suse.cz (unknown [10.100.224.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id C873CA3B81; Wed, 22 Dec 2021 09:37:49 +0000 (UTC) Date: Wed, 22 Dec 2021 10:37:49 +0100 From: Petr Mladek To: David Vernet Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, jpoimboe@redhat.com, jikos@kernel.org, mbenes@suse.cz, joe.lawrence@redhat.com, corbet@lwn.net Subject: Re: [PATCH v3] Documentation: livepatch: Add livepatch API page Message-ID: References: <20211221145743.4098360-1-void@manifault.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211221145743.4098360-1-void@manifault.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2021-12-21 06:57:45, David Vernet wrote: > The livepatch subsystem has several exported functions and objects with > kerneldoc comments. Though the livepatch documentation contains handwritten > descriptions of all of these exported functions, they are currently not > pulled into the docs build using the kernel-doc directive. > > In order to allow readers of the documentation to see the full kerneldoc > comments in the generated documentation files, this change adds a new > Documentation/livepatch/api.rst page which contains kernel-doc directives > to link the kerneldoc comments directly in the documentation. With this, > all of the hand-written descriptions of the APIs now cross-reference the > kerneldoc comments on the new Livepatching APIs page, and running > ./scripts/find-unused-docs.sh on kernel/livepatch no longer shows any files > as missing documentation. > > Note that all of the handwritten API descriptions were left alone with the > exception of Documentation/livepatch/system-state.rst, which was updated to > allow the cross-referencing to work correctly. The file now follows the > cross-referencing formatting guidance specified in > Documentation/doc-guide/kernel-doc.rst. Furthermore, some comments around > klp_shadow_free_all() were updated to say <_, id> rather than <*, id> to > match the rest of the file, and to prevent the docs build from emitting an > "Inline emphasis start-string without end string" error. > > Signed-off-by: David Vernet I like it. The side-effect is that names of the functions and structures in other livepatch/*.html files has magically became links to the details in livepatch/api.html Reviewed-by: Petr Mladek Best Regards, Petr