[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <31fd707b-7122-21bc-2656-d4fc5f50a7ac@arm.com>
Date: Wed, 30 Sep 2020 14:46:16 +0100
From: Vincenzo Frascino <vincenzo.frascino@....com>
To: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
Linux Doc Mailing List <linux-doc@...r.kernel.org>,
Jonathan Corbet <corbet@....net>
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>,
Chunyan Zhang <chunyan.zhang@...soc.com>,
Oleg Nesterov <oleg@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 18/52] math64.h: kernel-docs: Convert some markups into
normal comments
On 9/30/20 2:24 PM, Mauro Carvalho Chehab wrote:
> There are several functions at math64.h that are also
> defined at div64.c. As both are included at kernel-api.rst,
> Sphinx 3.x complains about symbol duplication:
>
> ./lib/math/div64.c:73: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'.
> Declaration is 'div_s64_rem'.
> ./lib/math/div64.c:104: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'.
> Declaration is 'div64_u64_rem'.
> ./lib/math/div64.c:144: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'.
> Declaration is 'div64_u64'.
> ./lib/math/div64.c:172: WARNING: Duplicate C declaration, also defined in 'core-api/kernel-api'.
> Declaration is 'div64_s64'.
>
> In order to avoid Sphinx warnings about duplication, change the kernel-doc
> markups to just comments at math64.h.
>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@....com>
> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@...nel.org>
> ---
> include/linux/math64.h | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/linux/math64.h b/include/linux/math64.h
> index 3381d9e33c4e..66deb1fdc2ef 100644
> --- a/include/linux/math64.h
> +++ b/include/linux/math64.h
> @@ -28,7 +28,7 @@ static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
> return dividend / divisor;
> }
>
> -/**
> +/*
> * div_s64_rem - signed 64bit divide with 32bit divisor with remainder
> * @dividend: signed 64bit dividend
> * @divisor: signed 32bit divisor
> @@ -42,7 +42,7 @@ static inline s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)
> return dividend / divisor;
> }
>
> -/**
> +/*
> * div64_u64_rem - unsigned 64bit divide with 64bit divisor and remainder
> * @dividend: unsigned 64bit dividend
> * @divisor: unsigned 64bit divisor
> @@ -56,7 +56,7 @@ static inline u64 div64_u64_rem(u64 dividend, u64 divisor, u64 *remainder)
> return dividend / divisor;
> }
>
> -/**
> +/*
> * div64_u64 - unsigned 64bit divide with 64bit divisor
> * @dividend: unsigned 64bit dividend
> * @divisor: unsigned 64bit divisor
> @@ -68,7 +68,7 @@ static inline u64 div64_u64(u64 dividend, u64 divisor)
> return dividend / divisor;
> }
>
> -/**
> +/*
> * div64_s64 - signed 64bit divide with 64bit divisor
> * @dividend: signed 64bit dividend
> * @divisor: signed 64bit divisor
>
--
Regards,
Vincenzo
Powered by blists - more mailing lists