]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ext2fs: merge sparse fixes for unicode normalization
authorGabriel Krisman Bertazi <krisman@collabora.com>
Sun, 28 Apr 2019 19:12:12 +0000 (15:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 28 Apr 2019 19:12:12 +0000 (15:12 -0400)
The sparse script complained about the following issues in the kernel
version of this script.  This patch port the fixes to the userspace
version.

sparse warnings: (new ones prefixed by >>)

>> fs/unicode/utf8-norm.c:41:24: sparse: non-ANSI function declaration
   of function 'utf8version_latest'

vim +/utf8version_latest +41 fs/unicode/utf8-norm.c

  40
> 41 int utf8version_latest()
  42 {
  43 return utf8vers;
  44 }
  45 EXPORT_SYMBOL(utf8version_latest);
  46

Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/nls_utf8-norm.c

index 98c67000b0eb91bdd27cd1ab5d0a3db43efcb5ce..a5ac7c3095a1714c68c6ff8e8e8453d5ef16672e 100644 (file)
@@ -46,7 +46,7 @@ int utf8version_is_supported(uint8_t maj, uint8_t min, uint8_t rev)
        return 0;
 }
 
-int utf8version_latest()
+int utf8version_latest(void)
 {
        return utf8vers;
 }