Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] fix clock_gettime cross-references

Fix those warnings:

Documentation/media/uapi/cec/cec-ioc-dqevent.rst:124: WARNING: c:func reference target not found: clock_gettime(2)

By replacing it with the right function name, using this shell script:

for i in `find Documentation/media -type f`; do sed 's,clock_gettime(2),clock_gettime,' <$i >a && mv a $i; done

Please notice that this will make the nitpick mode to shut up
complaining about that, becasue clock_gettime is on its exclude list,
but the cross reference will be undefined until someone documents
this function at the core documentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

+6 -6
+1 -1
Documentation/media/uapi/cec/cec-ioc-dqevent.rst
··· 122 122 - :cspan:`1` Timestamp of the event in ns. 123 123 124 124 The timestamp has been taken from the ``CLOCK_MONOTONIC`` clock. To access 125 - the same clock from userspace use :c:func:`clock_gettime(2)`. 125 + the same clock from userspace use :c:func:`clock_gettime`. 126 126 127 127 - .. row 2 128 128
+2 -2
Documentation/media/uapi/cec/cec-ioc-receive.rst
··· 95 95 96 96 - Timestamp in ns of when the last byte of the message was transmitted. 97 97 The timestamp has been taken from the ``CLOCK_MONOTONIC`` clock. To access 98 - the same clock from userspace use :c:func:`clock_gettime(2)`. 98 + the same clock from userspace use :c:func:`clock_gettime`. 99 99 100 100 - .. row 2 101 101 ··· 105 105 106 106 - Timestamp in ns of when the last byte of the message was received. 107 107 The timestamp has been taken from the ``CLOCK_MONOTONIC`` clock. To access 108 - the same clock from userspace use :c:func:`clock_gettime(2)`. 108 + the same clock from userspace use :c:func:`clock_gettime`. 109 109 110 110 - .. row 3 111 111
+2 -2
Documentation/media/uapi/v4l/buffer.rst
··· 712 712 clock). Monotonic clock has been favoured in embedded systems 713 713 whereas most of the drivers use the realtime clock. Either kinds 714 714 of timestamps are available in user space via 715 - :c:func:`clock_gettime(2)` using clock IDs ``CLOCK_MONOTONIC`` 715 + :c:func:`clock_gettime` using clock IDs ``CLOCK_MONOTONIC`` 716 716 and ``CLOCK_REALTIME``, respectively. 717 717 718 718 - .. _`V4L2-BUF-FLAG-TIMESTAMP-MONOTONIC`: ··· 723 723 724 724 - The buffer timestamp has been taken from the ``CLOCK_MONOTONIC`` 725 725 clock. To access the same clock outside V4L2, use 726 - :c:func:`clock_gettime(2)`. 726 + :c:func:`clock_gettime`. 727 727 728 728 - .. _`V4L2-BUF-FLAG-TIMESTAMP-COPY`: 729 729
+1 -1
Documentation/media/uapi/v4l/vidioc-dqevent.rst
··· 152 152 - 153 153 - Event timestamp. The timestamp has been taken from the 154 154 ``CLOCK_MONOTONIC`` clock. To access the same clock outside V4L2, 155 - use :c:func:`clock_gettime(2)`. 155 + use :c:func:`clock_gettime`. 156 156 157 157 - .. row 12 158 158