Missing UTHREAD doc annotations
Hey,
As part of manually building the docs before doing -rc1, I saw the following:./include/uthread.h:56: warning: cannot understand function prototype:
'enum uthread_mutex_state './include/uthread.h:64: warning: cannot understand function prototype:
'struct uthread_mutex './include/uthread.h:56: warning: cannot understand function prototype:
'enum uthread_mutex_state './include/uthread.h:64: warning: cannot understand function prototype:
'struct uthread_mutex '
Which should be fixed. I also noticed that with KDOC_WERROR=1 this did not fail and still produced an exit status of 0 which is why it was merged and not noticed until now.
Signature · 1 line
Tom
Hi Tom,
Quoted 13 lines · Tom Rini
Hey,
As part of manually building the docs before doing -rc1, I saw the following:
./include/uthread.h:56: warning: cannot understand function prototype:
'enumuthread_mutex_state'./include/uthread.h:64: warning: cannot understand function prototype:
'structuthread_mutex'./include/uthread.h:56: warning: cannot understand function prototype:
'enumuthread_mutex_state'./include/uthread.h:64: warning: cannot understand function prototype:
'structuthread_mutex'
Quoted 1 line
Which should be fixed.
Please see https://lists.denx.de/pipermail/u-boot/2025-April/588263.html.
Quoted 3 lines
I also noticed that with KDOC_WERROR=1 this did
not fail and still produced an exit status of 0 which is why it was merged and not noticed until now.
That's unfortunate. I don't understand why warning don't stop the build given that sphinx-build is given the -W option already.
Signature · 1 line
Jerome
Hi Jerome,
Quoted 19 lines · Jerome Forissier
Hi Tom,
Quoted 13 lines · Tom Rini
Hey,
As part of manually building the docs before doing -rc1, I saw the following:
./include/uthread.h:56: warning: cannot understand function prototype:
'enumuthread_mutex_state'./include/uthread.h:64: warning: cannot understand function prototype:
'structuthread_mutex'./include/uthread.h:56: warning: cannot understand function prototype:
'enumuthread_mutex_state'./include/uthread.h:64: warning: cannot understand function prototype:
'structuthread_mutex'Quoted 1 line
Which should be fixed.
Quoted 8 lines
Please see https://lists.denx.de/pipermail/u-boot/2025-April/588263.html.
Quoted 3 lines
I also noticed that with KDOC_WERROR=1 this did
not fail and still produced an exit status of 0 which is why it was merged and not noticed until now.That's unfortunate. I don't understand why warning don't stop the build given that sphinx-build is given the -W option already.
This is what I see from make htmldocs:
Quoted 1 line
Quoted 1 line
Quoted 1 line
HOSTCC scripts/basic/fixdep
SPHINX htmldocs -->
file:///scratch/sglass/cosarm/src/third_party/u-boot/files/doc/output
PARSE include/linker_lists.h
Running Sphinx v8.1.3
enabling CJK for LaTeX builder
loading translations [en]... done
Converting source_suffix = '.rst' to `source_suffix = {'.rst':
'restructuredtext'}`.
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 661 source files that are out of date
updating environment: [new config] 661 added, 0 changed, 0 removed
reading sources... [100%] usage/semihosting .. usage/upl
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets...
copying downloadable files... [100%] device-tree-bindings/firmware/fwu-mdata-gpt.yaml
copying static files...
Writing evaluated template result to /scratch/sglass/cosarm/src/third_party/u-boot/files/doc/output/_static/language_data.js Writing evaluated template result to /scratch/sglass/cosarm/src/third_party/u-boot/files/doc/output/_static/basic.css Writing evaluated template result to /scratch/sglass/cosarm/src/third_party/u-boot/files/doc/output/_static/documentation_options.js Writing evaluated template result to /scratch/sglass/cosarm/src/third_party/u-boot/files/doc/output/_static/js/versions.js copying static files: done
copying extra files...
copying extra files: done
copying assets: done
writing output... [100%] usage/spl_boot .. usage/upl *
generating indices... genindex done
writing additional pages... search done
copying images... [100%] develop/pics/flamegraph_timing.png
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.
The HTML pages are in doc/output. *
<<<
I would suggest that only the lines marked * have any value. Then we might notice the warnings.
Regards,
Simon
Quoted 16 lines · Jerome Forissier
Hi Tom,
Quoted 13 lines · Tom Rini
Hey,
As part of manually building the docs before doing -rc1, I saw the following:
./include/uthread.h:56: warning: cannot understand function prototype:
'enumuthread_mutex_state'./include/uthread.h:64: warning: cannot understand function prototype:
'structuthread_mutex'./include/uthread.h:56: warning: cannot understand function prototype:
'enumuthread_mutex_state'./include/uthread.h:64: warning: cannot understand function prototype:
'structuthread_mutex'
Quoted 3 lines
Quoted 1 line
Which should be fixed.
Please see https://lists.denx.de/pipermail/u-boot/2025-April/588263.html.
Ah good, thanks.
Quoted 6 lines
Quoted 3 lines
I also noticed that with KDOC_WERROR=1 this did
not fail and still produced an exit status of 0 which is why it was merged and not noticed until now.That's unfortunate. I don't understand why warning don't stop the build given that sphinx-build is given the -W option already.
Yes, I feel like there must be a bug there and so that's part of why I cc'd Heinrich.
Signature · 1 line
Tom