Skip to contentSkip to conversation

doc: raise an error on warnings for dts

PATCH Applied David Marchand 3 participants 4 messages Jan 21 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: raise an error on warnings for dts

Similarly to commit 6572fc926037 ("doc: make sphinx comply with ..."), pass -W to sphinx to catch warnings.

---
 doc/api/dts/meson.build | 3 +++
 1 file changed, 3 insertions(+)
doc/api/dts/meson.build +3 -0
index 8a6d061879..fc147f13f3 100644
@@ -12,6 +12,9 @@ if python_ver_satisfied != 0
 endif
 
 extra_sphinx_args = ['-E', '-c', join_paths(doc_source_dir, 'guides')]
+if get_option('werror')
+    extra_sphinx_args += '-W'
+endif
 
 # DTS docs are generated inside main Doxygen docs build directory
 # DTS docs relies on main docs to install it so does not define install dir
Signature · 1 line
2.52.0
Acked-by Tested-by on v1 1/1
#2 lore raw
In reply to David Marchand
Quoted 30 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Wednesday 21 January 2026 10:01
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]
Subject: [PATCH] doc: raise an error on warnings for dts

Similarly to commit 6572fc926037 ("doc: make sphinx comply with ..."), pass -W to sphinx to catch warnings.

---
 doc/api/dts/meson.build | 3 +++
 1 file changed, 3 insertions(+)
doc/api/dts/meson.build +3 -1
index 8a6d061879..fc147f13f3 100644
@@ -12,6 +12,9 @@ if python_ver_satisfied != 0
 endif
 
 extra_sphinx_args = ['-E', '-c', join_paths(doc_source_dir, 'guides')]
+if get_option('werror')
+    extra_sphinx_args += '-W'
+endif
 
 # DTS docs are generated inside main Doxygen docs build directory
 # DTS docs relies on main docs to install it so does not define install dir
--
Quoted 1 line

2.52.0

author Applied
#3 lore raw
In reply to David Marchand
Quoted 14 lines · David Marchand

Similarly to commit 6572fc926037 ("doc: make sphinx comply with ..."), pass -W to sphinx to catch warnings.

---
 doc/api/dts/meson.build | 3 +++
 1 file changed, 3 insertions(+)
doc/api/dts/meson.build +0 -0
index 8a6d061879..fc147f13f3 100644

doc/api/dts/meson.build if python_ver_satisfied != 0 · line 20

Quoted 9 lines
doc/api/dts/meson.build +3 -0
@@ -12,6 +12,9 @@ if python_ver_satisfied != 0
 endif
 
 extra_sphinx_args = ['-E', '-c', join_paths(doc_source_dir, 'guides')]
+if get_option('werror')
+    extra_sphinx_args += '-W'
+endif
 
 # DTS docs are generated inside main Doxygen docs build directory
 # DTS docs relies on main docs to install it so does not define install dir

Applied, thanks.

Signature · 1 line
David Marchand