Skip to contentSkip to conversation

docs: ABI: sysfs-bus-nvdimm: fix unexpected indentation error

PATCH In review David Reaver 2 participants 3 messages Jul 27, 2023 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: ABI: sysfs-bus-nvdimm: fix unexpected indentation error

Fix the following error when running make htmldocs:

Documentation/ABI/testing/sysfs-bus-nvdimm:10: ERROR: Unexpected indentation.

This is caused by missing newlines before the code examples. In particular, before this patch, the second example for ctl_res_cnt doesn't render properly.

---
 Documentation/ABI/testing/sysfs-bus-nvdimm | 2 ++
 1 file changed, 2 insertions(+)
Documentation/ABI/testing/sysfs-bus-nvdimm +2 -0
index de8c5a59c77f..8564a0ff0d3e 100644
@@ -18,7 +18,9 @@ Description:	(RO) Attribute group to describe the magic bits
 		Each attribute under this group defines a bit range of the
 		perf_event_attr.config. Supported attribute is listed
 		below::
+
 		  event  = "config:0-4"  - event ID
 
 		For example::
+
 			ctl_res_cnt = "event=0x1"

What: /sys/bus/event_source/devices/nmemX/events

maintainer
#1 lore raw
Quoted 29 lines · David Reaver

Fix the following error when running make htmldocs:

Documentation/ABI/testing/sysfs-bus-nvdimm:10: ERROR: Unexpected indentation.

This is caused by missing newlines before the code examples. In particular, before this patch, the second example for ctl_res_cnt doesn't render properly.

---
 Documentation/ABI/testing/sysfs-bus-nvdimm | 2 ++
 1 file changed, 2 insertions(+)
Documentation/ABI/testing/sysfs-bus-nvdimm +2 -0
index de8c5a59c77f..8564a0ff0d3e 100644
@@ -18,7 +18,9 @@ Description:	(RO) Attribute group to describe the magic bits
 		Each attribute under this group defines a bit range of the
 		perf_event_attr.config. Supported attribute is listed
 		below::
+
 		  event  = "config:0-4"  - event ID
 
 		For example::
+
 			ctl_res_cnt = "event=0x1"
Quoted 1 line

What: /sys/bus/event_source/devices/nmemX/events

Thanks for the patch. This problem is already fixed in docs-next, though, and thus in linux-next as well.

jon

#2 lore raw
Quoted 5 lines · Jonathan Corbet

Thanks for the patch. This problem is already fixed in docs-next, though, and thus in linux-next as well.

jon

Ah, sorry Jonathan. I was using Linus' tree, and I must have messed up the search query I used against https://lore.kernel.org. I'll try to remember to use docs-next for future docs patches.

Thanks,
David