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

unicode: only export internal symbols for the selftests

The exported symbols in utf8-norm.c are not needed for normal
file system consumers, so move them to conditional _GPL exports
just for the selftest.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>

authored by

Christoph Hellwig and committed by
Gabriel Krisman Bertazi
e2a58d2d 2b3d0478

+7 -4
+7 -4
fs/unicode/utf8-norm.c
··· 17 17 } 18 18 return 0; 19 19 } 20 - EXPORT_SYMBOL(utf8version_is_supported); 21 20 22 21 /* 23 22 * UTF-8 valid ranges. ··· 406 407 } 407 408 return ret; 408 409 } 409 - EXPORT_SYMBOL(utf8nlen); 410 410 411 411 /* 412 412 * Set up an utf8cursor for use by utf8byte(). ··· 440 442 return -1; 441 443 return 0; 442 444 } 443 - EXPORT_SYMBOL(utf8ncursor); 444 445 445 446 /* 446 447 * Get one byte from the normalized form of the string described by u8c. ··· 585 588 } 586 589 } 587 590 } 588 - EXPORT_SYMBOL(utf8byte); 591 + 592 + #ifdef CONFIG_UNICODE_NORMALIZATION_SELFTEST_MODULE 593 + EXPORT_SYMBOL_GPL(utf8version_is_supported); 594 + EXPORT_SYMBOL_GPL(utf8nlen); 595 + EXPORT_SYMBOL_GPL(utf8ncursor); 596 + EXPORT_SYMBOL_GPL(utf8byte); 597 + #endif