Skip to contentSkip to conversation

dma-buf/sync_file: Fix missing colon in kernel-doc for num_fences

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

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma-buf/sync_file: Fix missing colon in kernel-doc for num_fences

The struct sync_fence_info member num_fences was missing a colon in the kernel-doc, causing this warning when running make htmldocs:

./include/uapi/linux/sync_file.h:77: warning: Function parameter or member 'num_fences' not described in 'sync_file_info'

num_fences was also clearly missing from
https://docs.kernel.org/driver-api/dma-buf.html#c.sync_file_info before this patch.

---
 include/uapi/linux/sync_file.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/sync_file.h +1 -1
index 7e42a5b7558b..b389a5495181 100644
@@ -56,7 +56,7 @@ struct sync_fence_info {
  * @name:	name of fence
  * @status:	status of fence. 1: signaled 0:active <0:error
  * @flags:	sync_file_info flags
- * @num_fences	number of fences in the sync_file
+ * @num_fences: number of fences in the sync_file
  * @pad:	padding for 64-bit alignment, should always be zero
  * @sync_fence_info: pointer to array of struct &sync_fence_info with all
  *		 fences in the sync_file
reviewer
#1 lore raw

Hi--

Quoted 19 lines · David Reaver

The struct sync_fence_info member num_fences was missing a colon in the kernel-doc, causing this warning when running make htmldocs:

./include/uapi/linux/sync_file.h:77: warning: Function parameter or member 'num_fences' not described in 'sync_file_info'

num_fences was also clearly missing from
https://docs.kernel.org/driver-api/dma-buf.html#c.sync_file_info before this patch.

---
 include/uapi/linux/sync_file.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/linux/sync_file.h +0 -0
index 7e42a5b7558b..b389a5495181 100644

include/uapi/linux/sync_file.h struct sync_fence_info { · line 62

Quoted 8 lines
include/uapi/linux/sync_file.h +1 -1
@@ -56,7 +56,7 @@ struct sync_fence_info {
  * @name:	name of fence
  * @status:	status of fence. 1: signaled 0:active <0:error
  * @flags:	sync_file_info flags
- * @num_fences	number of fences in the sync_file
+ * @num_fences: number of fences in the sync_file
  * @pad:	padding for 64-bit alignment, should always be zero
  * @sync_fence_info: pointer to array of struct &sync_fence_info with all
  *		 fences in the sync_file

Same as https://lore.kernel.org/all/[email protected]/

Hopefully someone will merge/apply that one. Rob, can you make that happen?

thanks.

Signature · 1 line
~Randy