* [PATCH] memory: omap-gpmc: Silence clang kerneldoc warnings
@ 2026-05-19 13:25 Krzysztof Kozlowski
2026-05-19 16:14 ` Nathan Chancellor
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-19 13:25 UTC (permalink / raw)
To: Roger Quadros, Tony Lindgren, Krzysztof Kozlowski,
Nathan Chancellor, Nick Desaulniers, Bill Wendling, Justin Stitt,
linux-omap, linux-kernel, llvm
Cc: Krzysztof Kozlowski
Recent LLVM prints kerneldoc W=1 warnings, even though a correct
kerneldoc is there:
Warning: drivers/memory/omap-gpmc.c:441 Excess function parameter 'cs' description in 'get_gpmc_timing_reg'
Drop additional inline comments for arguments to fix that. They are
anyway not that useful.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
drivers/memory/omap-gpmc.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
index d9e13c1f9b13..958d2b0ea54a 100644
--- a/drivers/memory/omap-gpmc.c
+++ b/drivers/memory/omap-gpmc.c
@@ -432,13 +432,9 @@ static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,
*
*/
static int get_gpmc_timing_reg(
- /* timing specifiers */
int cs, int reg, int st_bit, int end_bit, int max,
const char *name, const enum gpmc_clk_domain cd,
- /* value transform */
- int shift,
- /* format specifiers */
- bool raw, bool noval)
+ int shift, bool raw, bool noval)
{
u32 l;
int nr_bits;
--
2.51.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] memory: omap-gpmc: Silence clang kerneldoc warnings
2026-05-19 13:25 [PATCH] memory: omap-gpmc: Silence clang kerneldoc warnings Krzysztof Kozlowski
@ 2026-05-19 16:14 ` Nathan Chancellor
2026-05-19 20:05 ` Krzysztof Kozlowski
0 siblings, 1 reply; 3+ messages in thread
From: Nathan Chancellor @ 2026-05-19 16:14 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Roger Quadros, Tony Lindgren, Krzysztof Kozlowski,
Nick Desaulniers, Bill Wendling, Justin Stitt, linux-omap,
linux-kernel, llvm
On Tue, May 19, 2026 at 03:25:49PM +0200, Krzysztof Kozlowski wrote:
> Recent LLVM prints kerneldoc W=1 warnings, even though a correct
> kerneldoc is there:
I don't see how LLVM is relevant here, a GCC build would show the same
warnings since they come from kernel-doc, not the compiler.
> Warning: drivers/memory/omap-gpmc.c:441 Excess function parameter 'cs' description in 'get_gpmc_timing_reg'
>
> Drop additional inline comments for arguments to fix that. They are
> anyway not that useful.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
> ---
> drivers/memory/omap-gpmc.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c
> index d9e13c1f9b13..958d2b0ea54a 100644
> --- a/drivers/memory/omap-gpmc.c
> +++ b/drivers/memory/omap-gpmc.c
> @@ -432,13 +432,9 @@ static unsigned int gpmc_clk_ticks_to_ns(unsigned int ticks, int cs,
> *
> */
> static int get_gpmc_timing_reg(
> - /* timing specifiers */
> int cs, int reg, int st_bit, int end_bit, int max,
> const char *name, const enum gpmc_clk_domain cd,
> - /* value transform */
> - int shift,
> - /* format specifiers */
> - bool raw, bool noval)
> + int shift, bool raw, bool noval)
> {
> u32 l;
> int nr_bits;
> --
> 2.51.0
>
--
Cheers,
Nathan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] memory: omap-gpmc: Silence clang kerneldoc warnings
2026-05-19 16:14 ` Nathan Chancellor
@ 2026-05-19 20:05 ` Krzysztof Kozlowski
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-19 20:05 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Roger Quadros, Tony Lindgren, Krzysztof Kozlowski,
Nick Desaulniers, Bill Wendling, Justin Stitt, linux-omap,
linux-kernel, llvm
On 19/05/2026 18:14, Nathan Chancellor wrote:
> On Tue, May 19, 2026 at 03:25:49PM +0200, Krzysztof Kozlowski wrote:
>> Recent LLVM prints kerneldoc W=1 warnings, even though a correct
>> kerneldoc is there:
>
> I don't see how LLVM is relevant here, a GCC build would show the same
> warnings since they come from kernel-doc, not the compiler.
Hm, I did not verify that and the warning just popped in my W=1 builds
of CI. I will correct the commit msg.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-19 20:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-19 13:25 [PATCH] memory: omap-gpmc: Silence clang kerneldoc warnings Krzysztof Kozlowski
2026-05-19 16:14 ` Nathan Chancellor
2026-05-19 20:05 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox