Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vt: fix comment vs definition mismatch

Fixes for:

ucs_is_zero_width()
ucs_is_double_width()
ucs_recompose()

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202504111036.YH1iEqBR-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202504111359.urXWyzvQ-lkp@intel.com/
Link: https://lore.kernel.org/r/o4974349-pp4p-4374-80q9-2oppqqr94r60@syhkavp.arg
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nicolas Pitre and committed by
Greg Kroah-Hartman
8bfabff0 043806bc

+8 -10
+2 -3
drivers/tty/vt/gen_ucs_recompose.py
··· 289 289 /** 290 290 * Attempt to recompose two Unicode characters into a single character. 291 291 * 292 - * @param previous: Previous Unicode code point (UCS-4) 293 - * @param current: Current Unicode code point (UCS-4) 292 + * @param base: Base Unicode code point (UCS-4) 293 + * @param combining: Combining mark Unicode code point (UCS-4) 294 294 * Return: Recomposed Unicode code point, or 0 if no recomposition is possible 295 295 */ 296 296 uint32_t ucs_recompose(uint32_t base, uint32_t combining) ··· 301 301 return 0; 302 302 303 303 struct compare_key key = {{ base, combining }}; 304 - 305 304 struct recomposition *result = 306 305 __inline_bsearch(&key, recomposition_table, 307 306 ARRAY_SIZE(recomposition_table),
+2 -2
drivers/tty/vt/gen_ucs_width.py
··· 292 292 /** 293 293 * Determine if a Unicode code point is zero-width. 294 294 * 295 - * @param ucs: Unicode code point (UCS-4) 295 + * @param cp: Unicode code point (UCS-4) 296 296 * Return: true if the character is zero-width, false otherwise 297 297 */ 298 298 bool ucs_is_zero_width(uint32_t cp) ··· 305 305 /** 306 306 * Determine if a Unicode code point is double-width. 307 307 * 308 - * @param ucs: Unicode code point (UCS-4) 308 + * @param cp: Unicode code point (UCS-4) 309 309 * Return: true if the character is double-width, false otherwise 310 310 */ 311 311 bool ucs_is_double_width(uint32_t cp)
+2 -3
drivers/tty/vt/ucs_recompose.c
··· 147 147 /** 148 148 * Attempt to recompose two Unicode characters into a single character. 149 149 * 150 - * @param previous: Previous Unicode code point (UCS-4) 151 - * @param current: Current Unicode code point (UCS-4) 150 + * @param base: Base Unicode code point (UCS-4) 151 + * @param combining: Combining mark Unicode code point (UCS-4) 152 152 * Return: Recomposed Unicode code point, or 0 if no recomposition is possible 153 153 */ 154 154 uint32_t ucs_recompose(uint32_t base, uint32_t combining) ··· 159 159 return 0; 160 160 161 161 struct compare_key key = { base, combining }; 162 - 163 162 struct recomposition *result = 164 163 __inline_bsearch(&key, recomposition_table, 165 164 ARRAY_SIZE(recomposition_table),
+2 -2
drivers/tty/vt/ucs_width.c
··· 512 512 /** 513 513 * Determine if a Unicode code point is zero-width. 514 514 * 515 - * @param ucs: Unicode code point (UCS-4) 515 + * @param cp: Unicode code point (UCS-4) 516 516 * Return: true if the character is zero-width, false otherwise 517 517 */ 518 518 bool ucs_is_zero_width(uint32_t cp) ··· 525 525 /** 526 526 * Determine if a Unicode code point is double-width. 527 527 * 528 - * @param ucs: Unicode code point (UCS-4) 528 + * @param cp: Unicode code point (UCS-4) 529 529 * Return: true if the character is double-width, false otherwise 530 530 */ 531 531 bool ucs_is_double_width(uint32_t cp)