Re: [PATCH trivial v2] plugins: add missing docstrings to qemu-plugin.h
Pierrick Bouvier <[email protected]>
| Newsgroups | org.nongnu.qemu-trivial,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
On 3/10/26 12:49 AM, Florian Hofhammer wrote: > This patch adds docstrings for typedefs and function declarations in > include/plugins/qemu-plugin.h that were previously missing. This > resolves inconsistencies in the docs, e.g., the description for > qemu_plugin_read_register() referring to qemu_plugin_register_flush_cb() > but code cache flush callbacks not being documented themselves. > > Signed-off-by: Florian Hofhammer <[email protected]> > --- > Hi, > > While working on a QEMU plugin and browsing the online docs at > https://www.qemu.org/docs/master/devel/tcg-plugins.html, I noticed that > some of the API functions were not actually documented. > > I went through the include/plugins/qemu-plugin.h header file and added > docstrings where they were missing, hoping of course that I documented > the correct functionality based on my understanding of the plugin > internals. > > I hope that's useful and I didn't miss anything! > > Best regards, > Florian > > Changes in v2: > - Added semantics clarification to the qemu_plugin_register_flush_cb() > docstring (suggested by Pierrick) > - Link to v1: https://lore.kernel.org/qemu-devel/[email protected] > --- > include/plugins/qemu-plugin.h | 101 +++++++++++++++++++++++++++++++++++++----- > 1 file changed, 91 insertions(+), 10 deletions(-) > Thanks, looks good. It seems there are warnings (and thus errors) about missing parameters. Warning: /home/runner/work/qemu-ci/qemu-ci/docs/../include/plugins/qemu-plugin.h:883 function parameter 'vcpu_idx' not described in 'qemu_plugin_vcpu_syscall_ret_cb_t' Warning: /home/runner/work/qemu-ci/qemu-ci/docs/../include/plugins/qemu-plugin.h:883 function parameter 'vcpu_idx' not described in 'qemu_plugin_vcpu_syscall_ret_cb_t' WARNING: kernel-doc '/home/runner/work/qemu-ci/qemu-ci/build/pyvenv/bin/python3 /home/runner/work/qemu-ci/qemu-ci/docs/../scripts/kernel-doc.py -rst -enable-lineno -Werror /home/runner/work/qemu-ci/qemu-ci/docs/../include/plugins/qemu-plugin.h' Could you add those and check doc builds with warnings for v3? Thanks, Pierrick