linux-next: build warnings after merge of the drivers-x86 tree
Subsystems (3)
Hi all,
After merging the drivers-x86 tree, today's linux-next build (htmldocs) produced these warnings:
Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Unexpected indentation. Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Definition list ends without a blank line; unexpected unindent.
Introduced by commit
2546c6000430 ("platform/x86: Add Intel Software Defined Silicon driver")
Signature · 2 lines
Cheers, Stephen Rothwell
Hi,
Quoted 5 lines · Stephen Rothwell
Hi all,
After merging the drivers-x86 tree, today's linux-next build (htmldocs) produced these warnings:
Quoted 7 lines
Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Unexpected indentation.Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Definition list ends without a blank line; unexpected unindent.Introduced by commit
2546c6000430("platform/x86: Add Intel Software Defined Silicon driver")
Thank you for the report.
So I just did:
touch Documentation/ABI/testing/sysfs-driver-intel_sdsi make htmldocs &> log
In a repo with drivers-x86/for-next checked out and checked the generated log files. But I'm not seeing these WARNINGs.
Also 'find Documentation/output/ -name "*sdsi*"' does not output anything, is there anything special (maybe some extra utilities?) which I need to also enable building of htmldocs for the files in Documentation/ABI ?
Regards,
Hans
Hi all,
Quoted 11 lines · On Tue, 1 Mar 2022 20:16:59 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the drivers-x86 tree, today's linux-next build (htmldocs) produced these warnings:
Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Unexpected indentation.Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Definition list ends without a blank line; unexpected unindent.Introduced by commit
2546c6000430("platform/x86: Add Intel Software Defined Silicon driver")
I am still seeing these warnings.
Signature · 2 lines
Cheers, Stephen Rothwell
Hi,
Quoted 11 lines · Stephen Rothwell
Hi all,
Quoted 8 lines · On Tue, 1 Mar 2022 20:16:59 +1100 Stephen Rothwell <[email protected]> wrote:
After merging the drivers-x86 tree, today's linux-next build (htmldocs) produced these warnings:
Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Unexpected indentation.Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/ABI/testing/sysfs-driver-intel_sdsi:2: WARNING: Definition list ends without a blank line; unexpected unindent.
Quoted 5 lines
Quoted 3 lines
Introduced by commit
2546c6000430("platform/x86: Add Intel Software Defined Silicon driver")I am still seeing these warnings.
I replied to your original report on March 1st, but I never got a reply to my reply:
"""
Thank you for the report.
So I just did:
touch Documentation/ABI/testing/sysfs-driver-intel_sdsi make htmldocs &> log
In a repo with drivers-x86/for-next checked out and checked the generated log files. But I'm not seeing these WARNINGs.
Also 'find Documentation/output/ -name "*sdsi*"' does not output anything, is there anything special (maybe some extra utilities?) which I need to also enable building of htmldocs for the files in Documentation/ABI ?
"""
If someone can let me know how to reproduce these warnings I would be happy to fix them.
Regards,
Hans
Hi Hans,
Quoted 15 lines · On Thu, 24 Mar 2022 08:39:19 +0100 Hans de Goede <[email protected]> wrote:
I replied to your original report on March 1st, but I never got a reply to my reply:
"""
Thank you for the report.So I just did:
touch
Documentation/ABI/testing/sysfs-driver-intel_sdsimake htmldocs &> logIn a repo with drivers-x86/for-next checked out and checked the generated log files. But I'm not seeing these WARNINGs.
Quoted 7 lines
Also 'find
Documentation/output/-name "*sdsi*"' does not output anything, is there anything special (maybe some extra utilities?) which I need to also enable building of htmldocs for the files inDocumentation/ABI?
"""If someone can let me know how to reproduce these warnings I would be happy to fix them.
Sorry about that. I am just doing what you are doing but with the whole of linux-next (which I don't think would make a difference). One possibility is that we are using different versions of the doco software.
I am using Sphinx version 4.3.2 (using Python 3).
[Adding those who do doco to cc for advise]
Signature · 2 lines
Cheers, Stephen Rothwell
Hi Stephen,
Quoted 26 lines · Stephen Rothwell
Hi Hans,
Quoted 15 lines · On Thu, 24 Mar 2022 08:39:19 +0100 Hans de Goede <[email protected]> wrote:
I replied to your original report on March 1st, but I never got a reply to my reply:
"""
Thank you for the report.So I just did:
touch
Documentation/ABI/testing/sysfs-driver-intel_sdsimake htmldocs &> logIn a repo with drivers-x86/for-next checked out and checked the generated log files. But I'm not seeing these WARNINGs.
Quoted 7 lines
Also 'find
Documentation/output/-name "*sdsi*"' does not output anything, is there anything special (maybe some extra utilities?) which I need to also enable building of htmldocs for the files inDocumentation/ABI?
"""If someone can let me know how to reproduce these warnings I would be happy to fix them.
Quoted 6 lines
Sorry about that. I am just doing what you are doing but with the whole of linux-next (which I don't think would make a difference). One possibility is that we are using different versions of the doco software.
I am using Sphinx version 4.3.2 (using Python 3).
[hans@shalem ~]$ rpm -qf /usr/bin/sphinx-apidoc
python3-sphinx-4.4.0-1.fc36.noarch
So I did some digging and the trick for reproducing any ABI related warnings is to touch the .rst file which has the "kernel-abi" reST directive (1) for the ABI subdir you want to regenerate the ABI docs for
this is
t
I doubt this makes a difference though. AFAIK the build process for the files under Documentation/ABI is a bit different, I think there is an extra pre-process step involved and maybe I'm missing something needed for that step ?
Looking at Documentation/Makefile I did
Regards,
Hans
<fat fingered send, sending an incomplete email, this is attempt 2>
Hi Stephen,
Quoted 26 lines · Stephen Rothwell
Hi Hans,
Quoted 15 lines · On Thu, 24 Mar 2022 08:39:19 +0100 Hans de Goede <[email protected]> wrote:
I replied to your original report on March 1st, but I never got a reply to my reply:
"""
Thank you for the report.So I just did:
touch
Documentation/ABI/testing/sysfs-driver-intel_sdsimake htmldocs &> logIn a repo with drivers-x86/for-next checked out and checked the generated log files. But I'm not seeing these WARNINGs.
Quoted 7 lines
Also 'find
Documentation/output/-name "*sdsi*"' does not output anything, is there anything special (maybe some extra utilities?) which I need to also enable building of htmldocs for the files inDocumentation/ABI?
"""If someone can let me know how to reproduce these warnings I would be happy to fix them.
Quoted 6 lines
Sorry about that. I am just doing what you are doing but with the whole of linux-next (which I don't think would make a difference). One possibility is that we are using different versions of the doco software.
I am using Sphinx version 4.3.2 (using Python 3).
[hans@shalem ~]$ rpm -qf /usr/bin/sphinx-apidoc python3-sphinx-4.4.0-1.fc36.noarch
I doubt this makes a difference though.
So I did some digging and the trick for reproducing any ABI related warnings is to touch the .rst file which has the "kernel-abi" reST directive (1) for the ABI subdir you want to regenerate the ABI docs for.
So in this case I did:
touch Documentation/admin-guide/abi-testing.rst make htmldocs &> log
And now I can see the warnings. I'll prepare a fix for this.
Looking at Documentation/Makefile I also learned that you can also do this:
scripts/get_abi.pl validate --dir Documentation/ABI
Which results in a different set of warnings...
Regards,
Hans
1) Implemented in Documentation/sphinx/kernel_abi.py
Hi Hans,
Quoted 10 lines · On Thu, 24 Mar 2022 14:04:28 +0100 Hans de Goede <[email protected]> wrote:
So I did some digging and the trick for reproducing any ABI related warnings is to touch the .rst file which has the "kernel-abi" reST directive (1) for the ABI subdir you want to regenerate the ABI docs for.
So in this case I did:
touch
Documentation/admin-guide/abi-testing.rstmake htmldocs &> log
Looks like missing dependencies :-(
Thanks for persisting ad discovering this.
Quoted 1 line
And now I can see the warnings. I'll prepare a fix for this.
Excellent, thanks.
Quoted 6 lines
Looking at
Documentation/MakefileI also learned that you can also do this:
scripts/get_abi.plvalidate --dirDocumentation/ABIWhich results in a different set of warnings...
Wonderful :-(
Signature · 2 lines
Cheers, Stephen Rothwell
Mauro Carvalho Chehab
maintainerEm Fri, 25 Mar 2022 08:55:22 +1100
Stephen Rothwell <[email protected]> escreveu:
Quoted 9 lines
Hi Hans,
Quoted 6 lines · On Thu, 24 Mar 2022 14:04:28 +0100 Hans de Goede <[email protected]> wrote:
So I did some digging and the trick for reproducing any ABI related warnings is to touch the .rst file which has the "kernel-abi" reST directive (1) for the ABI subdir you want to regenerate the ABI docs for.
Quoted 6 lines
Quoted 4 lines
So in this case I did:
touch
Documentation/admin-guide/abi-testing.rstmake htmldocs &> logLooks like missing dependencies :-(
Not sure if are there a way to fix this. See, Sphinx doesn't use Makefile dependencies, but, instead, it checks if the .rst file has changed or not. So, those tags that include contents from non-rst files, like the ABI ones and kernel-doc tags, are not considered by Sphinx when detecting the need to re-parse the .rst files that contain such tags.
The safest way to ensure that Sphinx will process everything is running is to run make cleandocs before building the documentation.
Quoted 10 lines
Thanks for persisting ad discovering this.
Quoted 1 line
And now I can see the warnings. I'll prepare a fix for this.
Excellent, thanks.
Quoted 4 lines
Looking at
Documentation/MakefileI also learned that you can also do this:
scripts/get_abi.plvalidate --dirDocumentation/ABI
No need to pass Documentation/ABI directory, as it assumes it per default:
$ scripts/get_abi.pl validate
Warning: /sys/bus/iio/devices/iio:deviceX/fault_ovuv is defined 2 times: Documentation/ABI/testing/sysfs-bus-iio-temperature-max31856:14 Documentation/ABI/testing/sysfs-bus-iio-temperature-max31865:0
Warning: /sys/bus/iio/devices/iio:deviceX/in_filter_notch_center_frequency is defined 2 times: Documentation/ABI/testing/sysfs-bus-iio-temperature-max31865:12 Documentation/ABI/testing/sysfs-bus-iio:1943
Warning: /sys/bus/iio/devices/triggerX/sampling_frequency is defined 2 times: Documentation/ABI/testing/sysfs-bus-iio-timer-stm32:92 Documentation/ABI/testing/sysfs-bus-iio:91
Warning: /sys/devices/system/cpu/cpuX/topology/core_id is defined 2 times: Documentation/ABI/testing/sysfs-devices-system-cpu:69 Documentation/ABI/stable/sysfs-devices-system-cpu:38
Btw, while here, you can also check if the new ABI definitions are actually correct by running:
$ ./scripts/get_abi.pl undefined
On a system where the new ABI "What:" definitions can be found. This command converts the What: field into a regular expression, and then check if the entries under sysfs actually match the location specified by the "What:" fields from the ABI files.
As there are currently many ones that are missing (or wrong), you can limit the scope of the checks by adding --search-string <regex>, like:
$ ./scripts/get_abi.pl undefined --search-string hugepage /sys/kernel/mm/transparent_hugepage/defrag not found. /sys/kernel/mm/hugepages/hugepages-2048kB/free_hugepages not found. /sys/kernel/mm/hugepages/hugepages-1048576kB/demote_size not found. ... /sys/kernel/mm/transparent_hugepage/khugepaged/full_scans not found.
Quoted 1 line
Quoted 1 line
Which results in a different set of warnings...
Such warnings are also reported at build time, when the ABI file is processed - e. g. if you either touch the files containing the ABI .rst files or if you do a make cleandocs before building the documentation.
Thanks,
Mauro
Mauro Carvalho Chehab
maintainerEm Fri, 25 Mar 2022 06:27:35 +0100
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 17 lines
Em Fri, 25 Mar 2022 08:55:22 +1100
Stephen Rothwell <[email protected]> escreveu:Quoted 14 lines
Hi Hans,
Quoted 10 lines · On Thu, 24 Mar 2022 14:04:28 +0100 Hans de Goede <[email protected]> wrote:
So I did some digging and the trick for reproducing any ABI related warnings is to touch the .rst file which has the "kernel-abi" reST directive (1) for the ABI subdir you want to regenerate the ABI docs for.
So in this case I did:
touch
Documentation/admin-guide/abi-testing.rstmake htmldocs &> log
Quoted 7 lines
Quoted 1 line
Looks like missing dependencies :-(
Not sure if are there a way to fix this. See, Sphinx doesn't use
Makefiledependencies, but, instead, it checks if the .rst file has changed or not. So, those tags that include contents from non-rst files, like the ABI ones and kernel-doc tags, are not considered by Sphinx when detecting the need to re-parse the .rst files that contain such tags.
It sounds that dependencies could added inside an extension using:
env.note_dependency()
kerneldoc.py already uses it. I'll try to add it also to the other extensions there.
Thanks,
Mauro
Mauro Carvalho Chehab
maintainerPATCH 1/1 docs: kernel_abi.py: add sphinx build dependencies
Ensure that Sphinx-build will handle the files parsed by get_abi.pl as dependencies. This way, if they are touched, the ABI output will be regenerated.
--- Documentation/sphinx/kernel_abi.py | 4 ++++ 1 file changed, 4 insertions(+)
Documentation/sphinx/kernel_abi.py +4 -0
@@ -128,6 +128,7 @@ class KernelCmd(Directive): return out def nestedParse(self, lines, fname): + env = self.state.document.settings.env content = ViewList() node = nodes.section()
@@ -154,6 +155,9 @@ class KernelCmd(Directive): self.do_parse(content, node) content = ViewList() + # Add the file to Sphinx build dependencies + env.note_dependency(os.path.abspath(f)) + f = new_f # sphinx counts lines from 0
Signature · 1 line
2.35.1