openzfs / zfs

OpenZFS on Linux and FreeBSD
https://openzfs.github.io/openzfs-docs
Other
10.69k stars 1.76k forks source link

module: unicode: #if out unused bits of libunicode (#13224) #16704

Closed nabijaczleweli closed 3 weeks ago

nabijaczleweli commented 1 month ago

Motivation and Context

The second (non-uconv) half of #13224, minus U8_TEXTPREP_NOWAIT, U8_VALIDATE_CHECK_ADDITIONAL, and U8_VALIDATE_UCS2_RANGE (rejected in review below)

Description

The API remains, the removed bits are #ifed out.

$ size -G ./module/zfs.ko ./module/zfs.new.ko
      text       data        bss      total filename
   2865126    1597982     755768    5218876 ./module/zfs.ko
   2864038    1429784     755768    5049590 ./module/zfs.new.ko
     -1088    -168198
       -1k      -164k

How Has This Been Tested?

Builds.

Types of changes

Checklist:

amotin commented 4 weeks ago
  module/unicode/u8_textprep.c: In function 'do_case_conv':
  module/unicode/u8_textprep.c:555:12: error: 'i' may be used uninitialized [-Werror=maybe-uninitialized]
    555 |         u8s[i] = '\0';
        |            ^
  module/unicode/u8_textprep.c:463:16: note: 'i' was declared here
    463 |         size_t i;
        |                ^
nabijaczleweli commented 4 weeks ago

I don't get this warning but fixed hopefully

amotin commented 4 weeks ago

I don't know why checkstyle does not complain, but one of your commit messages has too long title. Please reformat. I am also not sure this worth 3 individual commits.