[libcamera-devel] libcamera: ipa_interface: Fix doxygen warning

Message ID 20200113235605.19085-1-laurent.pinchart@ideasonboard.com
State Accepted
Commit 744fabcbb938d60cdbc0dfadc625bbd6798c2485
Headers show
Series
  • [libcamera-devel] libcamera: ipa_interface: Fix doxygen warning
Related show

Commit Message

Laurent Pinchart Jan. 13, 2020, 11:56 p.m. UTC
Doxygen generates the following warning:

src/libcamera/ipa_interface.cpp:262: warning: explicit link request to 'dup()' could not be resolved

Fix it by disabling link generation by prefixing the function name with
a %.

Fixes: 4b9bd6c3ad94 ("libcamera: ipa_interface: Document the ownership of dmabufs passed to map_buffers()")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/libcamera/ipa_interface.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham Jan. 14, 2020, 12:01 a.m. UTC | #1
Hi Laurent,

On 13/01/2020 23:56, Laurent Pinchart wrote:
> Doxygen generates the following warning:
> 
> src/libcamera/ipa_interface.cpp:262: warning: explicit link request to 'dup()' could not be resolved
> 
> Fix it by disabling link generation by prefixing the function name with
> a %.
> 

Thanks,

Confirmed this removes the compiler warning on my system, and renders
correctly in the generated doxygen output.

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> Fixes: 4b9bd6c3ad94 ("libcamera: ipa_interface: Document the ownership of dmabufs passed to map_buffers()")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
>  src/libcamera/ipa_interface.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libcamera/ipa_interface.cpp b/src/libcamera/ipa_interface.cpp
> index 900154497f82..5959e7deda6c 100644
> --- a/src/libcamera/ipa_interface.cpp
> +++ b/src/libcamera/ipa_interface.cpp
> @@ -261,7 +261,7 @@
>   * The dmabuf file descriptors provided in \a buffers are borrowed from the
>   * caller and are only guaranteed to be valid during the map_buffers() call.
>   * Should the callee need to store a copy of the file descriptors, it shall
> - * duplicate them first with ::dup().
> + * duplicate them first with ::%dup().
>   *
>   * \sa libcamera::IPAInterface::mapBuffers()
>   */
>
Niklas Söderlund Jan. 14, 2020, 12:09 a.m. UTC | #2
Hi Laurent,

Thanks for fixing my error :-)

On 2020-01-14 01:56:05 +0200, Laurent Pinchart wrote:
> Doxygen generates the following warning:
> 
> src/libcamera/ipa_interface.cpp:262: warning: explicit link request to 'dup()' could not be resolved
> 
> Fix it by disabling link generation by prefixing the function name with
> a %.
> 
> Fixes: 4b9bd6c3ad94 ("libcamera: ipa_interface: Document the ownership of dmabufs passed to map_buffers()")
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>

> ---
>  src/libcamera/ipa_interface.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libcamera/ipa_interface.cpp b/src/libcamera/ipa_interface.cpp
> index 900154497f82..5959e7deda6c 100644
> --- a/src/libcamera/ipa_interface.cpp
> +++ b/src/libcamera/ipa_interface.cpp
> @@ -261,7 +261,7 @@
>   * The dmabuf file descriptors provided in \a buffers are borrowed from the
>   * caller and are only guaranteed to be valid during the map_buffers() call.
>   * Should the callee need to store a copy of the file descriptors, it shall
> - * duplicate them first with ::dup().
> + * duplicate them first with ::%dup().
>   *
>   * \sa libcamera::IPAInterface::mapBuffers()
>   */
> -- 
> Regards,
> 
> Laurent Pinchart
> 
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel@lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel

Patch

diff --git a/src/libcamera/ipa_interface.cpp b/src/libcamera/ipa_interface.cpp
index 900154497f82..5959e7deda6c 100644
--- a/src/libcamera/ipa_interface.cpp
+++ b/src/libcamera/ipa_interface.cpp
@@ -261,7 +261,7 @@ 
  * The dmabuf file descriptors provided in \a buffers are borrowed from the
  * caller and are only guaranteed to be valid during the map_buffers() call.
  * Should the callee need to store a copy of the file descriptors, it shall
- * duplicate them first with ::dup().
+ * duplicate them first with ::%dup().
  *
  * \sa libcamera::IPAInterface::mapBuffers()
  */