Skip to contentSkip to conversation

drm/radeon: fix some doc-warnings

PATCH New Yang Yingliang 1 participant 5 messages May 13, 2021

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

cover drm/radeon: fix some doc-warnings

Yang Yingliang (4):
drm/radeon/cik: correct function name cik_irq_suspend() drm/radeon: correct function name radeon_cs_parser_fini() drm/radeon/r100: correct function name r100_cs_packet_parse_vline() drm/radeon/radeon_vm: correct function names in radeon_vm.c

 drivers/gpu/drm/radeon/cik.c       | 2 +-
 drivers/gpu/drm/radeon/r100.c      | 2 +-
 drivers/gpu/drm/radeon/radeon_cs.c | 2 +-
 drivers/gpu/drm/radeon/radeon_vm.c | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/4 drm/radeon/cik: correct function name cik_irq_suspend()

Fix the following make W=1 kernel build warning:

drivers/gpu/drm/radeon/cik.c:7450: warning: expecting prototype for cik_irq_disable(). Prototype was for cik_irq_suspend() instead

---
 drivers/gpu/drm/radeon/cik.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/cik.c +1 -1
index 42a8afa839cb..73ea5189dfb1 100644
@@ -7439,7 +7439,7 @@ static void cik_irq_disable(struct radeon_device *rdev)
 }
 
 /**
- * cik_irq_disable - disable interrupts for suspend
+ * cik_irq_suspend - disable interrupts for suspend
  *
  * @rdev: radeon_device pointer
  *
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/4 drm/radeon: correct function name radeon_cs_parser_fini()

In reply to Yang Yingliang

Fix the following make W=1 kernel build warning:

drivers/gpu/drm/radeon/radeon_cs.c:417: warning: expecting prototype for cs_parser_fini(). Prototype was for radeon_cs_parser_fini() instead

---
 drivers/gpu/drm/radeon/radeon_cs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_cs.c +1 -1
index 48162501c1ee..80a3bee933d6 100644
@@ -405,7 +405,7 @@ static int cmp_size_smaller_first(void *priv, const struct list_head *a,
 }
 
 /**
- * cs_parser_fini() - clean parser states
+ * radeon_cs_parser_fini() - clean parser states
  * @parser:	parser structure holding parsing context.
  * @error:	error number
  * @backoff:	indicator to backoff the reservation
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/4 drm/radeon/r100: correct function name r100_cs_packet_parse_vline()

In reply to Yang Yingliang

Fix the following make W=1 kernel build warning:

drivers/gpu/drm/radeon/r100.c:1423: warning: expecting prototype for r100_cs_packet_next_vline(). Prototype was for r100_cs_packet_parse_vline() instead

---
 drivers/gpu/drm/radeon/r100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/r100.c +1 -1
index fcfcaec25a9e..3c4e7c15fd15 100644
@@ -1406,7 +1406,7 @@ int r100_cs_parse_packet0(struct radeon_cs_parser *p,
 }
 
 /**
- * r100_cs_packet_next_vline() - parse userspace VLINE packet
+ * r100_cs_packet_parse_vline() - parse userspace VLINE packet
  * @p:		parser structure holding parsing context.
  *
  * Userspace sends a special sequence for VLINE waits.
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/4 drm/radeon/radeon_vm: correct function names in radeon_vm.c

In reply to Yang Yingliang

Fix the following make W=1 kernel build warnings:

drivers/gpu/drm/radeon/radeon_vm.c:61: warning: expecting prototype for radeon_vm_num_pde(). Prototype was for radeon_vm_num_pdes() instead drivers/gpu/drm/radeon/radeon_vm.c:642: warning: expecting prototype for radeon_vm_update_pdes(). Prototype was for radeon_vm_update_page_directory() instead

---
 drivers/gpu/drm/radeon/radeon_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_vm.c +2 -2
index 2dc9c9f98049..36a38adaaea9 100644
@@ -51,7 +51,7 @@
  */
 
 /**
- * radeon_vm_num_pde - return the number of page directory entries
+ * radeon_vm_num_pdes - return the number of page directory entries
  *
  * @rdev: radeon_device pointer
  *
@@ -626,7 +626,7 @@ static uint32_t radeon_vm_page_flags(uint32_t flags)
 }
 
 /**
- * radeon_vm_update_pdes - make sure that page directory is valid
+ * radeon_vm_update_page_directory - make sure that page directory is valid
  *
  * @rdev: radeon_device pointer
  * @vm: requested vm
Signature · 1 line
2.25.1