kernel-doc: Issue warnings that were silently discarded
Subsystems (2)
PATCH 1/1 kernel-doc: Issue warnings that were silently discarded
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...
while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...
And with the original Perl script:
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...
--- scripts/lib/kdoc/kdoc_parser.py | 7 +++++++ 1 file changed, 7 insertions(+)
scripts/lib/kdoc/kdoc_parser.py +7 -0
@@ -451,6 +451,13 @@ class KernelDoc: variables used by the state machine. """ + # + # Flush the warnings out before we proceed further + # + if self.entry and self.entry not in self.entries: + for log_msg in self.entry.warnings: + self.config.log.warning(log_msg) + self.entry = KernelEntry(self.config, self.fname, ln) # State flags
Signature · 1 line
2.50.1
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi Andy,
kernel test robot noticed the following build warnings:
[auto build test WARNING on lwn/docs-next]
[also build test WARNING on next-20251104]
[cannot apply to linus/master v6.18-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/kernel-doc-Issue-warnings-that-were-silently-discarded/20251105-055629 base: git://git.lwn.net/linux.git docs-next patch link: https://lore.kernel.org/r/20251104215502.1049817-1-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded config: sh-allnoconfig (https://download.01.org/0day-ci/archive/20251105/[email protected]/config) compiler: sh4-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> Warning: drivers/sh/intc/irqdomain.c:29 function parameter 'd' not described in 'intc_evt_xlate' >> Warning: drivers/sh/intc/irqdomain.c:29 function parameter 'ctrlr' not described in 'intc_evt_xlate' >> Warning: drivers/sh/intc/irqdomain.c:29 function parameter 'intspec' not described in 'intc_evt_xlate' >> Warning: drivers/sh/intc/irqdomain.c:29 function parameter 'intsize' not described in 'intc_evt_xlate' >> Warning: drivers/sh/intc/irqdomain.c:29 function parameter 'out_hwirq' not described in 'intc_evt_xlate' >> Warning: drivers/sh/intc/irqdomain.c:29 function parameter 'out_type' not described in 'intc_evt_xlate' >> Warning: drivers/sh/intc/irqdomain.c:29 expecting prototype for intc_irq_domain_evt_xlate(). Prototype was for intc_evt_xlate() instead
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 3 lines · kernel test robot
Hi Andy,
kernel test robot noticed the following build warnings:
So do these...
Quoted 29 lines
[auto build test WARNING on lwn/docs-next]
[also build test WARNING on next-20251104]
[cannot apply to linus/master v6.18-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/kernel-doc-Issue-warnings-that-were-silently-discarded/20251105-055629 base: git://git.lwn.net/linux.git docs-next patch link: https://lore.kernel.org/r/20251104215502.1049817-1-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded config: sh-allnoconfig (https://download.01.org/0day-ci/archive/20251105/[email protected]/config) compiler: sh4-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All warnings (new ones prefixed by >>):
Quoted 7 lines
Quoted 7 lines
Warning:
drivers/sh/intc/irqdomain.c:29function parameter 'd' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'ctrlr' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'intspec' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'intsize' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'out_hwirq' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'out_type' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29expecting prototype forintc_irq_domain_evt_xlate(). Prototype was forintc_evt_xlate()instead
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
Quoted 3 lines · kernel test robot
Hi Andy,
kernel test robot noticed the following build warnings:
So do these...
Got it, thanks for the info, I will update the bot to ignore the further reports on this commit. Sorry for the false positive.
Thanks
Quoted 37 lines
Quoted 30 lines
[auto build test WARNING on lwn/docs-next]
[also build test WARNING on next-20251104]
[cannot apply to linus/master v6.18-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/kernel-doc-Issue-warnings-that-were-silently-discarded/20251105-055629 base: git://git.lwn.net/linux.git docs-next patch link: https://lore.kernel.org/r/20251104215502.1049817-1-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded config: sh-allnoconfig (https://download.01.org/0day-ci/archive/20251105/[email protected]/config) compiler: sh4-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All warnings (new ones prefixed by >>):
Quoted 7 lines
Quoted 7 lines
Warning:
drivers/sh/intc/irqdomain.c:29function parameter 'd' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'ctrlr' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'intspec' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'intsize' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'out_hwirq' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'out_type' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29expecting prototype forintc_irq_domain_evt_xlate(). Prototype was forintc_evt_xlate()insteadSignature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 9 lines · Philip Li
Quoted 5 lines · Andy Shevchenko
Quoted 2 lines · kernel test robot
kernel test robot noticed the following build warnings:
So do these...
Got it, thanks for the info, I will update the bot to ignore the further reports on this commit. Sorry for the false positive.
No, they are not false positives, they are legit and good to have. Just that the root cause is not this commit.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
Quoted 5 lines · Philip Li
Quoted 4 lines · Andy Shevchenko
Quoted 2 lines · kernel test robot
kernel test robot noticed the following build warnings:
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
So do these...
Got it, thanks for the info, I will update the bot to ignore the further reports on this commit. Sorry for the false positive.
No, they are not false positives, they are legit and good to have. Just that the root cause is not this commit.
Thanks Andy, got it. I will add comments clearly to be part of bot configuration.
Quoted 6 lines
Signature · 3 lines
-- With Best Regards, Andy Shevchenko
kernel test robot
build botkernel test robot noticed the following build warnings:
Hi Andy,
kernel test robot noticed the following build warnings:
[auto build test WARNING on lwn/docs-next]
[also build test WARNING on next-20251104]
[cannot apply to linus/master v6.18-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/kernel-doc-Issue-warnings-that-were-silently-discarded/20251105-055629 base: git://git.lwn.net/linux.git docs-next patch link: https://lore.kernel.org/r/20251104215502.1049817-1-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded config: openrisc-allnoconfig (https://download.01.org/0day-ci/archive/20251105/[email protected]/config) compiler: or1k-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All warnings (new ones prefixed by >>):
>> Warning: block/blk-mq-dma.c:374 expecting prototype for blk_rq_integrity_dma_map_iter_start(). Prototype was for blk_rq_integrity_dma_map_iter_next() instead -- >> Warning: kernel/nstree.c:215 function parameter 'ns_tree' not described in '__ns_tree_adjoined_rcu' >> Warning: kernel/nstree.c:215 expecting prototype for ns_tree_adjoined_rcu(). Prototype was for __ns_tree_adjoined_rcu() instead -- >> Warning: lib/hweight.c:13 function parameter 'w' not described in '__sw_hweight32' >> Warning: lib/hweight.c:13 expecting prototype for hweightN(). Prototype was for __sw_hweight32() instead -- >> Warning: mm/vmalloc.c:4129 expecting prototype for vrealloc_node_align_noprof(). Prototype was for vrealloc_node_align() instead
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 3 lines · kernel test robot
Hi Andy,
kernel test robot noticed the following build warnings:
Right, the change restores the check, so these should be fixed separately.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 26 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...And with the original Perl script:
Quoted 8 lines
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...Fixes 9cbc2d3b137b ("scripts/kernel-doc.py: postpone warnings to the output plugin")Signed-off-by Andy Shevchenko <[email protected]>
Oh, thank you. I knew that I had been missing some warnings since I still compare outputs from the 2 kernel-docs (perl vs. python).
Quoted 22 lines
--- scripts/lib/kdoc/kdoc_parser.py | 7 +++++++ 1 file changed, 7 insertions(+)scripts/lib/kdoc/kdoc_parser.py +7
-0@@ -451,6 +451,13 @@ class KernelDoc: variables used by the state machine. """ + # + # Flush the warnings out before we proceed further + # + if self.entry and self.entry not in self.entries: + for log_msg in self.entry.warnings: + self.config.log.warning(log_msg) + self.entry = KernelEntry(self.config, self.fname, ln) # State flags
Signature · 1 line
~Randy
Quoted 33 lines · Randy Dunlap
Quoted 32 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...And with the original Perl script:
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...
Quoted 4 lines
Quoted 2 lines
Fixes 9cbc2d3b137b ("scripts/kernel-doc.py: postpone warnings to the output plugin")Signed-off-by Andy Shevchenko <[email protected]>Oh, thank you. I knew that I had been missing some warnings
You're welcome! I Cc'ed to you a couple of 0day reports for the missed warnings.
Quoted 4 lines
since I still compare outputs from the 2 kernel-docs (perl vs. python).
Reviewed-by Randy Dunlap <[email protected]>Tested-by Randy Dunlap <[email protected]>
Thank you! Jon, can we apply this rather sooner to prevent more missing warnings, please? If the solution is not good enough, we may amend it later.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Jonathan Corbet
maintainer[Heads up to Stephen: this change will add a bunch of warnings that had been dropped before.]
Quoted 8 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
I would really like to redo how some of that logging is done, but that is an exercise for another day. For now, I have applied this one, thanks.
jon
Quoted 14 lines · Jonathan Corbet
[Heads up to Stephen: this change will add a bunch of warnings that had been dropped before.]
Quoted 8 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
Quoted 3 lines
I would really like to redo how some of that logging is done, but that is an exercise for another day. For now, I have applied this one, thanks.
Thank you!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Randy Dunlap
reviewerQuoted 14 lines · Jonathan Corbet
[Heads up to Stephen: this change will add a bunch of warnings that had been dropped before.]
Quoted 8 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
Quoted 3 lines
I would really like to redo how some of that logging is done, but that is an exercise for another day. For now, I have applied this one, thanks.
I think that this patch is causing a (large) problem.
With this patch:
$ make mandocs &>mandocs.out
Without this patch:
$ make mandocs &>mandocsnoas.out
$ wc mandocs.out mandocsnoas.out 29544 267393 3229456 mandocs.out 10052 95948 1208101 mandocsnoas.out
so it appears that this patch causes lots of extra output. Some of that may be what the patch was trying to do, but with this patch, "mandocs.out" above has lots of duplicated
Warning: lines.
$ sort mandocs.out | uniq > mandocsuq.out $ wc mandocsuq.out 18012 167689 1994145 mandocsuq.out
$ grep -c "^Warning:" mandocs.out mandocsnoas.out mandocsuq.out mandocs.out:25273 mandocsnoas.out:10022 mandocsuq.out:15252
In mandocs.out above (29544 lines), this line:
Warning: ../sound/soc/sprd/sprd-mcdt.h:48 struct member 'dma_chan' not described in 'sprd_mcdt_chan'
is found at lines 7 and 29122.
So maybe the logging output needs to be repaired sooner than later.
Signature · 1 line
~Randy
Quoted 35 lines · Randy Dunlap
Quoted 13 lines · Jonathan Corbet
[Heads up to Stephen: this change will add a bunch of warnings that had been dropped before.]
Quoted 8 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
Quoted 3 lines
I would really like to redo how some of that logging is done, but that is an exercise for another day. For now, I have applied this one, thanks.
I think that this patch is causing a (large) problem.
With this patch:
$ make mandocs &>mandocs.outWithout this patch:
$ make mandocs &>mandocsnoas.out$ wc mandocs.out mandocsnoas.out 29544 267393 3229456 mandocs.out 10052 95948 1208101 mandocsnoas.outso it appears that this patch causes lots of extra output. Some of that may be what the patch was trying to do, but with this patch, "mandocs.out" above has lots of duplicated
Warning: lines.
Quoted 8 lines
$ sort mandocs.out | uniq > mandocsuq.out $ wc mandocsuq.out 18012 167689 1994145 mandocsuq.out$ grep -c "^Warning:" mandocs.out mandocsnoas.out mandocsuq.out mandocs.out:25273 mandocsnoas.out:10022 mandocsuq.out:15252
Yes, that's what Mauro explained, that we may have the dups.
Quoted 7 lines
In mandocs.out above (29544 lines), this line:
Warning:../sound/soc/sprd/sprd-mcdt.h:48struct member 'dma_chan' not described in 'sprd_mcdt_chan'is found at lines 7 and 29122.
So maybe the logging output needs to be repaired sooner than later.
Right! But I'm not familiar with this, so I can help only with testing, and not with real fix development.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Randy Dunlap
reviewerQuoted 40 lines · Andy Shevchenko
Quoted 39 lines · Randy Dunlap
Quoted 13 lines · Jonathan Corbet
[Heads up to Stephen: this change will add a bunch of warnings that had been dropped before.]
Quoted 8 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
Quoted 3 lines
I would really like to redo how some of that logging is done, but that is an exercise for another day. For now, I have applied this one, thanks.
I think that this patch is causing a (large) problem.
With this patch:
$ make mandocs &>mandocs.outWithout this patch:
$ make mandocs &>mandocsnoas.out$ wc mandocs.out mandocsnoas.out 29544 267393 3229456 mandocs.out 10052 95948 1208101 mandocsnoas.outso it appears that this patch causes lots of extra output. Some of that may be what the patch was trying to do, but with this patch, "mandocs.out" above has lots of duplicated
Warning: lines.$ sort mandocs.out | uniq > mandocsuq.out $ wc mandocsuq.out 18012 167689 1994145 mandocsuq.out
Quoted 6 lines
Quoted 4 lines
$ grep -c "^Warning:" mandocs.out mandocsnoas.out mandocsuq.out mandocs.out:25273 mandocsnoas.out:10022 mandocsuq.out:15252Yes, that's what Mauro explained, that we may have the dups.
OK, I remember something about that...
Quoted 10 lines
Quoted 7 lines
In mandocs.out above (29544 lines), this line:
Warning:../sound/soc/sprd/sprd-mcdt.h:48struct member 'dma_chan' not described in 'sprd_mcdt_chan'is found at lines 7 and 29122.
So maybe the logging output needs to be repaired sooner than later.
Right! But I'm not familiar with this, so I can help only with testing, and not with real fix development.
Same for me.
Thanks.
Signature · 1 line
~Randy
Randy Dunlap
reviewerHi,
I'm still seeing duplicated warning (logging) messages coming from kernel-doc. Is there any progress on this?
I thought that there were some patches for this...
Thanks.
Quoted 58 lines · Andy Shevchenko
Quoted 35 lines · Randy Dunlap
Quoted 13 lines · Jonathan Corbet
[Heads up to Stephen: this change will add a bunch of warnings that had been dropped before.]
Quoted 8 lines · Andy Shevchenko
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
Quoted 3 lines
I would really like to redo how some of that logging is done, but that is an exercise for another day. For now, I have applied this one, thanks.
I think that this patch is causing a (large) problem.
With this patch:
$ make mandocs &>mandocs.outWithout this patch:
$ make mandocs &>mandocsnoas.out$ wc mandocs.out mandocsnoas.out 29544 267393 3229456 mandocs.out 10052 95948 1208101 mandocsnoas.outso it appears that this patch causes lots of extra output. Some of that may be what the patch was trying to do, but with this patch, "mandocs.out" above has lots of duplicated
Warning: lines.Quoted 8 lines
$ sort mandocs.out | uniq > mandocsuq.out $ wc mandocsuq.out 18012 167689 1994145 mandocsuq.out$ grep -c "^Warning:" mandocs.out mandocsnoas.out mandocsuq.out mandocs.out:25273 mandocsnoas.out:10022 mandocsuq.out:15252Yes, that's what Mauro explained, that we may have the dups.
Quoted 7 lines
In mandocs.out above (29544 lines), this line:
Warning:../sound/soc/sprd/sprd-mcdt.h:48struct member 'dma_chan' not described in 'sprd_mcdt_chan'is found at lines 7 and 29122.
So maybe the logging output needs to be repaired sooner than later.
Right! But I'm not familiar with this, so I can help only with testing, and not with real fix development.
Signature · 1 line
~Randy
Em Tue, 4 Nov 2025 22:55:02 +0100
Andy Shevchenko <[email protected]> escreveu:
Quoted 46 lines
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...And with the original Perl script:
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...Fixes 9cbc2d3b137b ("scripts/kernel-doc.py: postpone warnings to the output plugin")Signed-off-by Andy Shevchenko <[email protected]>--- scripts/lib/kdoc/kdoc_parser.py | 7 +++++++ 1 file changed, 7 insertions(+)scripts/lib/kdoc/kdoc_parser.py +0
-0@@ -451,6 +451,13 @@ class KernelDoc: variables used by the state machine. """
scripts/lib/kdoc/kdoc_parser.py class KernelDoc: · line 463
Quoted 10 lines
scripts/lib/kdoc/kdoc_parser.py +7
-0+ # + # Flush the warnings out before we proceed further + # + if self.entry and self.entry not in self.entries: + for log_msg in self.entry.warnings: + self.config.log.warning(log_msg) + self.entry = KernelEntry(self.config, self.fname, ln) # State flags
No objection of this one, but this breaks the behavior of the -W flags.
See, the way kernel-doc.pl worked is that:
1. Warnings are controlled via several -W flags:
-Wreturn, --wreturn Warns about the lack of a return markup on functions.
-Wshort-desc, -Wshort-description, --wshort-desc
Warns if initial short description is missing
This option is kept just for backward-compatibility, but it does nothing, neither here nor at the original Perl script.
-Wall, --wall Enable all types of warnings
-Werror, --werror Treat warnings as errors.
Those affect running kernel-doc manually.
2. Warnings are affected by the filtering commands:
-e, -export, --export
Only output documentation for the symbols that have been exported using EXPORT_SYMBOL() and related macros in any input FILE or -export-file FILE.
-i, -internal, --internal
Only output documentation for the symbols that have NOT been exported using EXPORT_SYMBOL() and related macros in any input FILE or -export-file FILE.
-s, -function, --symbol SYMBOL
Only output documentation for the given function or DOC: section title. All other functions and DOC: sections are ignored.
May be used multiple times.
Those affect both running kernel-doc manually or when called via make htmldocs, as the kerneldoc Sphinx markup supports them.
As the filters are only applied at kdoc/kdoc_output.py, printing warnings early at kdoc_parser means that, even ignored symbols will be warned. It might also make the same warning to appear more than once, for C files that are listed on multiple kerneldoc entries(*).
(*) There is a logic at kerneldoc.py Sphinx extension and inside kdoc_files
to avoid parsing the same file twice, but I didn't test adding a hack similar to this one to double-check that the warning won't appear multiple times when export is used. Maybe it is working fine.
-
In summary, if warnings are suppressed, my suggestion would be to check at kdoc_output to see what is filtering them out.
Alternatively, if the idea is to always print warnings, get rid of all -W<option> flags, except for -Werror.
Thanks,
Mauro
Randy Dunlap
reviewerQuoted 6 lines · Mauro Carvalho Chehab
No objection of this one, but this breaks the behavior of the -W flags.
See, the way kernel-doc.pl worked is that:
Quoted 8 lines
1. Warnings are controlled via several -W flags:
-Wreturn, --wreturn Warns about the lack of a return markup on functions.
-Wshort-desc, -Wshort-description, --wshort-desc
Warns if initial short description is missingThis option is kept just for backward-compatibility, but it does nothing, neither here nor at the original Perl script.
FWIW, it did output warnings once upon a time (the Perl script version). I don't know what happened to it.
Quoted 4 lines
-Wall, --wall Enable all types of warnings
-Werror, --werror Treat warnings as errors.Those affect running kernel-doc manually.
Signature · 1 line
~Randy
Quoted 58 lines · Mauro Carvalho Chehab
Em Tue, 4 Nov 2025 22:55:02 +0100
Andy Shevchenko <[email protected]> escreveu:Quoted 55 lines
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...And with the original Perl script:
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...Fixes 9cbc2d3b137b ("scripts/kernel-doc.py: postpone warnings to the output plugin")Signed-off-by Andy Shevchenko <[email protected]>--- scripts/lib/kdoc/kdoc_parser.py | 7 +++++++ 1 file changed, 7 insertions(+)scripts/lib/kdoc/kdoc_parser.py +7
-0@@ -451,6 +451,13 @@ class KernelDoc: variables used by the state machine. """ + # + # Flush the warnings out before we proceed further + # + if self.entry and self.entry not in self.entries: + for log_msg in self.entry.warnings: + self.config.log.warning(log_msg) + self.entry = KernelEntry(self.config, self.fname, ln)
Quoted 4 lines
scripts/lib/kdoc/kdoc_parser.py class KernelDoc: · line 463
Quoted 1 line
scripts/lib/kdoc/kdoc_parser.py +0
-0# State flagsNo objection of this one, but this breaks the behavior of the -W flags.
Sorry for that, but at least now the outcome is much better than before.
Quoted 32 lines
See, the way kernel-doc.pl worked is that:
1. Warnings are controlled via several -W flags:
-Wreturn, --wreturn Warns about the lack of a return markup on functions.
-Wshort-desc, -Wshort-description, --wshort-desc
Warns if initial short description is missingThis option is kept just for backward-compatibility, but it does nothing, neither here nor at the original Perl script.
-Wall, --wall Enable all types of warnings
-Werror, --werror Treat warnings as errors.Those affect running kernel-doc manually.
2. Warnings are affected by the filtering commands:
-e, -export, --exportOnly output documentation for the symbols that have been exported using
EXPORT_SYMBOL()and related macros in any input FILE or -export-file FILE.
-i, -internal, --internalOnly output documentation for the symbols that have NOT been exported using
EXPORT_SYMBOL()and related macros in any input FILE or -export-file FILE.
-s, -function, --symbol SYMBOLOnly output documentation for the given function or DOC: section title. All other functions and DOC: sections are ignored.
Quoted 8 lines
May be used multiple times.
Those affect both running kernel-doc manually or when called via make htmldocs, as the kerneldoc Sphinx markup supports them.
As the filters are only applied at
kdoc/kdoc_output.py, printing warnings early atkdoc_parsermeans that, even ignored symbols will be warned.
Maybe I failed to make the point of the reproducer. The kernel doc and prototype are mismatched, and hence there is no way one may filter this in accordance with the logic I read. These warnings must be printed independently on the filters as filters may not be applied to this. Or i.o.w. what has one to put to -s for the reproducer case to make it visible? Also what should one put to make it on par with the previous behaviour?
Quoted 9 lines
It might
also make the same warning to appear more than once, for C files that are listed on multiple kerneldocentries(*).(*) There is a logic at
kerneldoc.pySphinx extension and insidekdoc_files
to avoid parsing the same file twice, but I didn't test adding a hack similar to this one to double-check that the warning won't appear multiple times when export is used. Maybe it is working fine.
Quoted 4 lines
-
In summary, if warnings are suppressed, my suggestion would be to check at
kdoc_outputto see what is filtering them out.
In the commit message I tried to explain the situation. These warning are vanished _before any_ output plugin is run. There is *no way* to get them printed otherwise. It's, of course, possible that I haven't got deeply the idea behind architecture of the logging in the Python script. I am all ears for the improvements that satisfy everybody.
I think the problem is in design, it needs to be redone as Jon said.
Quoted 2 lines
Alternatively, if the idea is to always print warnings, get rid of all -W<option> flags, except for -Werror.
Not sure it's wanted behaviour, but I am in favour for anything that makes warning visible and not silently disappear.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 134 lines · Andy Shevchenko
Quoted 58 lines · Mauro Carvalho Chehab
Em Tue, 4 Nov 2025 22:55:02 +0100
Andy Shevchenko <[email protected]> escreveu:Quoted 55 lines
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...And with the original Perl script:
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...Fixes 9cbc2d3b137b ("scripts/kernel-doc.py: postpone warnings to the output plugin")Signed-off-by Andy Shevchenko <[email protected]>--- scripts/lib/kdoc/kdoc_parser.py | 7 +++++++ 1 file changed, 7 insertions(+)scripts/lib/kdoc/kdoc_parser.py +7
-0@@ -451,6 +451,13 @@ class KernelDoc: variables used by the state machine. """ + # + # Flush the warnings out before we proceed further + # + if self.entry and self.entry not in self.entries: + for log_msg in self.entry.warnings: + self.config.log.warning(log_msg) + self.entry = KernelEntry(self.config, self.fname, ln)Quoted 4 lines
scripts/lib/kdoc/kdoc_parser.py class KernelDoc: · line 463
Quoted 1 line
scripts/lib/kdoc/kdoc_parser.py +0
-0# State flagsNo objection of this one, but this breaks the behavior of the -W flags.
Sorry for that, but at least now the outcome is much better than before.
Quoted 32 lines
See, the way kernel-doc.pl worked is that:
1. Warnings are controlled via several -W flags:
-Wreturn, --wreturn Warns about the lack of a return markup on functions.
-Wshort-desc, -Wshort-description, --wshort-desc
Warns if initial short description is missingThis option is kept just for backward-compatibility, but it does nothing, neither here nor at the original Perl script.
-Wall, --wall Enable all types of warnings
-Werror, --werror Treat warnings as errors.Those affect running kernel-doc manually.
2. Warnings are affected by the filtering commands:
-e, -export, --exportOnly output documentation for the symbols that have been exported using
EXPORT_SYMBOL()and related macros in any input FILE or -export-file FILE.
-i, -internal, --internalOnly output documentation for the symbols that have NOT been exported using
EXPORT_SYMBOL()and related macros in any input FILE or -export-file FILE.
-s, -function, --symbol SYMBOLOnly output documentation for the given function or DOC: section title. All other functions and DOC: sections are ignored.
Quoted 8 lines
May be used multiple times.
Those affect both running kernel-doc manually or when called via make htmldocs, as the kerneldoc Sphinx markup supports them.
As the filters are only applied at
kdoc/kdoc_output.py, printing warnings early atkdoc_parsermeans that, even ignored symbols will be warned.Maybe I failed to make the point of the reproducer. The kernel doc and prototype are mismatched, and hence there is no way one may filter this in accordance with the logic I read. These warnings must be printed independently on the filters as filters may not be applied to this. Or i.o.w. what has one to put to -s for the reproducer case to make it visible? Also what should one put to make it on par with the previous behaviour?
Quoted 9 lines
It might
also make the same warning to appear more than once, for C files that are listed on multiple kerneldocentries(*).(*) There is a logic at
kerneldoc.pySphinx extension and insidekdoc_files
to avoid parsing the same file twice, but I didn't test adding a hack similar to this one to double-check that the warning won't appear multiple times when export is used. Maybe it is working fine.Quoted 4 lines
-
In summary, if warnings are suppressed, my suggestion would be to check at
kdoc_outputto see what is filtering them out.In the commit message I tried to explain the situation. These warning are vanished
_beforeany_output plugin is run. There is *no way* to get them printed otherwise. It's, of course, possible that I haven't got deeply the idea behind architecture of the logging in the Python script. I am all ears for the improvements that satisfy everybody.
Quoted 7 lines
I think the problem is in design, it needs to be redone as Jon said.
Quoted 2 lines
Alternatively, if the idea is to always print warnings, get rid of all -W<option> flags, except for -Werror.
Not sure it's wanted behaviour, but I am in favour for anything that makes warning visible and not silently disappear.
Thinking more on this, I believe the -Wall must imply that any filters become no-op.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 59 lines · Andy Shevchenko
Quoted 58 lines · Mauro Carvalho Chehab
Em Tue, 4 Nov 2025 22:55:02 +0100
Andy Shevchenko <[email protected]> escreveu:Quoted 55 lines
When kernel-doc parses the sections for the documentation some errors may occur. In many cases the warning is simply stored to the current "entry" object. However, in the most of such cases this object gets discarded and there is no way for the output engine to even know about that. To avoid that, check if the "entry" is going to be discarded and if there warnings have been collected, issue them to the current logger as is and then flush the "entry". This fixes the problem that original Perl implementation doesn't have.
As of Linux kernel v6.18-rc4 the reproducer can be:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr ...while with the proposed change applied it gives one more line:
$ scripts/kernel-doc -v -none -Wall include/linux/util_macros.h ... Info: include/linux/util_macros.h:138 Scanning doc for function to_user_ptr Warning: include/linux/util_macros.h:144 expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...And with the original Perl script:
$ scripts/kernel-doc.pl -v -none -Wall include/linux/util_macros.h ... include/linux/util_macros.h:139: info: Scanning doc for function to_user_ptr include/linux/util_macros.h:149: warning: expecting prototype for to_user_ptr(). Prototype was for u64_to_user_ptr() instead ...Fixes 9cbc2d3b137b ("scripts/kernel-doc.py: postpone warnings to the output plugin")Signed-off-by Andy Shevchenko <[email protected]>--- scripts/lib/kdoc/kdoc_parser.py | 7 +++++++ 1 file changed, 7 insertions(+)scripts/lib/kdoc/kdoc_parser.py +7
-0@@ -451,6 +451,13 @@ class KernelDoc: variables used by the state machine. """ + # + # Flush the warnings out before we proceed further + # + if self.entry and self.entry not in self.entries: + for log_msg in self.entry.warnings: + self.config.log.warning(log_msg) + self.entry = KernelEntry(self.config, self.fname, ln)
Quoted 6 lines
Quoted 4 lines
scripts/lib/kdoc/kdoc_parser.py class KernelDoc: · line 463
Quoted 1 line
scripts/lib/kdoc/kdoc_parser.py +0
-0# State flagsNo objection of this one, but this breaks the behavior of the -W flags.
Sorry for that, but at least now the outcome is much better than before.
That's why I said I'm not against ;-)
Quoted 39 lines
Quoted 39 lines
See, the way kernel-doc.pl worked is that:
1. Warnings are controlled via several -W flags:
-Wreturn, --wreturn Warns about the lack of a return markup on functions.
-Wshort-desc, -Wshort-description, --wshort-desc
Warns if initial short description is missingThis option is kept just for backward-compatibility, but it does nothing, neither here nor at the original Perl script.
-Wall, --wall Enable all types of warnings
-Werror, --werror Treat warnings as errors.Those affect running kernel-doc manually.
2. Warnings are affected by the filtering commands:
-e, -export, --exportOnly output documentation for the symbols that have been exported using
EXPORT_SYMBOL()and related macros in any input FILE or -export-file FILE.
-i, -internal, --internalOnly output documentation for the symbols that have NOT been exported using
EXPORT_SYMBOL()and related macros in any input FILE or -export-file FILE.
-s, -function, --symbol SYMBOLOnly output documentation for the given function or DOC: section title. All other functions and DOC: sections are ignored.
May be used multiple times.
Those affect both running kernel-doc manually or when called via make htmldocs, as the kerneldoc Sphinx markup supports them.
Quoted 6 lines
Quoted 2 lines
As the filters are only applied at
kdoc/kdoc_output.py, printing warnings early atkdoc_parsermeans that, even ignored symbols will be warned.Maybe I failed to make the point of the reproducer. The kernel doc and prototype are mismatched, and hence there is no way one may filter this in accordance with the logic I read.
I see.
Quoted 4 lines
These warnings must be printed independently on the
filters as filters may not be applied to this. Or i.o.w. what has one to put to -s for the reproducer case to make it visible? Also what should one put to make it on par with the previous behaviour?
FYI, I'm not a big fan of warning suppression. I only implemented the -W flags on Python after implementing all other functionalities.
I did it mostly because I wanted to be bug-compatible with the perl version. Heh, even on the perl version, one of the -W flags weren't used.
Quoted 15 lines
Quoted 10 lines
It might
also make the same warning to appear more than once, for C files that are listed on multiple kerneldocentries(*).(*) There is a logic at
kerneldoc.pySphinx extension and insidekdoc_files
to avoid parsing the same file twice, but I didn't test adding a hack similar to this one to double-check that the warning won't appear multiple times when export is used. Maybe it is working fine.Quoted 4 lines
-
In summary, if warnings are suppressed, my suggestion would be to check at
kdoc_outputto see what is filtering them out.
Quoted 7 lines
In the commit message I tried to explain the situation. These warning are vanished
_beforeany_output plugin is run. There is *no way* to get them printed otherwise. It's, of course, possible that I haven't got deeply the idea behind architecture of the logging in the Python script. I am all ears for the improvements that satisfy everybody.I think the problem is in design, it needs to be redone as Jon said.
Originally, the warning function were just printing all warnings there directly. After I finished the script, I had to move them to be shown after filtering, in order to reproduce the same behavior of the -W flags.
If we get rid of them (your patch effectively did that), we can just simplify the warning function and drop the prints from the output module.
From my side, IMO this is the best alternative.
Quoted 11 lines
Quoted 2 lines
Alternatively, if the idea is to always print warnings, get rid of all -W<option> flags, except for -Werror.
Not sure it's wanted behaviour, but I am in favour for anything that makes warning visible and not silently disappear.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Signature · 2 lines
Thanks, Mauro
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [BUILD REGRESSION] LAST PATCH: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded
Quoted 10 lines · kernel test robot
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/kernel-doc-Issue-warnings-that-were-silently-discarded/20251105-055629 base: git://git.lwn.net/linux.git docs-next patch link: https://lore.kernel.org/r/20251104215502.1049817-1-andriy.shevchenko%40linux.intel.com patch subject: [PATCH v1 1/1] kernel-doc: Issue warnings that were silently discarded[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]Error/Warning (recently discovered and may have been fixed):
Yeah, this is what we missed for these half a year...
Quoted 133 lines
https://lore.kernel.org/oe-kbuild-all/[email protected]
https://lore.kernel.org/oe-kbuild-all/[email protected]Warning:
arch/powerpc/kernel/eeh_driver.c:761expecting prototype foreeh_check_slot_presence(). Prototype was foreeh_slot_presence_check()instead
Warning:arch/powerpc/kernel/eeh_event.c:102expecting prototype foreeh_send_failure_event(). Prototype was for__eeh_send_failure_event()instead
Warning:arch/powerpc/kernel/eeh_pe.c:567expecting prototype foreeh_pe_dev_state_mark(). Prototype was foreeh_pe_dev_mode_mark()instead
Warning:arch/powerpc/kernel/eeh_pe.c:567function parameter 'mode' not described in 'eeh_pe_dev_mode_mark'
Warning:arch/powerpc/kernel/isa-bridge.c:157expecting prototype forisa_bridge_find_early(). Prototype was forisa_bridge_init_non_pci()instead
Warning:arch/powerpc/kernel/isa-bridge.c:157function parameter 'np' not described in 'isa_bridge_init_non_pci'
Warning:arch/powerpc/kernel/pci-common.c:1645expecting prototype forpci_scan_phb(). Prototype was forpcibios_scan_phb()instead
Warning:arch/powerpc/kernel/pci_of_scan.c:60expecting prototype forpci_parse_of_flags(). Prototype was forOF_PCI_ADDR0_SPACE()instead
Warning:arch/powerpc/kernel/pci_of_scan.c:60function parameter 'ss' not described in 'OF_PCI_ADDR0_SPACE'
Warning:arch/powerpc/kernel/setup-common.c:453expecting prototype forsetup_cpu_maps(). Prototype was forsmp_setup_cpu_maps()instead
Warning:arch/powerpc/platforms/52xx/mpc52xx_gpt.c:98expecting prototype for structmpc52xx_gpt. Prototype was for structmpc52xx_gpt_privinstead
Warning:arch/powerpc/platforms/cell/spu_base.c:222This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:arch/powerpc/platforms/cell/spufs/sched.c:475expecting prototype forspu_add_to_rq(). Prototype was for__spu_add_to_rq()instead
Warning:arch/powerpc/platforms/cell/spufs/switch.c:2182expecting prototype forspu_alloc_csa(). Prototype was forspu_init_csa()instead
Warning:arch/powerpc/platforms/cell/spufs/switch.c:2182function parameter 'csa' not described in 'spu_init_csa'
Warning:arch/powerpc/platforms/cell/spufs/syscalls.c:36expecting prototype forsys_spu_run(). Prototype was fordo_spu_run()instead
Warning:arch/powerpc/platforms/cell/spufs/syscalls.c:36function parameter 'filp' not described in 'do_spu_run'
Warning:arch/powerpc/platforms/powernv/eeh-powernv.c:1166expecting prototype forpnv_pe_err_inject(). Prototype was forpnv_eeh_err_inject()instead
Warning:arch/powerpc/platforms/ps3/htab.c:28expecting prototype for enumlpar_vas_id. Prototype was for enumps3_lpar_vas_idinstead
Warning:arch/powerpc/platforms/ps3/interrupt.c:150cannot understand function prototype: 'structirq_chipps3_irq_chip='
Warning:arch/powerpc/platforms/ps3/interrupt.c:55#definePS3_BMP_MINALIGN64; error: Cannot parse struct or union!
Warning:arch/powerpc/platforms/ps3/mm.c:1092expecting prototype fordma_unmap_area_linear(). Prototype was fordma_sb_unmap_area_linear()instead
Warning:arch/powerpc/platforms/ps3/mm.c:708expecting prototype fordma_region_free(). Prototype was fordma_sb_region_free()instead
Warning:arch/powerpc/platforms/ps3/smp.c:26expecting prototype forps3_ipi_virqs(). Prototype was forMSG_COUNT()instead
Warning:arch/powerpc/platforms/pseries/lpar.c:1080This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:arch/powerpc/platforms/pseries/setup.c:945expecting prototype forfw_cmo_feature_init(). Prototype was forpSeries_cmo_feature_init()instead
Warning:arch/powerpc/platforms/pseries/vio.c:106expecting prototype forvio_cmo_OF_devices(). Prototype was forvio_cmo_num_OF_devs()instead
Warning:arch/powerpc/platforms/pseries/vio.c:1286expecting prototype forvio_register_driver(). Prototype was for__vio_register_driver()instead
Warning:arch/powerpc/platforms/pseries/vio.c:1286function parameter 'mod_name' not described in '__vio_register_driver'
Warning:arch/powerpc/platforms/pseries/vio.c:1286function parameter 'owner' not described in '__vio_register_driver'
Warning:arch/powerpc/platforms/pseries/vio.c:51cannot understand function prototype: 'structvio_cmo_pool'
Warning:arch/powerpc/platforms/pseries/vio.c:68cannot understand function prototype: 'structvio_cmo_dev_entry'
Warning:arch/powerpc/platforms/pseries/vio.c:88cannot understand function prototype: 'structvio_cmo'
Warning:arch/x86/kernel/apic/apic.c:2145expecting prototype forspurious_interrupt(). Prototype was forDEFINE_IDTENTRY_IRQ()instead
Warning:arch/x86/kernel/apic/apic.c:2145function parameter 'spurious_interrupt' not described in 'DEFINE_IDTENTRY_IRQ'
Warning:block/blk-mq-dma.c:374expecting prototype forblk_rq_integrity_dma_map_iter_start(). Prototype was forblk_rq_integrity_dma_map_iter_next()instead
Warning:drivers/dma/bestcomm/gen_bd.c:261cannot understand function prototype: 'structbcom_psc_params'
Warning:drivers/dpll/zl3073x/fw.c:365expecting prototype forzl3073x_flash_bundle_flash(). Prototype was forzl3073x_fw_component_flash()instead
Warning:drivers/dpll/zl3073x/fw.c:365function parameter 'comp' not described in 'zl3073x_fw_component_flash'
Warning:drivers/gpu/drm/msm/msm_gem_vma.c:96expecting prototype for structmsm_vma_op. Prototype was for structmsm_vm_opinstead
Warning:drivers/gpu/drm/msm/msm_iommu.c:376expecting prototype foralloc_pt(). Prototype was formsm_iommu_pagetable_alloc_pt()instead
Warning:drivers/gpu/drm/msm/msm_iommu.c:421expecting prototype forfree_pt(). Prototype was formsm_iommu_pagetable_free_pt()instead
Warning:drivers/gpu/drm/xe/xe_migrate.c:1128expecting prototype forxe_get_migrate_exec_queue(). Prototype was forxe_migrate_exec_queue()instead
Warning:drivers/gpu/drm/xe/xe_sriov_vf.c:303This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/gpu/drm/xe/xe_tlb_inval.c:126expecting prototype forxe_gt_tlb_inval_init(). Prototype was forxe_gt_tlb_inval_init_early()instead
Warning:drivers/gpu/drm/xe/xe_tlb_inval_job.c:164expecting prototype forxe_tlb_inval_alloc_dep(). Prototype was forxe_tlb_inval_job_alloc_dep()instead
Warning:drivers/md/bcache/request.c:308expecting prototype forbch_data_insert(). Prototype was forCLOSURE_CALLBACK()instead
Warning:drivers/md/bcache/request.c:308function parameter 'bch_data_insert' not described in 'CLOSURE_CALLBACK'
Warning:drivers/net/pse-pd/pse_core.c:246expecting prototype forpse_control_find_net_by_id(). Prototype was forpse_control_find_by_id()instead
Warning:drivers/ps3/ps3-lpm.c:1056expecting prototype forps3_enable_pm_interrupts(). Prototype was forps3_disable_pm_interrupts()instead
Warning:drivers/ps3/ps3-lpm.c:1056function parameter 'cpu' not described in 'ps3_disable_pm_interrupts'
Warning:drivers/ps3/ps3-lpm.c:143cannot understand function prototype: 'structps3_lpm_priv*lpm_priv;'
Warning:drivers/ps3/ps3-lpm.c:161cannot understand function prototype: 'enum'
Warning:drivers/ps3/ps3-sys-manager.c:198cannot understand function prototype: 'u32user_wake_sources=PS3_SM_WAKE_DEFAULT;'
Warning:drivers/ps3/ps3-sys-manager.c:222cannot understand function prototype: 'unsigned intps3_sm_force_power_off;'
Warning:drivers/ps3/ps3-sys-manager.c:35Incorrect use of kernel-doc format: * structps3_sys_manager_header- System manager message header.
Warning:drivers/ps3/ps3-sys-manager.c:43cannot understand function prototype: '* @version: Header version, currently 1. * @size: Header size in bytes, currently 16. * @payload_size: Message payload size in bytes. * @service_id: Message type, one of enumps3_sys_manager_service_id. * @request_tag: Unique number to identify reply. */ structps3_sys_manager_header'
Warning:drivers/ps3/ps3-sys-manager.c:66Cannot find identifier on line:
Warning:drivers/ps3/ps3-sys-manager.c:69This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/ps3/ps3-vuart.c:36cannot understand function prototype: 'enum'
Warning:drivers/ps3/sys-manager-core.c:14This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/ps3/sys-manager-core.c:30expecting prototype forps3_register_sys_manager_ops(). Prototype was forps3_sys_manager_register_ops()instead
Warning:drivers/regulator/pf9453-regulator.c:303This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/scsi/mpt3sas/mpt3sas_ctl.c:2913expecting prototype formpt3sas_send_passthru_cmd(). Prototype was formpt3sas_send_mctp_passthru_req()instead
Warning:drivers/sh/intc/irqdomain.c:29expecting prototype forintc_irq_domain_evt_xlate(). Prototype was forintc_evt_xlate()instead
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'ctrlr' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'd' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'intsize' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'intspec' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'out_hwirq' not described in 'intc_evt_xlate'
Warning:drivers/sh/intc/irqdomain.c:29function parameter 'out_type' not described in 'intc_evt_xlate'
Warning:drivers/tty/serial/mux.c:351expecting prototype formux_drv_poll(). Prototype was formux_poll()instead
Warning:drivers/video/fbdev/mmp/hw/mmp_spi.c:30expecting prototype forspi_write(). Prototype was forlcd_spi_write()instead
Warning:drivers/virtio/virtio_ring.c:3308expecting prototype forvirtqueue_mapping_error(). Prototype was forvirtqueue_map_mapping_error()instead
Warning:fs/befs/datastream.c:131expecting prototype forbefs_read_lsmylink(). Prototype was forbefs_read_lsymlink()instead
Warning:ipc/sem.c:629This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:kernel/nstree.c:215expecting prototype forns_tree_adjoined_rcu(). Prototype was for__ns_tree_adjoined_rcu()instead
Warning:kernel/nstree.c:215function parameter 'ns_tree' not described in '__ns_tree_adjoined_rcu'
Warning:lib/hweight.c:13expecting prototype forhweightN(). Prototype was for__sw_hweight32()instead
Warning:lib/hweight.c:13function parameter 'w' not described in '__sw_hweight32'
Warning:mm/swap_state.c:294expecting prototype forswap_cache_clear_shadow(). Prototype was for__swap_cache_clear_shadow()instead
Warning:mm/vmalloc.c:4129expecting prototype forvrealloc_node_align_noprof(). Prototype was forvrealloc_node_align()instead
Warning:security/apparmor/af_unix.c:618Cannot find identifier on line:
Warning:security/apparmor/af_unix.c:626expecting prototype forRequires(). Prototype was foraa_unix_peer_perm()instead
Warning:security/apparmor/af_unix.c:626function parameter 'label' not described in 'aa_unix_peer_perm'
Warning:security/apparmor/af_unix.c:626function parameter 'op' not described in 'aa_unix_peer_perm'
Warning:security/apparmor/af_unix.c:626function parameter 'peer_label' not described in 'aa_unix_peer_perm'
Warning:security/apparmor/af_unix.c:626function parameter 'peer_sk' not described in 'aa_unix_peer_perm'
Warning:security/apparmor/af_unix.c:626function parameter 'request' not described in 'aa_unix_peer_perm'
Warning:security/apparmor/af_unix.c:626function parameter 'sk' not described in 'aa_unix_peer_perm'
Warning:security/apparmor/af_unix.c:626function parameter 'subj_cred' not described in 'aa_unix_peer_perm'
Warning:sound/soc/fsl/mpc5200_psc_ac97.c:222cannot understand function prototype: 'const structsnd_soc_dai_opspsc_ac97_analog_ops='
Warning:sound/soc/fsl/mpc5200_psc_i2s.c:123cannot understand function prototype: 'const structsnd_soc_dai_opspsc_i2s_dai_ops='
Warning:sound/usb/usx2y/us144mkii.c:13Cannot find identifier on line:
Warning:sound/usb/usx2y/us144mkii.c:15This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:sound/usb/usx2y/us144mkii_capture.c:100cannot understand function prototype: 'const structsnd_pcm_opstascam_capture_ops='
Warning:sound/usb/usx2y/us144mkii_controls.c:100cannot understand function prototype: 'const structsnd_kcontrol_newtascam_line_out_control='
Warning:sound/usb/usx2y/us144mkii_controls.c:171cannot understand function prototype: 'const structsnd_kcontrol_newtascam_digital_out_control='
Warning:sound/usb/usx2y/us144mkii_controls.c:259cannot understand function prototype: 'const structsnd_kcontrol_newtascam_capture_12_control='
Warning:sound/usb/usx2y/us144mkii_controls.c:330cannot understand function prototype: 'const structsnd_kcontrol_newtascam_capture_34_control='
Warning:sound/usb/usx2y/us144mkii_controls.c:408cannot understand function prototype: 'const structsnd_kcontrol_newtascam_samplerate_control='
Warning:sound/usb/usx2y/us144mkii_controls.c:6Cannot find identifier on line:
Warning:sound/usb/usx2y/us144mkii_controls.c:8This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:sound/usb/usx2y/us144mkii_midi.c:158cannot understand function prototype: 'const structsnd_rawmidi_opstascam_midi_in_ops='
Warning:sound/usb/usx2y/us144mkii_midi.c:369cannot understand function prototype: 'const structsnd_rawmidi_opstascam_midi_out_ops='
Warning:sound/usb/usx2y/us144mkii_playback.c:146cannot understand function prototype: 'const structsnd_pcm_opstascam_playback_ops='Unverified Error/Warning (likely false positive, kindly check if interested):
Warning:
arch/arm/mach-omap2/cpuidle44xx.c:75This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:arch/arm/mach-omap2/prm33xx.c:322expecting prototype foram33xx_prm_global_warm_sw_reset(). Prototype was foram33xx_prm_global_sw_reset()instead
Warning:drivers/char/xilinx_hwicap/fifo_icap.c:357expecting prototype forbuffer_icap_reset(). Prototype was forfifo_icap_reset()instead
Warning:drivers/char/xilinx_hwicap/fifo_icap.c:51This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/clk/zynq/pll.c:52expecting prototype forzynq_pll_round_rate(). Prototype was forzynq_pll_determine_rate()instead
Warning:drivers/clk/zynq/pll.c:52function parameter 'req' not described in 'zynq_pll_determine_rate'
Warning:drivers/clk/zynqmp/divider.c:122expecting prototype forzynqmp_clk_divider_round_rate(). Prototype was forzynqmp_clk_divider_determine_rate()instead
Warning:drivers/clk/zynqmp/divider.c:122function parameter 'req' not described in 'zynqmp_clk_divider_determine_rate'
Warning:drivers/clk/zynqmp/pll.c:102expecting prototype forzynqmp_pll_round_rate(). Prototype was forzynqmp_pll_determine_rate()instead
Warning:drivers/clk/zynqmp/pll.c:102function parameter 'req' not described in 'zynqmp_pll_determine_rate'
Warning:drivers/cpufreq/gx-suspmod.c:142This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/cpufreq/longrun.c:125expecting prototype forlongrun_verify_poliy(). Prototype was forlongrun_verify_policy()instead
Warning:drivers/cpufreq/longrun.c:20This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/gpu/drm/drm_gpusvm.c:1229expecting prototype fordrm_gpusvm_range_pages_valid_unlocked(). Prototype was fordrm_gpusvm_pages_valid_unlocked()instead
Warning:drivers/gpu/drm/drm_gpusvm.c:1229function parameter 'svm_pages' not described in 'drm_gpusvm_pages_valid_unlocked'
Warning:drivers/infiniband/hw/mlx5/umr.c:986This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rst
Warning:drivers/mailbox/mailbox-xgene-slimpro.c:42cannot understand function prototype: 'structslimpro_mbox_chan'
Warning:drivers/mailbox/mailbox-xgene-slimpro.c:61cannot understand function prototype: 'structslimpro_mbox'
Warning:drivers/net/ethernet/intel/idpf/idpf_txrx.c:2407expecting prototype foridpf_tx_splitq_has_room(). Prototype was foridpf_txq_has_room()instead
Warning:sound/soc/sdca/sdca_interrupts.c:265expecting prototype forsdca_request_irq(). Prototype was forsdca_irq_request()instead
Warning:sound/soc/sdca/sdca_interrupts.c:265function parameter 'info' not described in 'sdca_irq_request'
Signature · 2 lines
With Best Regards, Andy Shevchenko