Commit 0ae50e8e1e for qemu.org

commit 0ae50e8e1e3799d22ca3431f0f238608dc2a4d36
Author: Peter Maydell <peter.maydell@linaro.org>
Date:   Mon Oct 14 17:05:55 2024 +0100

    docs/devel/lockcnt: Include kernel-doc API documentation

    Pull in the kernel-doc API documentation into the lockcnt docs.
    This requires us to fix one rST markup syntax error in the
    header file comments.

    Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
    Message-id: 20240816132212.3602106-8-peter.maydell@linaro.org

diff --git a/docs/devel/lockcnt.rst b/docs/devel/lockcnt.rst
index 728594bcea..8b43578f6c 100644
--- a/docs/devel/lockcnt.rst
+++ b/docs/devel/lockcnt.rst
@@ -175,7 +175,7 @@ three instructions in the critical path, two assignments and a ``smp_wmb()``.
 ``QemuLockCnt`` API
 -------------------

-The ``QemuLockCnt`` API is described in ``include/qemu/lockcnt.h``.
+.. kernel-doc:: include/qemu/lockcnt.h


 ``QemuLockCnt`` usage
diff --git a/include/qemu/lockcnt.h b/include/qemu/lockcnt.h
index 2c92ae17c9..f4b62a3f70 100644
--- a/include/qemu/lockcnt.h
+++ b/include/qemu/lockcnt.h
@@ -51,7 +51,7 @@ void qemu_lockcnt_destroy(QemuLockCnt *lockcnt);
  * Because this function can wait on the mutex, it must not be
  * called while the lockcnt's mutex is held by the current thread.
  * For the same reason, qemu_lockcnt_inc can also contribute to
- * AB-BA deadlocks.  This is a sample deadlock scenario:
+ * AB-BA deadlocks.  This is a sample deadlock scenario::
  *
  *            thread 1                      thread 2
  *            -------------------------------------------------------