Skip to contentSkip to conversation

vt: fix kernel-doc warnings in ucs_get_fallback()

PATCH Superseded Randy Dunlap 1 participant 1 message Jun 9, 2025 TTY layer and serial drivers

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vt: fix kernel-doc warnings in ucs_get_fallback()

Use the correct function parameter name in ucs_get_fallback() to prevent kernel-doc warnings:

Warning: drivers/tty/vt/ucs.c:218 function parameter 'cp' not described in 'ucs_get_fallback'
Warning: drivers/tty/vt/ucs.c:218 Excess function parameter 'base' description in 'ucs_get_fallback'

Fixes fe26933cf1e1 ("vt: add ucs_get_fallback()")
Cc Nicolas Pitre <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/tty/vt/ucs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/vt/ucs.c +1 -1
@@ -206,7 +206,7 @@ static int ucs_page_entry_cmp(const void
 
 /**
  * ucs_get_fallback() - Get a substitution for the provided Unicode character
- * @base: Base Unicode code point (UCS-4)
+ * @cp: Base Unicode code point (UCS-4)
  *
  * Get a simpler fallback character for the provided Unicode character.
  * This is used for terminal display when corresponding glyph is unavailable.